]> 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)
commit77d678aa18f271d4d9f9877bfbd5223492d7f80a
tree4ab9eaf7114711a553c6152cbba318349b5ff16e
parent024029f98f530f2184e5f14941f73db8647be0dc
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