mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-06 09:56:38 +00:00
PPP, removed ppposapi_input(), unnecessary because pppos_input() is already thread-safe
This commit is contained in:
parent
bd3ade31fa
commit
ed294c5945
@ -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.
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user