diff options
author | brian <brian@cvs.openbsd.org> | 1998-01-20 22:46:33 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 1998-01-20 22:46:33 +0000 |
commit | 3d2201a7982c109e8fc6c5a6a83083f7c0a26303 (patch) | |
tree | 2d37ccc60ab36afd94ca01e70d677e7fcb350e71 /usr.sbin/ppp/fsm.h | |
parent | 9c88dd386e8011d11f46ffbeec2a412dc2c9edc5 (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/fsm.h')
-rw-r--r-- | usr.sbin/ppp/fsm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/fsm.h b/usr.sbin/ppp/fsm.h index 8f17c7b588b..13872f208f3 100644 --- a/usr.sbin/ppp/fsm.h +++ b/usr.sbin/ppp/fsm.h @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: fsm.h,v 1.3 1998/01/10 01:55:15 brian Exp $ + * $Id: fsm.h,v 1.4 1998/01/20 22:46:25 brian Exp $ * * TODO: */ @@ -43,8 +43,7 @@ #define MODE_NOP 3 #define MODE_ACK 4 /* pseudo mode for ccp negotiations */ -#define OPEN_ACTIVE 0 -#define OPEN_PASSIVE 1 +#define OPEN_PASSIVE -1 struct fsm { const char *name; /* Name of protocol */ @@ -58,6 +57,7 @@ struct fsm { int reqcode; /* Request code sent */ struct pppTimer FsmTimer; /* Restart Timer */ + struct pppTimer OpenTimer; /* Delay before opening */ /* * This timer times the ST_STOPPED state out after the given value |