Input: wm97xx: add new AC97 bus support
[sfrench/cifs-2.6.git] / include / uapi / linux / netfilter / nf_conntrack_tuple_common.h
1 #ifndef _NF_CONNTRACK_TUPLE_COMMON_H
2 #define _NF_CONNTRACK_TUPLE_COMMON_H
3
4 #include <linux/types.h>
5 #ifndef __KERNEL__
6 #include <linux/netfilter.h>
7 #endif
8 #include <linux/netfilter/nf_conntrack_common.h> /* IP_CT_IS_REPLY */
9
10 enum ip_conntrack_dir {
11         IP_CT_DIR_ORIGINAL,
12         IP_CT_DIR_REPLY,
13         IP_CT_DIR_MAX
14 };
15
16 /* The protocol-specific manipulable parts of the tuple: always in
17  * network order
18  */
19 union nf_conntrack_man_proto {
20         /* Add other protocols here. */
21         __be16 all;
22
23         struct {
24                 __be16 port;
25         } tcp;
26         struct {
27                 __be16 port;
28         } udp;
29         struct {
30                 __be16 id;
31         } icmp;
32         struct {
33                 __be16 port;
34         } dccp;
35         struct {
36                 __be16 port;
37         } sctp;
38         struct {
39                 __be16 key;     /* GRE key is 32bit, PPtP only uses 16bit */
40         } gre;
41 };
42
43 #define CTINFO2DIR(ctinfo) ((ctinfo) >= IP_CT_IS_REPLY ? IP_CT_DIR_REPLY : IP_CT_DIR_ORIGINAL)
44
45 #endif /* _NF_CONNTRACK_TUPLE_COMMON_H */