Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[linux-2.6-block.git] / include / linux / netfilter / nf_conntrack_tcp.h
CommitLineData
9fb9cbb1
YK
1#ifndef _NF_CONNTRACK_TCP_H
2#define _NF_CONNTRACK_TCP_H
9fb9cbb1 3
94d0ec58 4#include <uapi/linux/netfilter/nf_conntrack_tcp.h>
60c195c7 5
9fb9cbb1
YK
6
7struct ip_ct_tcp_state {
8 u_int32_t td_end; /* max of seq + len */
9 u_int32_t td_maxend; /* max of ack + max(win, 1) */
10 u_int32_t td_maxwin; /* max(win) */
bfcaa502 11 u_int32_t td_maxack; /* max of ack */
9fb9cbb1 12 u_int8_t td_scale; /* window scale factor */
9fb9cbb1
YK
13 u_int8_t flags; /* per direction options */
14};
15
d94d9fee 16struct ip_ct_tcp {
9fb9cbb1
YK
17 struct ip_ct_tcp_state seen[2]; /* connection parameters per direction */
18 u_int8_t state; /* state of the connection (enum tcp_conntrack) */
19 /* For detecting stale connections */
20 u_int8_t last_dir; /* Direction of the last packet (enum ip_conntrack_dir) */
21 u_int8_t retrans; /* Number of retransmitted packets */
22 u_int8_t last_index; /* Index of the last packet */
23 u_int32_t last_seq; /* Last sequence number seen in dir */
24 u_int32_t last_ack; /* Last sequence number seen in opposite dir */
25 u_int32_t last_end; /* Last seq + len */
c1fe3ca5 26 u_int16_t last_win; /* Last window advertisement seen in dir */
c4832c7b
PNA
27 /* For SYN packets while we may be out-of-sync */
28 u_int8_t last_wscale; /* Last window scaling factor seen */
29 u_int8_t last_flags; /* Last flags set */
9fb9cbb1
YK
30};
31
9fb9cbb1 32#endif /* _NF_CONNTRACK_TCP_H */