From 01561b26efad0218cf0f2fee60738039ca2ee038 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Thu, 4 Aug 2016 23:43:46 +0200 Subject: [PATCH] PPP: set phase to establish before starting LCP PPP is currently in initialize phase until authentication is started or until we start IPCP negotiation. It works, because PPP states are mostly used for user information, most state are actually useless for PPP itself. Being in initialize state while PPP is started is not very consistent, switch to establish phase before starting LCP. --- src/netif/ppp/ppp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 4d14bba3..96bcd8b1 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -730,6 +730,7 @@ void ppp_start(ppp_pcb *pcb) { #endif /* VJ_SUPPORT && LWIP_TCP */ /* Start protocol */ + new_phase(pcb, PPP_PHASE_ESTABLISH); lcp_open(pcb); lcp_lowerup(pcb); PPPDEBUG(LOG_DEBUG, ("ppp_start[%d]: finished\n", pcb->netif->num));