PPP, PPPoX, added warnings about functions in headers which should not be called from lwIP user application

This commit is contained in:
Sylvain Rochet 2015-02-18 23:12:23 +01:00
parent f511bec26c
commit 02cf50063e
2 changed files with 9 additions and 0 deletions

View File

@ -167,6 +167,10 @@ ppp_pcb *pppoe_create(struct netif *pppif,
const char *service_name, const char *concentrator_name,
ppp_link_status_cb_fn link_status_cb, void *ctx_cb);
/*
* Functions called from lwIP
* DO NOT CALL FROM lwIP USER APPLICATION.
*/
void pppoe_disc_input(struct netif *netif, struct pbuf *p);
void pppoe_data_input(struct netif *netif, struct pbuf *p);

View File

@ -97,6 +97,11 @@ ppp_pcb *pppos_create(struct netif *pppif, sio_fd_t fd,
void pppos_input(ppp_pcb *ppp, u_char* data, int len);
/*
* Functions called from PPP CORE
*
* You may use them if you REALLY know what you are doing.
*/
void pppos_accm_out_config(pppos_pcb *pppos, u32_t accm);
void pppos_accm_in_config(pppos_pcb *pppos, u32_t accm);
sio_fd_t pppos_get_fd(pppos_pcb *pppos);