Skip to contentSkip to conversation

netfilter: Add dependency on IPV6 for NF_TABLES_INET

PATCH Applied Paul Gortmaker 3 participants 4 messages Jan 13, 2014 – Jan 14, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netfilter: Add dependency on IPV6 for NF_TABLES_INET

Commit 1d49144c0aaa61be4e3ccbef9cc5c40b0ec5f2fe ("netfilter: nf_tables:
add "inet" table for IPv4/IPv6") allows creation of non-IPV6 enabled .config files that will fail to configure/link as follows:

warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES) net/built-in.o: In function `nft_reject_eval':
nft_reject.c:(.text+0x651e8): undefined reference to `nf_ip6_checksum'
nft_reject.c:(.text+0x65270): undefined reference to `ip6_route_output'
nft_reject.c:(.text+0x656c4): undefined reference to `ip6_dst_hoplimit'
make: *** [vmlinux] Error 1

Since the feature is to allow for a mixed IPV4 and IPV6 table, it seems sensible to make it depend on IPV6.

Cc Patrick McHardy <[email protected]>
Cc Pablo Neira Ayuso <[email protected]>
net/netfilter/Kconfig +1 -1
index afe50c0f526f..c37467562fd0 100644
@@ -429,7 +429,7 @@ config NF_TABLES
 	  To compile it as a module, choose M here.
 
 config NF_TABLES_INET
-	depends on NF_TABLES
+	depends on NF_TABLES && IPV6
 	select NF_TABLES_IPV4
 	select NF_TABLES_IPV6
 	tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support"
Signature · 1 line
1.8.5.2
Acked-by on v1 1/1
#1 lore raw
Quoted 16 lines · Paul Gortmaker

Commit 1d49144c0aaa61be4e3ccbef9cc5c40b0ec5f2fe ("netfilter: nf_tables:
add "inet" table for IPv4/IPv6") allows creation of non-IPV6 enabled .config files that will fail to configure/link as follows:

warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES) net/built-in.o: In function `nft_reject_eval':
nft_reject.c:(.text+0x651e8): undefined reference to nf_ip6_checksum' nft_reject.c:(.text+0x65270): undefined reference to ip6_route_output' nft_reject.c:(.text+0x656c4): undefined reference to `ip6_dst_hoplimit'
make: *** [vmlinux] Error 1

Quoted 2 lines

Since the feature is to allow for a mixed IPV4 and IPV6 table, it seems sensible to make it depend on IPV6.

Quoted 18 lines
Cc Patrick McHardy <[email protected]>
Cc Pablo Neira Ayuso <[email protected]>
net/netfilter/Kconfig +0 -0
index afe50c0f526f..c37467562fd0 100644
@@ -429,7 +429,7 @@ config NF_TABLES
 	  To compile it as a module, choose M here.
 

config NF_TABLES_INET

net/netfilter/Kconfig +1 -1
-	depends on NF_TABLES
+	depends on NF_TABLES && IPV6

select NF_TABLES_IPV4
select NF_TABLES_IPV6
tristate "Netfilter nf_tables mixed IPv4/IPv6 tables support"

maintainer Applied
#2 lore raw
Quoted 17 lines · Patrick McHardy
Quoted 16 lines · Paul Gortmaker

Commit 1d49144c0aaa61be4e3ccbef9cc5c40b0ec5f2fe ("netfilter: nf_tables:
add "inet" table for IPv4/IPv6") allows creation of non-IPV6 enabled .config files that will fail to configure/link as follows:

warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES) net/built-in.o: In function `nft_reject_eval':
nft_reject.c:(.text+0x651e8): undefined reference to nf_ip6_checksum' nft_reject.c:(.text+0x65270): undefined reference to ip6_route_output' nft_reject.c:(.text+0x656c4): undefined reference to `ip6_dst_hoplimit'
make: *** [vmlinux] Error 1

Quoted 4 lines
Quoted 2 lines

Since the feature is to allow for a mixed IPV4 and IPV6 table, it seems sensible to make it depend on IPV6.

Applied, thanks.

@Paul: Please, use netfilter-devel ML instead next time. The netfilter ML is reserved for user questions only. Thanks.

#3 lore raw
Quoted 21 lines · Pablo Neira Ayuso
Quoted 20 lines · Patrick McHardy
Quoted 18 lines · Paul Gortmaker

Commit 1d49144c0aaa61be4e3ccbef9cc5c40b0ec5f2fe ("netfilter: nf_tables:
add "inet" table for IPv4/IPv6") allows creation of non-IPV6 enabled .config files that will fail to configure/link as follows:

warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES)
warning: (NF_TABLES_INET) selects NF_TABLES_IPV6 which has unmet direct dependencies (NET && INET && IPV6 && NETFILTER && NF_TABLES) net/built-in.o: In function `nft_reject_eval':
nft_reject.c:(.text+0x651e8): undefined reference to nf_ip6_checksum' nft_reject.c:(.text+0x65270): undefined reference to ip6_route_output' nft_reject.c:(.text+0x656c4): undefined reference to `ip6_dst_hoplimit'
make: *** [vmlinux] Error 1

Since the feature is to allow for a mixed IPV4 and IPV6 table, it seems sensible to make it depend on IPV6.

Quoted 6 lines
Quoted 1 line

Applied, thanks.

@Paul: Please, use netfilter-devel ML instead next time. The netfilter ML is reserved for user questions only. Thanks.

Sure, I can do that. But it would probably be better if get_maintainer.pl didn't emit that particular address then.