xref: /original-bsd/sys/deprecated/bbnnet/fsm.h (revision 2c497c00)
1 /* $Header: fsm.h,v 1.3 85/04/08 13:02:06 walsh Exp $ */
2 
3 
4 #define EFAILEC         (-1)
5 #define SAME            0
6 #define LISTEN          1
7 #define SYN_SENT        2
8 #define SYN_RCVD        3
9 #define L_SYN_RCVD      4
10 #define ESTAB           5
11 #define FIN_W1          6
12 #define FIN_W2          7
13 #define TIME_WAIT       8
14 #define CLOSE_WAIT      9
15 #define CLOSING1        10
16 #define CLOSING2        11
17 #define RCV_WAIT        12
18 #define CLOSED		13
19 #define TCP_NSTATES	14
20 
21 #define IUOPENA 1
22 #define INRECV  2
23 #define IUOPENR 3
24 #define IUCLOSE 4
25 #define ISTIMER 5
26 #define IURECV  6
27 #define IUSEND  7
28 #define IUABORT 8
29 #define INCLEAR 9
30 #define INOP    10	/* number of inputs to TCP fsm */
31 
32 #define TXMT	0	/* measure time from sent sequence t_xmt_val to ack */
33 #define TINIT   1	/* timeout on connetion creation */
34 #define TREXMT  2	/* resend data when goes off */
35 #define TREXMTTL 3	/* tell user retransmissions failing when goes off */
36 #define TPERSIST 4	/* probe closed windows to ensure opening */
37 #define TFINACK 5
38 #define TDELACK 6	/* used to reduce ack-only traffic + incr thruput */
39 #define TNOACT	7	/* no activity, or close took too long */
40 
41 #define NTIMERS 8	/* number of tcp timers */
42 
43