diff options
author | brian <brian@FreeBSD.org> | 1999-02-26 21:28:14 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-02-26 21:28:14 +0000 |
commit | ee13d15d8f4dbbc16f743a3690a6e495279d5559 (patch) | |
tree | c5807a2099a7111ab5ef9d2ea6aee114863663ec /usr.sbin/ppp/ppp.8 | |
parent | 7810a0ea5a45f6d62932ef2f65c9127f4683098e (diff) | |
download | FreeBSD-src-ee13d15d8f4dbbc16f743a3690a6e495279d5559.zip FreeBSD-src-ee13d15d8f4dbbc16f743a3690a6e495279d5559.tar.gz |
Allow control over the number of ConfigREQ & TermREQ attempts
that are made in each of the FSMs (LCP, CCP & IPCP) and the
number of REQs/Challenges for PAP/CHAP by accepting more arguments
in the ``set {c,ip,l}cpretry'' and ``set {ch,p}apretry'' commands.
Change the non-convergence thresholds to 3 times the number of configured
REQ tries (rather than the previous fixed ``10''). We now notice
repeated NAKs and REJs rather than just REQs.
Don't suggest that CHAP 0x05 isn't supported when it's not configured.
Fix some bugs that expose themselves with smaller numbers of retries:
o Handle instantaneous disconnects (set device /dev/null) correctly
by stopping all fsm timers in fsm2initial.
o Don't forget to uu_unlock() devices that are files but are not
ttys (set device /dev/zero).
Fix a *HORRENDOUS* bug in RFC1661 (already fixed for an Open event in state
``Closed''):
According to the state transition table, a RCR+ or RCR- received in
the ``Stopped'' state are supposed to InitRestartCounter, SendConfigReq
and SendConfig{Ack,Nak}. However, in ``Stopped'', we haven't yet
done a TLS (or the last thing we did is a TLF). We must therefore
do the TLS at this point !
This was never noticed before because LCP and CCP used not use
LayerStart() for anything interesting, and IPCP tends to go into
Stopped then get a Down because of an LCP RTR rather than getting a
RCR again.
Diffstat (limited to 'usr.sbin/ppp/ppp.8')
-rw-r--r-- | usr.sbin/ppp/ppp.8 | 38 |
1 files changed, 31 insertions, 7 deletions
diff --git a/usr.sbin/ppp/ppp.8 b/usr.sbin/ppp/ppp.8 index 4ef3c32..ed513f2 100644 --- a/usr.sbin/ppp/ppp.8 +++ b/usr.sbin/ppp/ppp.8 @@ -1,4 +1,4 @@ -.\" $Id: ppp.8,v 1.150 1999/02/18 00:52:15 brian Exp $ +.\" $Id: ppp.8,v 1.151 1999/02/25 12:00:04 brian Exp $ .Dd 20 September 1995 .nr XX \w'\fC00' .Os FreeBSD @@ -3588,17 +3588,41 @@ In all cases, if the interface is already configured, .Nm will try to maintain the interface IP numbers so that any existing bound sockets will remain valid. -.It set ccpretry Ar period -.It set chapretry Ar period -.It set ipcpretry Ar period -.It set lcpretry Ar period -.It set papretry Ar period +.It "set ccpretry|ccpretries" Ar "[timeout [reqtries [trmtries]]]" +.It "set chapretry|chapretries" Ar "[timeout [reqtries]]" +.It "set ipcpretry|ipcpretries" Ar "[timeout [reqtries [trmtries]]]" +.It "set lcpretry|lcpretries" Ar "[timeout [reqtries [trmtries]]]" +.It "set papretry|papretries" Ar "[timeout [reqtries]]" These commands set the number of seconds that .Nm will wait before resending Finite State Machine (FSM) Request packets. The default -.Ar period +.Ar timeout for all FSMs is 3 seconds (which should suffice in most cases). +.Pp +If +.Ar reqtries +is specified, it tells +.Nm +how many configuration request attempts it should make while receiving +no reply from the peer before giving up. The default is 5 attempts for +CCP, LCP and IPCP and 3 attempts for PAP and CHAP. +.Pp +If +.Ar trmtries +is specified, it tells +.Nm +how many terminate requests should be sent before giving up waiting for the +peers response. The default is 3 attempts. Authentication protocols are +not terminated and it is therefore invalid to specify +.Ar trmtries +for PAP or CHAP. +.Pp +In order to avoid netogiations with the peer that will never converge, +.Nm +will only send at most 3 times the configured number of +.Ar reqtries +in any given negotiation session before giving up and closing that layer. .It set log [local] [+|-] Ns Ar value... This command allows the adjustment of the current log level. Refer to the Logging Facility section for further details. |