]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/lcp.c
pppd: Fix spurious LCP echo failures with lcp-echo-adaptive option
[ppp.git] / pppd / lcp.c
index 9dc883e47ce85a634df6c42b884a512379bd3559..6354f397f0084f8d215c4ded2b1eb022043b2a5f 100644 (file)
@@ -2279,6 +2279,8 @@ LcpSendEchoRequest (fsm *f)
 
        if (get_ppp_stats(f->unit, &cur_stats) && cur_stats.pkts_in != last_pkts_in) {
            last_pkts_in = cur_stats.pkts_in;
+           /* receipt of traffic indicates the link is working... */
+           lcp_echos_pending = 0;
            return;
        }
     }