Go to the documentation of this file.
36#ifndef _NETINET_TCP_FSM_H_
37#define _NETINET_TCP_FSM_H_
49#define TCPS_SYN_SENT 2
50#define TCPS_SYN_RECEIVED 3
52#define TCPS_ESTABLISHED 4
53#define TCPS_CLOSE_WAIT 5
55#define TCPS_FIN_WAIT_1 6
57#define TCPS_LAST_ACK 8
59#define TCPS_FIN_WAIT_2 9
60#define TCPS_TIME_WAIT 10
62#define TCPS_HAVERCVDSYN(s) ((s) >= TCPS_SYN_RECEIVED)
63#define TCPS_HAVEESTABLISHED(s) ((s) >= TCPS_ESTABLISHED)
64#define TCPS_HAVERCVDFIN(s) \
65 ((s) == TCPS_CLOSE_WAIT || ((s) >= TCPS_CLOSING && (s) != TCPS_FIN_WAIT_2))
94static char const *
const tcpstates[] = {
95 "CLOSED",
"LISTEN",
"SYN_SENT",
"SYN_RCVD",
96 "ESTABLISHED",
"CLOSE_WAIT",
"FIN_WAIT_1",
"CLOSING",
97 "LAST_ACK",
"FIN_WAIT_2",
"TIME_WAIT",