[IPV6] NDISC: Take source address into account for redirects.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: Ville Nuorvala <vnuorval@tcs.hut.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a57d27fc71
commit
5e032e32ec
@@ -1346,7 +1346,8 @@ static void ndisc_redirect_rcv(struct sk_buff *skb)
|
||||
|
||||
neigh = __neigh_lookup(&nd_tbl, target, skb->dev, 1);
|
||||
if (neigh) {
|
||||
rt6_redirect(dest, &skb->nh.ipv6h->saddr, neigh, lladdr,
|
||||
rt6_redirect(dest, &skb->nh.ipv6h->daddr,
|
||||
&skb->nh.ipv6h->saddr, neigh, lladdr,
|
||||
on_link);
|
||||
neigh_release(neigh);
|
||||
}
|
||||
|
Reference in New Issue
Block a user