PPP, PPPoS, disable TCPIP API if PPP_INPROC_MULTITHREADED is true

If PPP_INPROC_MULTITHREADED is true, then user does not what to use
the TCPIP API. Disabling the TCPIP API helps the user to understand
that PPP_INPROC_MULTITHREADED must not be used if he wish to use
the TCPIP API.
This commit is contained in:
Sylvain Rochet
2015-03-11 23:52:20 +01:00
parent 121de4ef47
commit e27ab3a24f
2 changed files with 8 additions and 8 deletions

View File

@@ -103,10 +103,10 @@ struct pppos_pcb_s {
ppp_pcb *pppos_create(struct netif *pppif, sio_fd_t fd,
ppp_link_status_cb_fn link_status_cb, void *ctx_cb);
#if !NO_SYS
#if !NO_SYS && !PPP_INPROC_MULTITHREADED
/* Pass received raw characters to PPPoS to be decoded through lwIP TCPIP thread. */
err_t pppos_input_tcpip(ppp_pcb *ppp, u_char *s, int l);
#endif /* !NO_SYS */
#endif /* !NO_SYS && !PPP_INPROC_MULTITHREADED */
/* PPP over Serial: this is the input function to be called for received data. */
void pppos_input(ppp_pcb *ppp, u_char* data, int len);