summaryrefslogtreecommitdiffstats
path: root/include/net/netns/netfilter.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-12-07 16:28:25 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2018-01-08 18:01:10 +0100
commitbb4badf3a3dc81190f7c1c1fa063cdefb18df45f (patch)
treedb9c5d83c02ee83d0137a9b52d369d9948798660 /include/net/netns/netfilter.h
parentef57170bbfdd6958281011332b1fd237712f69f0 (diff)
downloadlinux-bb4badf3a3dc81190f7c1c1fa063cdefb18df45f.tar.gz
linux-bb4badf3a3dc81190f7c1c1fa063cdefb18df45f.tar.bz2
linux-bb4badf3a3dc81190f7c1c1fa063cdefb18df45f.zip
netfilter: don't allocate space for decnet hooks unless needed
no need to define hook points if the family isn't supported. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netns/netfilter.h')
-rw-r--r--include/net/netns/netfilter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netns/netfilter.h b/include/net/netns/netfilter.h
index 8f756a4b9205..432609fd9899 100644
--- a/include/net/netns/netfilter.h
+++ b/include/net/netns/netfilter.h
@@ -21,7 +21,9 @@ struct netns_nf {
struct nf_hook_entries __rcu *hooks_ipv6[NF_INET_NUMHOOKS];
struct nf_hook_entries __rcu *hooks_arp[NF_ARP_NUMHOOKS];
struct nf_hook_entries __rcu *hooks_bridge[NF_INET_NUMHOOKS];
+#if IS_ENABLED(CONFIG_DECNET)
struct nf_hook_entries __rcu *hooks_decnet[NF_DN_NUMHOOKS];
+#endif
#if IS_ENABLED(CONFIG_NF_DEFRAG_IPV4)
bool defrag_ipv4;
#endif