PPP, removed ppposapi_input(), unnecessary because pppos_input() is already thread-safe

This commit is contained in:
Sylvain Rochet 2013-04-22 21:21:04 +02:00
parent bd3ade31fa
commit ed294c5945
2 changed files with 0 additions and 33 deletions

View File

@ -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.

View File

@ -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 */