From b30faa577db92c597184f781af7260cc96b4b040 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Wed, 24 Dec 2014 19:08:58 +0100 Subject: [PATCH] PPP, moved ppp_init() from public API (ppp.h) to private API (ppp_impl.h) ppp_init() is called by lwip_init(), users don't need to init PPP by themselves --- src/core/init.c | 2 +- src/include/netif/ppp/ppp.h | 5 ----- src/include/netif/ppp/ppp_impl.h | 3 +++ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/core/init.c b/src/core/init.c index b0c42dd3..90579821 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -60,7 +60,7 @@ #include "lwip/nd6.h" #include "lwip/mld6.h" #include "lwip/api.h" -#include "netif/ppp/ppp.h" +#include "netif/ppp/ppp_impl.h" /* Compile-time sanity checks for configuration errors. * These can be done independently of LWIP_DEBUG, without penalty. diff --git a/src/include/netif/ppp/ppp.h b/src/include/netif/ppp/ppp.h index 2a25a7f9..a260a318 100644 --- a/src/include/netif/ppp/ppp.h +++ b/src/include/netif/ppp/ppp.h @@ -464,11 +464,6 @@ struct ppp_pcb_s { *** PUBLIC FUNCTIONS *** ************************/ -/* - * Initialize the PPP subsystem. - */ -int ppp_init(void); - /* * Create a new PPP session. * diff --git a/src/include/netif/ppp/ppp_impl.h b/src/include/netif/ppp/ppp_impl.h index 8833ee7a..20ea9ba7 100644 --- a/src/include/netif/ppp/ppp_impl.h +++ b/src/include/netif/ppp/ppp_impl.h @@ -365,6 +365,9 @@ struct pppd_stats { /* PPP flow functions */ +/* initialize the PPP subsystem */ +int ppp_init(void); + /* function called by pppoe.c */ void ppp_input(ppp_pcb *pcb, struct pbuf *pb);