mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
ppp_close() on PPPoE actually works,
clear persist mode if user asked the connection to shutdown
This commit is contained in:
parent
336ba8f419
commit
a226099b04
@ -223,11 +223,6 @@ typedef enum {
|
||||
|
||||
/* Prototypes for procedures local to this file. */
|
||||
|
||||
/* FIXME: PPPoE close seem bogus, it was actually not exported at all in the previous port */
|
||||
#if 0 /* UNUSED */
|
||||
void ppp_over_ethernet_close(int pd);
|
||||
#endif /* UNUSED */
|
||||
|
||||
static void ppp_start(int pd); /** Initiate LCP open request */
|
||||
static void ppp_input(int unit, void *arg);
|
||||
|
||||
@ -475,17 +470,6 @@ int ppp_over_ethernet_open(ppp_pcb *pcb, struct netif *ethif, const char *servic
|
||||
pppoe_connect(pcb->pppoe_sc);
|
||||
return pcb->unit;
|
||||
}
|
||||
|
||||
#if 0 /* UNUSED */
|
||||
void ppp_over_ethernet_close(int pd) {
|
||||
ppp_pcb* pc = &ppp_pcb_list[pd];
|
||||
|
||||
/* *TJL* There's no lcp_deinit */
|
||||
lcp_close(pd, NULL);
|
||||
|
||||
pppoe_destroy(&pcb->netif);
|
||||
}
|
||||
#endif /* UNUSED */
|
||||
#endif /* PPPOE_SUPPORT */
|
||||
|
||||
|
||||
@ -498,6 +482,7 @@ ppp_close(ppp_pcb *pcb)
|
||||
int st = 0;
|
||||
|
||||
PPPDEBUG(LOG_DEBUG, ("ppp_close() called\n"));
|
||||
pcb->settings.persist = 0;
|
||||
|
||||
/* Disconnect */
|
||||
#if PPPOE_SUPPORT
|
||||
|
Loading…
Reference in New Issue
Block a user