diff --git a/src/api/pppapi.c b/src/api/pppapi.c index 50f8369e..274b5ed5 100644 --- a/src/api/pppapi.c +++ b/src/api/pppapi.c @@ -312,30 +312,6 @@ int pppapi_ioctl(ppp_pcb *pcb, int cmd, void *arg) { } -#if PPPOS_SUPPORT && !PPP_INPROC_OWNTHREAD -/** - * Call pppos_input() inside the tcpip_thread context. - */ -static void pppapi_do_pppos_input(struct pppapi_msg_msg *msg) { - pppos_input(msg->ppp, msg->msg.ppposinput.data, msg->msg.ppposinput.len); - TCPIP_PPPAPI_ACK(msg); -} - -/** - * Call pppos_input() in a thread-safe way by running that function inside the - * tcpip_thread context. - */ -void ppposapi_input(ppp_pcb *pcb, u_char* data, int len) { - struct pppapi_msg msg; - msg.function = pppapi_do_pppos_input; - msg.msg.ppp = pcb; - msg.msg.msg.ppposinput.data = data; - msg.msg.msg.ppposinput.len = len; - TCPIP_PPPAPI(&msg); -} -#endif /* PPPOS_SUPPORT && !PPP_INPROC_OWNTHREAD */ - - #if LWIP_NETIF_STATUS_CALLBACK /** * Call ppp_set_netif_statuscallback() inside the tcpip_thread context. diff --git a/src/include/lwip/pppapi.h b/src/include/lwip/pppapi.h index c889b5bf..90518dc3 100644 --- a/src/include/lwip/pppapi.h +++ b/src/include/lwip/pppapi.h @@ -87,12 +87,6 @@ struct pppapi_msg_msg { int cmd; void *arg; } ioctl; -#if PPPOS_SUPPORT && !PPP_INPROC_OWNTHREAD - struct { - u_char *data; - int len; - } ppposinput; -#endif /* PPPOS_SUPPORT && !PPP_INPROC_OWNTHREAD */ #if LWIP_NETIF_STATUS_CALLBACK struct { netif_status_callback_fn status_callback; @@ -133,9 +127,6 @@ int pppapi_close(ppp_pcb *pcb); void pppapi_sighup(ppp_pcb *pcb); int pppapi_delete(ppp_pcb *pcb); int pppapi_ioctl(ppp_pcb *pcb, int cmd, void *arg); -#if PPPOS_SUPPORT && !PPP_INPROC_OWNTHREAD -void ppposapi_input(ppp_pcb *pcb, u_char* data, int len); -#endif /* PPPOS_SUPPORT && !PPP_INPROC_OWNTHREAD */ #if LWIP_NETIF_STATUS_CALLBACK void pppapi_set_netif_statuscallback(ppp_pcb *pcb, netif_status_callback_fn status_callback); #endif /* LWIP_NETIF_STATUS_CALLBACK */