mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Fixed bug #29855: PPP: Backport a bugfix in LcpSendEchoRequest from pppd
This commit is contained in:
parent
d656e9f28e
commit
1551bb702d
@ -2010,7 +2010,7 @@ LcpSendEchoRequest (fsm *f)
|
|||||||
* Detect the failure of the peer at this point.
|
* Detect the failure of the peer at this point.
|
||||||
*/
|
*/
|
||||||
if (lcp_echo_fails != 0) {
|
if (lcp_echo_fails != 0) {
|
||||||
if (lcp_echos_pending++ >= lcp_echo_fails) {
|
if (lcp_echos_pending >= lcp_echo_fails) {
|
||||||
LcpLinkFailure(f);
|
LcpLinkFailure(f);
|
||||||
lcp_echos_pending = 0;
|
lcp_echos_pending = 0;
|
||||||
}
|
}
|
||||||
@ -2024,6 +2024,7 @@ LcpSendEchoRequest (fsm *f)
|
|||||||
pktp = pkt;
|
pktp = pkt;
|
||||||
PUTLONG(lcp_magic, pktp);
|
PUTLONG(lcp_magic, pktp);
|
||||||
fsm_sdata(f, ECHOREQ, (u_char)(lcp_echo_number++ & 0xFF), pkt, (int)(pktp - pkt));
|
fsm_sdata(f, ECHOREQ, (u_char)(lcp_echo_number++ & 0xFF), pkt, (int)(pktp - pkt));
|
||||||
|
++lcp_echos_pending;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user