1 /****************************************************************************
2 ****************************************************************************
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
10 ****************************************************************************
11 ****************************************************************************/
15 #include <linux/types.h>
16 #include <asm/byteorder.h>
23 #ifdef __LITTLE_ENDIAN_BITFIELD
34 #elif defined(__BIG_ENDIAN_BITFIELD)
46 #error "Adjust your <asm/byteorder.h> defines"
58 #define tcp_flag_word(tp) ( ((union tcp_word_hdr *)(tp))->words [3])
61 TCP_FLAG_CWR = __constant_htonl(0x00800000),
62 TCP_FLAG_ECE = __constant_htonl(0x00400000),
63 TCP_FLAG_URG = __constant_htonl(0x00200000),
64 TCP_FLAG_ACK = __constant_htonl(0x00100000),
65 TCP_FLAG_PSH = __constant_htonl(0x00080000),
66 TCP_FLAG_RST = __constant_htonl(0x00040000),
67 TCP_FLAG_SYN = __constant_htonl(0x00020000),
68 TCP_FLAG_FIN = __constant_htonl(0x00010000),
69 TCP_RESERVED_BITS = __constant_htonl(0x0F000000),
70 TCP_DATA_OFFSET = __constant_htonl(0xF0000000)
76 #define TCP_KEEPIDLE 4
77 #define TCP_KEEPINTVL 5
81 #define TCP_DEFER_ACCEPT 9
82 #define TCP_WINDOW_CLAMP 10
84 #define TCP_QUICKACK 12
85 #define TCP_CONGESTION 13
87 #define TCPI_OPT_TIMESTAMPS 1
88 #define TCPI_OPT_SACK 2
89 #define TCPI_OPT_WSCALE 4
90 #define TCPI_OPT_ECN 8
95 #define TCPF_CA_Open (1<<TCP_CA_Open)
97 #define TCPF_CA_Disorder (1<<TCP_CA_Disorder)
99 #define TCPF_CA_CWR (1<<TCP_CA_CWR)
101 #define TCPF_CA_Recovery (1<<TCP_CA_Recovery)
103 #define TCPF_CA_Loss (1<<TCP_CA_Loss)
110 __u8 tcpi_retransmits;
114 __u8 tcpi_snd_wscale : 4, tcpi_rcv_wscale : 4;
127 __u32 tcpi_last_data_sent;
128 __u32 tcpi_last_ack_sent;
129 __u32 tcpi_last_data_recv;
130 __u32 tcpi_last_ack_recv;
133 __u32 tcpi_rcv_ssthresh;
136 __u32 tcpi_snd_ssthresh;
139 __u32 tcpi_reordering;
142 __u32 tcpi_rcv_space;
144 __u32 tcpi_total_retrans;