mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08:00
PPP, MPPE, don't issue CCP reset request in stateless mode
This is useless, flushed bit is always true in stateless mode, we don't need to issue a CCP reset request in this case.
This commit is contained in:
parent
8fe2f747f4
commit
900f3c9a09
@ -332,6 +332,7 @@ mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb)
|
|||||||
* Signal the peer to rekey (by sending a CCP Reset-Request).
|
* Signal the peer to rekey (by sending a CCP Reset-Request).
|
||||||
*/
|
*/
|
||||||
state->discard = 1;
|
state->discard = 1;
|
||||||
|
ccp_resetrequest(pcb);
|
||||||
return ERR_BUF;
|
return ERR_BUF;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -382,10 +383,7 @@ mppe_decompress(ppp_pcb *pcb, ppp_mppe_state *state, struct pbuf **pb)
|
|||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
|
|
||||||
sanity_error:
|
sanity_error:
|
||||||
if (state->sanity_errors < SANITY_MAX) {
|
if (state->sanity_errors >= SANITY_MAX) {
|
||||||
/* Signal the peer to rekey (by sending a CCP Reset-Request). */
|
|
||||||
ccp_resetrequest(pcb);
|
|
||||||
} else {
|
|
||||||
/*
|
/*
|
||||||
* Take LCP down if the peer is sending too many bogons.
|
* Take LCP down if the peer is sending too many bogons.
|
||||||
* We don't want to do this for a single or just a few
|
* We don't want to do this for a single or just a few
|
||||||
|
Loading…
x
Reference in New Issue
Block a user