netfilter: don't allocate space for arp/bridge hooks unless needed
authorFlorian Westphal <fw@strlen.de>
Thu, 7 Dec 2017 15:28:26 +0000 (16:28 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Jan 2018 17:01:11 +0000 (18:01 +0100)
commit2a95183a5e0375df756efb2ca37602d71e8455f9
tree4ab9eaf7114711a553c6152cbba318349b5ff16e
parentbb4badf3a3dc81190f7c1c1fa063cdefb18df45f
netfilter: don't allocate space for arp/bridge hooks unless needed

no need to define hook points if the family isn't supported.
Because we need these hooks for either nftables, arp/ebtables
or the 'call-iptables' hack we have in the bridge layer add two
new dependencies, NETFILTER_FAMILY_{ARP,BRIDGE}, and have the
users select them.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter.h
include/net/netns/netfilter.h
net/Kconfig
net/bridge/netfilter/Kconfig
net/ipv4/netfilter/Kconfig
net/netfilter/Kconfig
net/netfilter/core.c
net/netfilter/nf_queue.c