Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

netfilter: nft_reject_bridge: fix build errors due to code movement

Fix build errors in net/bridge/netfilter/nft_reject_bridge.ko
by selecting NF_REJECT_IPV4, which provides the missing symbols.

ERROR: modpost: "nf_reject_skb_v4_tcp_reset" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!
ERROR: modpost: "nf_reject_skb_v4_unreach" [net/bridge/netfilter/nft_reject_bridge.ko] undefined!

Fixes: fa538f7cf05a ("netfilter: nf_reject: add reject skbuff creation helpers")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

authored by

Randy Dunlap and committed by
Pablo Neira Ayuso
fd2d6bc4 f9e425e9

+2
+2
net/bridge/netfilter/Kconfig
··· 18 18 config NFT_BRIDGE_REJECT 19 19 tristate "Netfilter nf_tables bridge reject support" 20 20 depends on NFT_REJECT 21 + depends on NF_REJECT_IPV4 22 + depends on NF_REJECT_IPV6 21 23 help 22 24 Add support to reject packets. 23 25