summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/vars.h
diff options
context:
space:
mode:
authorbrian <brian@cvs.openbsd.org>1998-01-20 22:46:33 +0000
committerbrian <brian@cvs.openbsd.org>1998-01-20 22:46:33 +0000
commit3d2201a7982c109e8fc6c5a6a83083f7c0a26303 (patch)
tree2d37ccc60ab36afd94ca01e70d677e7fcb350e71 /usr.sbin/ppp/vars.h
parent9c88dd386e8011d11f46ffbeec2a412dc2c9edc5 (diff)
Allow an optional delay when specifying "set openmode active".
The delay defaults to 1 sec (as it always has) unless we've done a ~p in interactive mode or we've actually detected a HDLC frame. This is now cleanly implemented (via async timers) so that it is possible for LCP to come up despite the delay if an LCP REQ is received. This will hopefully solve situations with slow servers or slirp scenarios (where ECHO is left on the port for a second or so before the peer enters packet mode). Also, ~p in interactive mode no longer changes the value of the default openmode delay and -dedicated mode enters packet mode in the right state according to the value of openmode.
Diffstat (limited to 'usr.sbin/ppp/vars.h')
-rw-r--r--usr.sbin/ppp/vars.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/vars.h b/usr.sbin/ppp/vars.h
index 49c3d038e9f..bfc24bbe999 100644
--- a/usr.sbin/ppp/vars.h
+++ b/usr.sbin/ppp/vars.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: vars.h,v 1.5 1998/01/11 17:54:48 brian Exp $
+ * $Id: vars.h,v 1.6 1998/01/20 22:46:32 brian Exp $
*
* TODO:
*/
@@ -73,7 +73,7 @@ struct pppvars {
char modem_devlist[LINE_LEN]; /* Comma-separated list of devices */
char modem_dev[40]; /* Name of device / host:port */
const char *base_modem_dev; /* Pointer to base of modem_dev */
- int open_mode; /* LCP open mode */
+ int open_mode; /* Delay before first LCP REQ (-1 = passive) */
#define LOCAL_AUTH 0x01
#define LOCAL_NO_AUTH 0x02
#define LOCAL_DENY 0x03