]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ipset: fix linking with CONFIG_IPV6=n
authorPatrick McHardy <kaber@trash.net>
Wed, 2 Feb 2011 22:50:01 +0000 (23:50 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 2 Feb 2011 22:50:01 +0000 (23:50 +0100)
commitb12bc03c728892ccbcf51b1a9bdab1fc30ea5819
treeac4aa027d85a801ca2e3eb75678124434e1ba30d
parent7d1537876069e63cb38c411be32f48be380e0760
netfilter: ipset: fix linking with CONFIG_IPV6=n

Add a dummy ip_set_get_ip6_port function that unconditionally
returns false for CONFIG_IPV6=n and convert the real function
to ipv6_skip_exthdr() to avoid pulling in the ip6_tables module
when loading ipset.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/ipset/ip_set_getport.h
net/netfilter/ipset/ip_set_getport.c