From 02cf50063e0d4d8c5892ae17cffac2bf27172f5d Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Wed, 18 Feb 2015 23:12:23 +0100 Subject: [PATCH] PPP, PPPoX, added warnings about functions in headers which should not be called from lwIP user application --- src/include/netif/ppp/pppoe.h | 4 ++++ src/include/netif/ppp/pppos.h | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/include/netif/ppp/pppoe.h b/src/include/netif/ppp/pppoe.h index 802a62d1..b1dd2fd9 100644 --- a/src/include/netif/ppp/pppoe.h +++ b/src/include/netif/ppp/pppoe.h @@ -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); diff --git a/src/include/netif/ppp/pppos.h b/src/include/netif/ppp/pppos.h index 62d11acf..3c1298ac 100644 --- a/src/include/netif/ppp/pppos.h +++ b/src/include/netif/ppp/pppos.h @@ -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);