]> git.ipfire.org Git - thirdparty/ipset.git/commit
netfilter: ipset: fix linking with CONFIG_IPV6=n
authorPatrick McHardy <kaber@trash.net>
Thu, 3 Feb 2011 09:27:49 +0000 (10:27 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 3 Feb 2011 09:27:49 +0000 (10:27 +0100)
commit43b0532ea90ae4140233f1e293ff663f7e49bec8
tree244bc5cc21c3a87cf4be766a868e7cd51cfca9f1
parenta7586eb0a0eed3554a104ace4fda912c3ab087ab
netfilter: ipset: fix linking with CONFIG_IPV6=n

Add some #ifdefs to unconditionally return false in
ip_set_get_ip6_port() when CONFIG_IPV6=n and convert
to ipv6_skip_exthdr() to avoid pulling in the ip6_tables
module when loading ipset.

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