Lines Matching refs:fsm

2 * fsm.h - Network Control Protocol Finite State Machine header file.
34 * fsm.h - {Link, IP} Control Protocol Finite State Machine definitions.
51 * $Id: fsm.h,v 1.5 2009/12/31 17:08:08 goldsimon Exp $
76 * Each FSM is described by an fsm structure and fsm callbacks.
78 typedef struct fsm {
95 } fsm;
99 void (*resetci)(fsm*); /* Reset our Configuration Information */
100 int (*cilen)(fsm*); /* Length of our Configuration Information */
101 void (*addci)(fsm*, u_char*, int*); /* Add our Configuration Information */
102 int (*ackci)(fsm*, u_char*, int); /* ACK our Configuration Information */
103 int (*nakci)(fsm*, u_char*, int); /* NAK our Configuration Information */
104 int (*rejci)(fsm*, u_char*, int); /* Reject our Configuration Information */
105 int (*reqci)(fsm*, u_char*, int*, int); /* Request peer's Configuration Information */
106 void (*up)(fsm*); /* Called when fsm reaches LS_OPENED state */
107 void (*down)(fsm*); /* Called when fsm leaves LS_OPENED state */
108 void (*starting)(fsm*); /* Called when we want the lower layer */
109 void (*finished)(fsm*); /* Called when we don't want the lower layer */
111 void (*retransmit)(fsm*); /* Retransmission is necessary */
112 int (*extcode)(fsm*, int, u_char, u_char*, int); /* Called when unknown code received */
142 void fsm_init (fsm*);
143 void fsm_lowerup (fsm*);
144 void fsm_lowerdown (fsm*);
145 void fsm_open (fsm*);
146 void fsm_close (fsm*, char*);
147 void fsm_input (fsm*, u_char*, int);
148 void fsm_protreject (fsm*);
149 void fsm_sdata (fsm*, u_char, u_char, u_char*, int);