diff options
author | Joe Stringer <joe@wand.net.nz> | 2018-10-15 20:27:45 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-16 02:08:39 +0300 |
commit | 8a615c6b0352a9ec56151b6c95d68e0a2eef5cf0 (patch) | |
tree | 5e4183735b9873f4f54c5556bf748d9775bd6d01 /include/net/addrconf.h | |
parent | d04fb13c9fcdad850c0fcaeb155863de3d8169a0 (diff) | |
download | linux-8a615c6b0352a9ec56151b6c95d68e0a2eef5cf0.tar.xz |
bpf: Allow sk_lookup with IPv6 module
This is a more complete fix than d71019b54bff ("net: core: Fix build
with CONFIG_IPV6=m"), so that IPv6 sockets may be looked up if the IPv6
module is loaded (not just if it's compiled in).
Signed-off-by: Joe Stringer <joe@wand.net.nz>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/net/addrconf.h')
-rw-r--r-- | include/net/addrconf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 6def0351bcc3..14b789a123e7 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h @@ -265,6 +265,11 @@ extern const struct ipv6_stub *ipv6_stub __read_mostly; struct ipv6_bpf_stub { int (*inet6_bind)(struct sock *sk, struct sockaddr *uaddr, int addr_len, bool force_bind_address_no_port, bool with_lock); + struct sock *(*udp6_lib_lookup)(struct net *net, + const struct in6_addr *saddr, __be16 sport, + const struct in6_addr *daddr, __be16 dport, + int dif, int sdif, struct udp_table *tbl, + struct sk_buff *skb); }; extern const struct ipv6_bpf_stub *ipv6_bpf_stub __read_mostly; |