summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/modem.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-04-21 01:02:02 +0000
committerbrian <brian@FreeBSD.org>1997-04-21 01:02:02 +0000
commitad4ab187936a54f3a8329d804592f12284e6c176 (patch)
tree7b87206f10e0b3c6831b1d1b453f11c55a48e172 /usr.sbin/ppp/modem.c
parentca8a9db2701fdcbcc35546f2de8867e0b669e7bc (diff)
downloadFreeBSD-src-ad4ab187936a54f3a8329d804592f12284e6c176.zip
FreeBSD-src-ad4ab187936a54f3a8329d804592f12284e6c176.tar.gz
Add a reconnect capability directing ppp to re-establish
the connection after an unexpected loss of carrier: set reconnect timer ntries The man page warns against using this command when your timeout value is slightly more than the other sides :{} Suggested by: burton@bsampley.vip.best.com (Burton Sampley)
Diffstat (limited to 'usr.sbin/ppp/modem.c')
-rw-r--r--usr.sbin/ppp/modem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c
index ead30ac..fb0bb3c 100644
--- a/usr.sbin/ppp/modem.c
+++ b/usr.sbin/ppp/modem.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: modem.c,v 1.32 1997/03/31 22:51:00 brian Exp $
+ * $Id: modem.c,v 1.33 1997/04/13 00:54:44 brian Exp $
*
* TODO:
*/
@@ -218,6 +218,7 @@ DownConnection()
CloseModem();
LcpDown();
}
+ lostCarrier++;
connect_time = 0;
}
OpenPOWER on IntegriCloud