mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
fixed some more PPP phase state machine issues
The only way PPPoE or PPPoL2TP disconnect it through ppp_link_terminated(), therefore PPP is always already down, so we don't need to ask PPP to hup or stop.
This commit is contained in:
parent
8ec92b6fe7
commit
35c670513f
@ -1950,8 +1950,6 @@ static void ppp_over_ethernet_link_status_cb(ppp_pcb *pcb, int state) {
|
||||
case PPPOE_CB_STATE_DOWN:
|
||||
PPPDEBUG(LOG_INFO, ("ppp_over_ethernet_link_status_cb: unit %d: DOWN, disconnected\n", pcb->num));
|
||||
pppoe_err_code = PPPERR_CONNECT;
|
||||
ppp_hup(pcb);
|
||||
ppp_stop(pcb);
|
||||
break;
|
||||
|
||||
/* PPPoE link failed to setup (i.e. PADI/PADO timeout) */
|
||||
@ -2001,8 +1999,6 @@ static void ppp_over_l2tp_link_status_cb(ppp_pcb *pcb, int state) {
|
||||
case PPPOL2TP_CB_STATE_DOWN:
|
||||
PPPDEBUG(LOG_INFO, ("ppp_over_l2tp_link_status_cb: unit %d: DOWN, disconnected\n", pcb->num));
|
||||
pppol2tp_err_code = PPPERR_CONNECT;
|
||||
ppp_hup(pcb);
|
||||
ppp_stop(pcb);
|
||||
break;
|
||||
|
||||
/* PPPoL2TP link failed to setup (i.e. L2TP timeout) */
|
||||
|
Loading…
Reference in New Issue
Block a user