aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_conntrack_extend.h
diff options
context:
space:
mode:
authorChangli Gao <xiaosuo@gmail.com>2010-11-15 12:23:24 +0100
committerPatrick McHardy <kaber@trash.net>2010-11-15 12:23:24 +0100
commite0e76c83becc7536e8371e560504d836d34fcf7d (patch)
tree9a2f63014e06aee37815dfa20394a79c351739f0 /include/net/netfilter/nf_conntrack_extend.h
parentnetfilter: nf_nat: don't use atomic bit operation (diff)
downloadlinux-dev-e0e76c83becc7536e8371e560504d836d34fcf7d.tar.xz
linux-dev-e0e76c83becc7536e8371e560504d836d34fcf7d.zip
netfilter: ct_extend: define NF_CT_EXT_* as needed
Less IDs make nf_ct_ext smaller. Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/net/netfilter/nf_conntrack_extend.h')
-rw-r--r--include/net/netfilter/nf_conntrack_extend.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_conntrack_extend.h b/include/net/netfilter/nf_conntrack_extend.h
index 0772d296dfdb..1a9f96db3798 100644
--- a/include/net/netfilter/nf_conntrack_extend.h
+++ b/include/net/netfilter/nf_conntrack_extend.h
@@ -7,10 +7,16 @@
enum nf_ct_ext_id {
NF_CT_EXT_HELPER,
+#if defined(CONFIG_NF_NAT) || defined(CONFIG_NF_NAT_MODULE)
NF_CT_EXT_NAT,
+#endif
NF_CT_EXT_ACCT,
+#ifdef CONFIG_NF_CONNTRACK_EVENTS
NF_CT_EXT_ECACHE,
+#endif
+#ifdef CONFIG_NF_CONNTRACK_ZONES
NF_CT_EXT_ZONE,
+#endif
NF_CT_EXT_NUM,
};