PPP, PPPoE, PPPoL2TP: enforce disabling of silent and passive modes
PPP is just the upper protocol for PPPoE and PPPoL2TP, meaning it is only started once "E" or L2TP is established. Therefore waiting indefinitely for LCP packets on the PPP side does not make sense at all, if the lower level protocol is UP, PPP *MUST* comes up as well or we should restart from the beginning.
This commit is contained in:
@@ -932,6 +932,8 @@ pppoe_connect(ppp_pcb *ppp, void *ctx)
|
||||
lcp_wo->neg_asyncmap = 0;
|
||||
lcp_wo->neg_pcompression = 0;
|
||||
lcp_wo->neg_accompression = 0;
|
||||
lcp_wo->passive = 0;
|
||||
lcp_wo->silent = 0;
|
||||
|
||||
lcp_ao = &ppp->lcp_allowoptions;
|
||||
lcp_ao->mru = sc->sc_ethif->mtu-PPPOE_HEADERLEN-2; /* two byte PPP protocol discriminator, then IP data */
|
||||
|
||||
@@ -275,6 +275,8 @@ static err_t pppol2tp_connect(ppp_pcb *ppp, void *ctx) {
|
||||
lcp_wo->neg_asyncmap = 0;
|
||||
lcp_wo->neg_pcompression = 0;
|
||||
lcp_wo->neg_accompression = 0;
|
||||
lcp_wo->passive = 0;
|
||||
lcp_wo->silent = 0;
|
||||
|
||||
lcp_ao = &ppp->lcp_allowoptions;
|
||||
lcp_ao->mru = PPPOL2TP_DEFMRU;
|
||||
|
||||
Reference in New Issue
Block a user