diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-10-25 17:14:26 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-10-25 17:14:26 +0200 |
commit | 9d284c1c67188dfa8a4c7a6e36eb9a10bd9c15e2 (patch) | |
tree | 21c1bdb785a2b5779c772cc8fafbc043e16babbb /include/linux/netfilter/nf_conntrack_tuple_common.h | |
parent | 3e6fa55d5e28c93f417afeae7a7d4f349ddffcf4 (diff) | |
parent | 8d8896a3833292d091ee5a028f3461083bb956bd (diff) |
Merge branch 'next' branch that contains new features scheduled for
Linux kernel 3.7
Diffstat (limited to 'include/linux/netfilter/nf_conntrack_tuple_common.h')
-rw-r--r-- | include/linux/netfilter/nf_conntrack_tuple_common.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/netfilter/nf_conntrack_tuple_common.h b/include/linux/netfilter/nf_conntrack_tuple_common.h index 2ea22b01..2f6bbc5b 100644 --- a/include/linux/netfilter/nf_conntrack_tuple_common.h +++ b/include/linux/netfilter/nf_conntrack_tuple_common.h @@ -7,6 +7,33 @@ enum ip_conntrack_dir { IP_CT_DIR_MAX }; +/* The protocol-specific manipulable parts of the tuple: always in + * network order + */ +union nf_conntrack_man_proto { + /* Add other protocols here. */ + __be16 all; + + struct { + __be16 port; + } tcp; + struct { + __be16 port; + } udp; + struct { + __be16 id; + } icmp; + struct { + __be16 port; + } dccp; + struct { + __be16 port; + } sctp; + struct { + __be16 key; /* GRE key is 32bit, PPtP only uses 16bit */ + } gre; +}; + #define CTINFO2DIR(ctinfo) ((ctinfo) >= IP_CT_IS_REPLY ? IP_CT_DIR_REPLY : IP_CT_DIR_ORIGINAL) #endif /* _NF_CONNTRACK_TUPLE_COMMON_H */ |