]> git.ozlabs.org Git - ppp.git/commit
pppd: Fix spurious LCP echo failures with lcp-echo-adaptive option
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 5 Dec 2022 06:33:48 +0000 (17:33 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Mon, 5 Dec 2022 06:33:48 +0000 (17:33 +1100)
commit844b69d854d80925fa97e5f9c971ec5d27d19f32
tree7b55bf3b3fe6322e1900d80af0e78564c2560ffe
parent184aaa447eea970cc7cb680263b104636e6e7a31
pppd: Fix spurious LCP echo failures with lcp-echo-adaptive option

If the lcp-echo-adaptive option is specified, it means that seeing
received traffic on the link is considered to be an indication that
the link is working.  Hence, this resets the count of missing LCP
echo-replies to 0 when traffic is seen.  Without this, occasional
echo failures interspersed with link traffic can accumulate and end up
causing a disconnection even when the link is working correctly.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/lcp.c