]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/lcp.c
set exit status for loopback detected
[ppp.git] / pppd / lcp.c
index 73f310d9e1505ebdc696ee2874fd6892df4f7cad..c4785a9e9c75593a5a4b470b214b2123750fbfcc 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
-static char rcsid[] = "$Id: lcp.c,v 1.38 1999/04/16 11:35:43 paulus Exp $";
+static char rcsid[] = "$Id: lcp.c,v 1.40 1999/05/13 00:33:26 paulus Exp $";
 #endif
 
 /*
@@ -1056,6 +1056,7 @@ lcp_nakci(f, p, len)
            if (++try.numloops >= lcp_loopbackfail) {
                notice("Serial line is looped back.");
                lcp_close(f->unit, "Loopback detected");
+               status = EXIT_LOOPBACK;
            }
        } else
            try.numloops = 0;
@@ -1805,6 +1806,7 @@ void LcpLinkFailure (f)
        info("No response to %d echo-requests", lcp_echos_pending);
         notice("Serial link appears to be disconnected.");
         lcp_close(f->unit, "Peer not responding");
+       status = EXIT_PEER_DEAD;
     }
 }