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/ppp.8 | |
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/ppp.8')
-rw-r--r-- | usr.sbin/ppp/ppp.8 | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8 index 8d0e77281b8..cbd0c42c3f0 100644 --- a/usr.sbin/ppp/ppp.8 +++ b/usr.sbin/ppp/ppp.8 @@ -1,4 +1,4 @@ -.\" $Id: ppp.8,v 1.15 1998/01/18 20:47:21 brian Exp $ +.\" $Id: ppp.8,v 1.16 1998/01/20 22:46:30 brian Exp $ .Dd 20 September 1995 .Os OpenBSD .Dt PPP 8 @@ -2254,16 +2254,23 @@ will be negotiated. .It set nbns x.x.x.x y.y.y.y This option allows the setting of the Microsoft NetBIOS DNS servers that will be negotiated. -.It set openmode active|passive +.It set openmode active|passive Op delay By default, .Ar openmode is always -.Ar active . +.Ar active +with a one second +.Ar delay . That is, .Nm -will always initiate LCP/IPCP/CCP negotiation. If you want to wait -for the peer to initiate negotiations, you may use the value +will always initiate LCP/IPCP/CCP negotiation one second after the line +comes up. If you want to wait for the peer to initiate negotiations, you +can use the value .Ar passive . +If you want to initiate negotiations immediately or after more than one +second, the appropriate +.Ar delay +may be specified here in seconds. .It set parity odd|even|none|mark This allows the line parity to be set. The default value is .Ar none . @@ -2328,6 +2335,10 @@ log all state transitions. The default value is zero, where .Nm doesn't time out in the stopped state. +.Pp +This value should not be set to less than the openmode delay (see +.Dq set openmode +above). .It set server|socket TcpPort|LocalName|none [password] [mask] This command tells .Nm |