]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: NAT chain and extensions require NF_TABLES
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 18 Apr 2018 10:23:39 +0000 (12:23 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 19 Apr 2018 10:31:34 +0000 (12:31 +0200)
commit9437fe608a2de420d8ec6bd099ecafac92e81fd7
tree250db5097f2dcf9439e155f909ead8acfdb235ef
parent5add7dcbf6f4972bbc61c311ac9c497c106c265d
netfilter: nf_tables: NAT chain and extensions require NF_TABLES

Move these options inside the scope of the 'if' NF_TABLES and
NF_TABLES_IPV6 dependencies. This patch fixes:

   net/ipv6/netfilter/nft_chain_nat_ipv6.o: In function `nft_nat_do_chain':
>> net/ipv6/netfilter/nft_chain_nat_ipv6.c:37: undefined reference to `nft_do_chain'
   net/ipv6/netfilter/nft_chain_nat_ipv6.o: In function `nft_chain_nat_ipv6_exit':
>> net/ipv6/netfilter/nft_chain_nat_ipv6.c:94: undefined reference to `nft_unregister_chain_type'
   net/ipv6/netfilter/nft_chain_nat_ipv6.o: In function `nft_chain_nat_ipv6_init':
>> net/ipv6/netfilter/nft_chain_nat_ipv6.c:87: undefined reference to `nft_register_chain_type'

that happens with:

CONFIG_NF_TABLES=m
CONFIG_NFT_CHAIN_NAT_IPV6=y

Fixes: e841d3d89c2a ("netfilter: nf_tables: build-in filter chain type")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/ipv6/netfilter/Kconfig