summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/lqr.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-05-19 02:00:16 +0000
committerbrian <brian@FreeBSD.org>1997-05-19 02:00:16 +0000
commitee01b280507bf1f39a39f9beb574b6653321fd1c (patch)
treee4d9b90f3eb2066eb4729a5a72f4efff2a30eec9 /usr.sbin/ppp/lqr.c
parent4f2495eff057ea8a9f8c638ee404521f89177a51 (diff)
downloadFreeBSD-src-ee01b280507bf1f39a39f9beb574b6653321fd1c.zip
FreeBSD-src-ee01b280507bf1f39a39f9beb574b6653321fd1c.tar.gz
Mega update to sort out bad implementations
of reconnect & -background. o Fix reconnect anomolies. o Make reconnect apply to failed LQR hangups (& mention in man page). o Make reconnect effective in -background mode. o Listen on socket in -background mode. o Try all phone numbers in -background mode. o Insist on system arg in -background mode. o Make a control-connection close command exit in -background mode. o Output status message to stdout on exit of parent in -background mode. o Don't notify parent of success too soon. o Describe termination EX_* code. o Miscelaneous diagnostic corrections. o Remove redundant connect_time from modem.c. o Don't repeatedly DownConnection().
Diffstat (limited to 'usr.sbin/ppp/lqr.c')
-rw-r--r--usr.sbin/ppp/lqr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/ppp/lqr.c b/usr.sbin/ppp/lqr.c
index 5475da8..aafe340 100644
--- a/usr.sbin/ppp/lqr.c
+++ b/usr.sbin/ppp/lqr.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: lqr.c,v 1.10 1997/05/07 23:40:31 brian Exp $
+ * $Id: lqr.c,v 1.11 1997/05/09 16:16:31 jdp Exp $
*
* o LQR based on RFC1333
*
@@ -111,6 +111,7 @@ SendLqrReport()
LogPrintf(LOG_PHASE_BIT, "** 1 Too many ECHO packets are lost. **\n");
lqmmethod = 0; /* Prevent rcursion via LcpClose() */
LcpClose();
+ reconnectRequired = 1;
} else {
bp = mballoc(sizeof(struct lqrdata), MB_LQR);
HdlcOutput(PRI_LINK, PROTO_LQR, bp);
@@ -121,6 +122,7 @@ SendLqrReport()
LogPrintf(LOG_PHASE_BIT, "** 2 Too many ECHO packets are lost. **\n");
lqmmethod = 0; /* Prevent rcursion via LcpClose() */
LcpClose();
+ reconnectRequired = 1;
} else
SendEchoReq();
}
OpenPOWER on IntegriCloud