PPP, PPPoS, add pppos_input_tcpip() input helper function for !NO_SYS users

This commit is contained in:
Sylvain Rochet
2015-03-11 09:28:35 +01:00
parent 4b035b9902
commit 77f7d99048
2 changed files with 33 additions and 1 deletions

View File

@@ -103,6 +103,11 @@ 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
/* 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 */
/* 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);