Deleted Added
full compact
18c18
< * $Id: fsm.h,v 1.8 1997/06/09 03:27:21 brian Exp $
---
> * $Id: fsm.h,v 1.9 1997/08/20 23:47:43 brian Exp $
56c56
< char *name; /* Name of protocol */
---
> char *name; /* Name of protocol */
59,63c59,63
< int open_mode;
< int state; /* State of the machine */
< int reqid; /* Next request id */
< int restart; /* Restart counter value */
< int maxconfig;
---
> int open_mode;
> int state; /* State of the machine */
> int reqid; /* Next request id */
> int restart; /* Restart counter value */
> int maxconfig;
65c65
< int reqcode; /* Request code sent */
---
> int reqcode; /* Request code sent */
70,76c70,75
< * (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 :-(
---
> * (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 :-(
81,89c80,88
< void (*LayerUp)(struct fsm *);
< void (*LayerDown)(struct fsm *);
< void (*LayerStart)(struct fsm *);
< void (*LayerFinish)(struct fsm *);
< void (*InitRestartCounter)(struct fsm *);
< void (*SendConfigReq)(struct fsm *);
< void (*SendTerminateReq)(struct fsm *);
< void (*SendTerminateAck)(struct fsm *);
< void (*DecodeConfig)(u_char *, int, int);
---
> void (*LayerUp) (struct fsm *);
> void (*LayerDown) (struct fsm *);
> void (*LayerStart) (struct fsm *);
> void (*LayerFinish) (struct fsm *);
> void (*InitRestartCounter) (struct fsm *);
> void (*SendConfigReq) (struct fsm *);
> void (*SendTerminateReq) (struct fsm *);
> void (*SendTerminateAck) (struct fsm *);
> void (*DecodeConfig) (u_char *, int, int);
93,95c92,94
< u_char code; /* Request code */
< u_char id; /* Identification */
< u_short length; /* Length of packet */
---
> u_char code; /* Request code */
> u_char id; /* Identification */
> u_short length; /* Length of packet */
106,107c105,106
< #define CODE_ECHOREQ 9 /* Used in LCP */
< #define CODE_ECHOREP 10 /* Used in LCP */
---
> #define CODE_ECHOREQ 9 /* Used in LCP */
> #define CODE_ECHOREP 10 /* Used in LCP */
109,112c108,111
< #define CODE_IDENT 12 /* Used in LCP Extension */
< #define CODE_TIMEREM 13 /* Used in LCP Extension */
< #define CODE_RESETREQ 14 /* Used in CCP */
< #define CODE_RESETACK 15 /* Used in CCP */
---
> #define CODE_IDENT 12 /* Used in LCP Extension */
> #define CODE_TIMEREM 13 /* Used in LCP Extension */
> #define CODE_RESETREQ 14 /* Used in CCP */
> #define CODE_RESETACK 15 /* Used in CCP */
115c114
< void (*action)(struct fsm *, struct fsmheader *, struct mbuf *);
---
> void (*action) (struct fsm *, struct fsmheader *, struct mbuf *);
145c144
< extern void FsmClose(struct fsm *fp);
---
> extern void FsmClose(struct fsm * fp);
149c148
< #endif /* _FSM_H_ */
---
> #endif /* _FSM_H_ */