]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/lcp.c
Merge pull request #378 from jkroonza/radius-admin-reset
[ppp.git] / pppd / lcp.c
index 91e73e700bdeae386f02308fe1995d1dd7616f49..6354f397f0084f8d215c4ded2b1eb022043b2a5f 100644 (file)
@@ -51,6 +51,7 @@
 #include "pppd.h"
 #include "fsm.h"
 #include "lcp.h"
+#include "eap.h"
 #include "chap-new.h"
 #include "magic.h"
 
@@ -2278,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;
        }
     }