• Florian Westphal's avatar
    ipv6: remove dependency of nf_defrag_ipv6 on ipv6 module · 5d827bfe
    Florian Westphal authored
    [ Upstream commit 70b095c84326640eeacfd69a411db8fc36e8ab1a ]
    
    IPV6=m
    DEFRAG_IPV6=m
    CONNTRACK=y yields:
    
    net/netfilter/nf_conntrack_proto.o: In function `nf_ct_netns_do_get':
    net/netfilter/nf_conntrack_proto.c:802: undefined reference to `nf_defrag_ipv6_enable'
    net/netfilter/nf_conntrack_proto.o:(.rodata+0x640): undefined reference to `nf_conntrack_l4proto_icmpv6'
    
    Setting DEFRAG_IPV6=y causes undefined references to ip6_rhash_params
    ip6_frag_init and ip6_expire_frag_queue so it would be needed to force
    IPV6=y too.
    
    This patch gets rid of the 'followup linker error' by removing
    the dependency of ipv6.ko symbols from netfilter ipv6 defrag.
    
    Shared code is placed into a header, then used from both.
    Signed-off-by: 's avatarFlorian Westphal <fw@strlen.de>
    Signed-off-by: 's avatarPablo Neira Ayuso <pablo@netfilter.org>
    Signed-off-by: 's avatarSasha Levin <sashal@kernel.org>
    5d827bfe
Name
Last commit
Last update
..
6lowpan Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
core.c Loading commit data...
core.h Loading commit data...
header_ops.c Loading commit data...
ieee802154.h Loading commit data...
netlink.c Loading commit data...
nl-mac.c Loading commit data...
nl-phy.c Loading commit data...
nl802154.c Loading commit data...
nl802154.h Loading commit data...
nl_policy.c Loading commit data...
rdev-ops.h Loading commit data...
socket.c Loading commit data...
sysfs.c Loading commit data...
sysfs.h Loading commit data...
trace.c Loading commit data...
trace.h Loading commit data...