netfilter: provide udp*_lib_lookup for nf_tproxy
commit6e86000c2c63123e174b7e198735fbb12f0258ea
authorArnd Bergmann <arnd@arndb.de>
Tue, 5 Jun 2018 11:40:34 +0000 (5 13:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jun 2018 14:55:05 +0000 (5 10:55 -0400)
treeda0c9323afbdce5f06e16bdb46095da25a5b6435
parentd52c89f120de849575f6b2e5948038f2be12ce6f
netfilter: provide udp*_lib_lookup for nf_tproxy

It is now possible to enable the libified nf_tproxy modules without
also enabling NETFILTER_XT_TARGET_TPROXY, which throws off the
ifdef logic in the udp core code:

net/ipv6/netfilter/nf_tproxy_ipv6.o: In function `nf_tproxy_get_sock_v6':
nf_tproxy_ipv6.c:(.text+0x1a8): undefined reference to `udp6_lib_lookup'
net/ipv4/netfilter/nf_tproxy_ipv4.o: In function `nf_tproxy_get_sock_v4':
nf_tproxy_ipv4.c:(.text+0x3d0): undefined reference to `udp4_lib_lookup'

We can actually simplify the conditions now to provide the two functions
exactly when they are needed.

Fixes: 45ca4e0cf273 ("netfilter: Libify xt_TPROXY")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Máté Eckl <ecklm94@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp.c
net/ipv6/udp.c