mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
ppp_close() PPPoL2TP support added
This commit is contained in:
parent
bc724ea206
commit
a467d21eba
@ -512,6 +512,14 @@ ppp_close(ppp_pcb *pcb)
|
||||
ppp_stop(pcb);
|
||||
} else
|
||||
#endif /* PPPOE_SUPPORT */
|
||||
#if PPPOL2TP_SUPPORT
|
||||
if (pcb->l2tp_pcb) {
|
||||
PPPDEBUG(LOG_DEBUG, ("ppp_close: unit %d kill_link -> ppp_stop\n", pcb->num));
|
||||
pcb->err_code = PPPERR_USER;
|
||||
/* This will leave us at PHASE_DEAD. */
|
||||
ppp_stop(pcb);
|
||||
} else
|
||||
#endif /* PPPOL2TP_SUPPORT */
|
||||
{
|
||||
#if PPPOS_SUPPORT
|
||||
PPPDEBUG(LOG_DEBUG, ("ppp_close: unit %d kill_link -> ppp_stop\n", pcb->num));
|
||||
|
Loading…
Reference in New Issue
Block a user