]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite17daec9196bfa8b672b3e706a9782f8ef757ef9
tree4ab9eaf7114711a553c6152cbba318349b5ff16e
parent8f70f949a82c965a8b74b6c5b00ca508171bf23a
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