Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34738
b: refs/heads/master
c: 5f3e6e9
h: refs/heads/master
v: v3
  • Loading branch information
Ville Nuorvala authored and David S. Miller committed Sep 22, 2006
1 parent b75ed38 commit e08e6fb
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 74553b09dcd9194cbda737016f0b89f245145670
refs/heads/master: 5f3e6e9e19f50a6910aec2dbd479187aabba04b7
9 changes: 9 additions & 0 deletions trunk/net/ipv6/ndisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,15 @@ static void ndisc_recv_na(struct sk_buff *skb)
if (neigh->nud_state & NUD_FAILED)
goto out;

/*
* Don't update the neighbor cache entry on a proxy NA from
* ourselves because either the proxied node is off link or it
* has already sent a NA to us.
*/
if (lladdr && !memcmp(lladdr, dev->dev_addr, dev->addr_len) &&
pneigh_lookup(&nd_tbl, &msg->target, dev, 0))
goto out;

neigh_update(neigh, lladdr,
msg->icmph.icmp6_solicited ? NUD_REACHABLE : NUD_STALE,
NEIGH_UPDATE_F_WEAK_OVERRIDE|
Expand Down

0 comments on commit e08e6fb

Please sign in to comment.