diff options
author | Jiri Benc <jbenc@redhat.com> | 2015-08-20 13:56:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-21 00:42:37 +0200 |
commit | ab450605b35caa768ca33e86db9403229bf42be4 (patch) | |
tree | 3f85c27d4223de9d6ea283709b43cd3bcf39f7c0 /include/net/ndisc.h | |
parent | ipv6: drop metadata dst in ip6_route_input (diff) | |
download | linux-ab450605b35caa768ca33e86db9403229bf42be4.tar.xz linux-ab450605b35caa768ca33e86db9403229bf42be4.zip |
ipv6: ndisc: inherit metadata dst when creating ndisc requests
If output device wants to see the dst, inherit the dst of the original skb
in the ndisc request.
This is an IPv6 counterpart of commit 0accfc268f4d ("arp: Inherit metadata
dst when creating ARP requests").
Signed-off-by: Jiri Benc <jbenc@redhat.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ndisc.h')
-rw-r--r-- | include/net/ndisc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/ndisc.h b/include/net/ndisc.h index b3a7751251b4..aba5695fadb0 100644 --- a/include/net/ndisc.h +++ b/include/net/ndisc.h @@ -182,7 +182,8 @@ int ndisc_rcv(struct sk_buff *skb); void ndisc_send_ns(struct net_device *dev, struct neighbour *neigh, const struct in6_addr *solicit, - const struct in6_addr *daddr, const struct in6_addr *saddr); + const struct in6_addr *daddr, const struct in6_addr *saddr, + struct sk_buff *oskb); void ndisc_send_rs(struct net_device *dev, const struct in6_addr *saddr, const struct in6_addr *daddr); |