diff options
author | Andreas Roeseler <andreas.a.roeseler@gmail.com> | 2021-03-29 18:45:43 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-30 13:29:39 -0700 |
commit | 504a40113cc4f329dd75bbf6e4b060603224d814 (patch) | |
tree | f05e2c6dfa70d65c1726b87278a42f1ce0e8e935 /include/net/ipv6_stubs.h | |
parent | 08baf54f01f5b5f06fe242cfc236629c76969cd4 (diff) | |
download | linux-504a40113cc4f329dd75bbf6e4b060603224d814.tar.gz linux-504a40113cc4f329dd75bbf6e4b060603224d814.tar.bz2 linux-504a40113cc4f329dd75bbf6e4b060603224d814.zip |
ipv6: add ipv6_dev_find to stubs
Add ipv6_dev_find to ipv6_stub to allow lookup of net_devices by IPV6
address in net/ipv4/icmp.c.
Signed-off-by: Andreas Roeseler <andreas.a.roeseler@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ipv6_stubs.h')
-rw-r--r-- | include/net/ipv6_stubs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ipv6_stubs.h b/include/net/ipv6_stubs.h index 8fce558b5fea..afbce90c4480 100644 --- a/include/net/ipv6_stubs.h +++ b/include/net/ipv6_stubs.h @@ -66,6 +66,8 @@ struct ipv6_stub { int (*ipv6_fragment)(struct net *net, struct sock *sk, struct sk_buff *skb, int (*output)(struct net *, struct sock *, struct sk_buff *)); + struct net_device *(*ipv6_dev_find)(struct net *net, const struct in6_addr *addr, + struct net_device *dev); }; extern const struct ipv6_stub *ipv6_stub __read_mostly; |