46struct pppapi_msg_msg {
51 ppp_notify_phase_cb_fn notify_phase_cb;
57 pppos_output_cb_fn output_cb;
58 ppp_link_status_cb_fn link_status_cb;
66 const char *service_name;
67 const char *concentrator_name;
68 ppp_link_status_cb_fn link_status_cb;
78#if PPPOL2TP_AUTH_SUPPORT
82 ppp_link_status_cb_fn link_status_cb;
100 struct tcpip_api_call_data call;
101 struct pppapi_msg_msg msg;
105err_t pppapi_set_default(ppp_pcb *pcb);
107err_t pppapi_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb);
110ppp_pcb *pppapi_pppos_create(
struct netif *pppif, pppos_output_cb_fn output_cb, ppp_link_status_cb_fn link_status_cb,
void *ctx_cb);
113ppp_pcb *pppapi_pppoe_create(
struct netif *pppif,
struct netif *ethif,
const char *service_name,
114 const char *concentrator_name, ppp_link_status_cb_fn link_status_cb,
119 const u8_t *secret, u8_t secret_len,
120 ppp_link_status_cb_fn link_status_cb,
void *ctx_cb);
122err_t pppapi_connect(ppp_pcb *pcb, u16_t holdoff);
124err_t pppapi_listen(ppp_pcb *pcb);
126err_t pppapi_close(ppp_pcb *pcb, u8_t nocarrier);
127err_t pppapi_free(ppp_pcb *pcb);
128err_t pppapi_ioctl(ppp_pcb *pcb, u8_t cmd,
void *arg);
Network Point to Point Protocol over Serial header file.
IP address structure for passing IP addresses by value.