@@ -75,6 +75,11 @@ struct ipv6_stub {
struct net_device *dev);
int (*ip6_xmit)(const struct sock *sk, struct sk_buff *skb, struct flowi6 *fl6,
__u32 mark, struct ipv6_txoptions *opt, int tclass, u32 priority);
+ struct sock *(*udp6_lib_lookup)(const 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_stub *ipv6_stub __read_mostly;
@@ -1061,6 +1061,7 @@ static const struct ipv6_stub ipv6_stub_impl = {
.ipv6_fragment = ip6_fragment,
.ipv6_dev_find = ipv6_dev_find,
.ip6_xmit = ip6_xmit,
+ .udp6_lib_lookup = __udp6_lib_lookup,
};
static const struct ipv6_bpf_stub ipv6_bpf_stub_impl = {
Want to do a UDP socket lookup from flow dissector so create a stub for udp6_lib_lookup Signed-off-by: Tom Herbert <tom@herbertland.com> --- include/net/ipv6_stubs.h | 5 +++++ net/ipv6/af_inet6.c | 1 + 2 files changed, 6 insertions(+)