diff options
author | brian <brian@FreeBSD.org> | 1997-08-20 23:47:53 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-08-20 23:47:53 +0000 |
commit | ee30a8036052078885c17ba37e65abaf0b280438 (patch) | |
tree | dab691e3723d46a019c4caaa85f02ac0654c39b7 /usr.sbin/ppp/fsm.h | |
parent | f28d374978afbd1de19f8874f98b70ea15f6f2ea (diff) | |
download | FreeBSD-src-ee30a8036052078885c17ba37e65abaf0b280438.zip FreeBSD-src-ee30a8036052078885c17ba37e65abaf0b280438.tar.gz |
Expand the "set stopped" command so that it can
idependently time out any of the FSMs.
Split LCP logging into LCP, IPCP and CCP logging,
and make room in "struct fsm" for the log level
that the state machine should use.
Diffstat (limited to 'usr.sbin/ppp/fsm.h')
-rw-r--r-- | usr.sbin/ppp/fsm.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/usr.sbin/ppp/fsm.h b/usr.sbin/ppp/fsm.h index 0b55a89..6fd4e48 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.7 1997/02/22 16:10:14 peter Exp $ + * $Id: fsm.h,v 1.8 1997/06/09 03:27:21 brian Exp $ * * TODO: */ @@ -65,6 +65,19 @@ struct fsm { int reqcode; /* Request code sent */ struct pppTimer FsmTimer; /* Restart Timer */ + /* + * This timer times the ST_STOPPED state out after the given value + * (specified via "set stopped ..."). Although this isn't + * specified in the rfc, the rfc *does* say that "the application + * may use higher level timers to avoid deadlock". + * The StoppedTimer takes effect when the other side ABENDs rather + * than going into ST_ACKSENT (and sending the ACK), causing ppp to + * time out and drop into ST_STOPPED. At this point, nothing will + * change this state :-( + */ + struct pppTimer StoppedTimer; + int LogLevel; + void (*LayerUp)(struct fsm *); void (*LayerDown)(struct fsm *); void (*LayerStart)(struct fsm *); |