summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/physical.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-02-16 00:16:56 +0000
committerbrian <brian@FreeBSD.org>1999-02-16 00:16:56 +0000
commit08a4aed34d2e22f624880ea97ae63faabf7b2b11 (patch)
tree4211103ce551e45ebed22c49672a1e796e9946f4 /usr.sbin/ppp/physical.h
parent40ead2b843c4d46a6088c16b62c9f07c3563fab9 (diff)
downloadFreeBSD-src-08a4aed34d2e22f624880ea97ae63faabf7b2b11.zip
FreeBSD-src-08a4aed34d2e22f624880ea97ae63faabf7b2b11.tar.gz
Wait by default for one second after the login script
is complete before checking carrier. If it's there, the device supports carrier. If it's not it doesn't. Add the ``set cd'' command for deciding how soon to check for carrier, and for deciding if carrier is REQUIRED. The default has changed: Pre 2.0 versions of ppp waited for 1 second. Version 2 didn't wait, but this causes problems with some (few?) modems that don't assert carrier immediately on reporting CONNECT. The one second delay is back now and can be removed with ``set cd 0''. Bump the ppp version number in case this needs to be changed again....
Diffstat (limited to 'usr.sbin/ppp/physical.h')
-rw-r--r--usr.sbin/ppp/physical.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/ppp/physical.h b/usr.sbin/ppp/physical.h
index bfd1c74..b2ce016 100644
--- a/usr.sbin/ppp/physical.h
+++ b/usr.sbin/ppp/physical.h
@@ -16,7 +16,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: physical.h,v 1.4 1998/08/25 17:48:43 brian Exp $
+ * $Id: physical.h,v 1.5 1999/01/10 01:26:30 brian Exp $
*
*/
@@ -51,6 +51,10 @@ struct physical {
unsigned parity; /* What parity is enabled? (TTY flags) */
unsigned speed; /* Modem speed */
char devlist[LINE_LEN]; /* Comma-separated list of devices */
+ struct {
+ unsigned required : 1; /* Is cd *REQUIRED* on this device */
+ int delay; /* Wait this many seconds after login script */
+ } cd;
} cfg;
struct termios ios; /* To be able to reset from raw mode */
OpenPOWER on IntegriCloud