Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 46013
b: refs/heads/master
c: 2955652
h: refs/heads/master
i:
  46011: 81bc313
v: v3
  • Loading branch information
Li Yewang authored and David S. Miller committed Jan 30, 2007
1 parent 1da4175 commit 1d87e79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fa03ef38e1516c1f35f6a189100186dded0f8f8c
refs/heads/master: 29556526b970c2e7d4ca808b6082c33981adfdff
7 changes: 7 additions & 0 deletions trunk/net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1413,6 +1413,13 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
return;
}

if (!ipv6_addr_equal(&skb->nh.ipv6h->daddr, target) &&
!(ipv6_addr_type(target) & IPV6_ADDR_LINKLOCAL)) {
ND_PRINTK2(KERN_WARNING
"ICMPv6 Redirect: target address is not link-local.\n");
return;
}

ndisc_flow_init(&fl, NDISC_REDIRECT, &saddr_buf, &skb->nh.ipv6h->saddr,
dev->ifindex);

Expand Down

0 comments on commit 1d87e79

Please sign in to comment.