X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;ds=sidebyside;f=pppd%2Flcp.c;h=dbf100de476c5f8d2004027259f2eddc8eef2414;hb=8592783058509b5493a42f3b0432fcbaab55c994;hp=1ee727fa0fe2f4b51d60793e9a9d079f8c9e7d49;hpb=1fd9b499c32e19ecbd2be685f7af98e7e4252808;p=ppp.git diff --git a/pppd/lcp.c b/pppd/lcp.c index 1ee727f..dbf100d 100644 --- a/pppd/lcp.c +++ b/pppd/lcp.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: lcp.c,v 1.37 1999/03/19 01:24:56 paulus Exp $"; +static char rcsid[] = "$Id: lcp.c,v 1.39 1999/05/12 06:19:47 paulus Exp $"; #endif /* @@ -1724,7 +1724,7 @@ lcp_printpkt(p, plen, printer, arg) if (olen >= CILEN_CHAR) { p += 2; printer(arg, "callback "); - GETSHORT(cishort, p); + GETCHAR(cishort, p); switch (cishort) { case CBCP_OPT: printer(arg, "CBCP"); @@ -1805,6 +1805,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; } }