2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
6 * Definitions for the TCP protocol.
8 * Version: @(#)tcp.h 1.0.2 04/28/93
10 * Author: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version
15 * 2 of the License, or (at your option) any later version.
20 #include <linux/types.h>
21 #include <asm/byteorder.h>
28 #if defined(__LITTLE_ENDIAN_BITFIELD)
38 #elif defined(__BIG_ENDIAN_BITFIELD)
49 #error "Adjust your <asm/byteorder.h> defines"
68 TCP_CLOSING
, /* now a valid state */
70 TCP_MAX_STATES
/* Leave at the end! */
73 #define TCP_STATE_MASK 0xF
74 #define TCP_ACTION_FIN (1 << 7)
77 TCPF_ESTABLISHED
= (1 << 1),
78 TCPF_SYN_SENT
= (1 << 2),
79 TCPF_SYN_RECV
= (1 << 3),
80 TCPF_FIN_WAIT1
= (1 << 4),
81 TCPF_FIN_WAIT2
= (1 << 5),
82 TCPF_TIME_WAIT
= (1 << 6),
83 TCPF_CLOSE
= (1 << 7),
84 TCPF_CLOSE_WAIT
= (1 << 8),
85 TCPF_LAST_ACK
= (1 << 9),
86 TCPF_LISTEN
= (1 << 10),
87 TCPF_CLOSING
= (1 << 11)
90 #endif /* _LINUX_TCP_H */