diff options
author | Florian Westphal <fw@strlen.de> | 2013-01-11 01:30:44 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-01-17 18:28:15 -0500 |
commit | c539f01717c239cfa0921dd43927afc976f1eedc (patch) | |
tree | e0e4881913acb233f6ea83d93eb69da446084101 /include/net/netns | |
parent | 7266507d89991fa1e989283e4e032c6d9357fe26 (diff) |
netfilter: add connlabel conntrack extension
similar to connmarks, except labels are bit-based; i.e.
all labels may be attached to a flow at the same time.
Up to 128 labels are supported. Supporting more labels
is possible, but requires increasing the ct offset delta
from u8 to u16 type due to increased extension sizes.
Mapping of bit-identifier to label name is done in userspace.
The extension is enabled at run-time once "-m connlabel" netfilter
rules are added.
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netns')
-rw-r--r-- | include/net/netns/conntrack.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h index 923cb20051ed..c9c0c538b68b 100644 --- a/include/net/netns/conntrack.h +++ b/include/net/netns/conntrack.h | |||
@@ -84,6 +84,10 @@ struct netns_ct { | |||
84 | int sysctl_auto_assign_helper; | 84 | int sysctl_auto_assign_helper; |
85 | bool auto_assign_helper_warned; | 85 | bool auto_assign_helper_warned; |
86 | struct nf_ip_net nf_ct_proto; | 86 | struct nf_ip_net nf_ct_proto; |
87 | #if defined(CONFIG_NF_CONNTRACK_LABELS) | ||
88 | unsigned int labels_used; | ||
89 | u8 label_words; | ||
90 | #endif | ||
87 | #ifdef CONFIG_NF_NAT_NEEDED | 91 | #ifdef CONFIG_NF_NAT_NEEDED |
88 | struct hlist_head *nat_bysource; | 92 | struct hlist_head *nat_bysource; |
89 | unsigned int nat_htable_size; | 93 | unsigned int nat_htable_size; |