]> Pileus Git - ~andy/linux/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)
commit724bab476bcac9f7d0b5204cb06e346216d42166
treeac4aa027d85a801ca2e3eb75678124434e1ba30d
parent316ed388802533bcfd3dffb38d2ba29ac5428456
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