Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135050
b: refs/heads/master
c: 0c5c2d3
h: refs/heads/master
v: v3
  • Loading branch information
Eric Biederman authored and David S. Miller committed Mar 4, 2009
1 parent c4d43ee commit 83a70dc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc1f9ea51de726b3b8003539788d918814c9deff
refs/heads/master: 0c5c2d3089068d4aa378f7a40d2b5ad9d4f52ce8
1 change: 1 addition & 0 deletions trunk/include/linux/neighbour.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ enum
* Neighbor Cache Entry Flags
*/

#define NTF_USE 0x01
#define NTF_PROXY 0x08 /* == ATF_PUBL */
#define NTF_ROUTER 0x80

Expand Down
6 changes: 5 additions & 1 deletion trunk/net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,11 @@ static int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
flags &= ~NEIGH_UPDATE_F_OVERRIDE;
}

err = neigh_update(neigh, lladdr, ndm->ndm_state, flags);
if (ndm->ndm_flags & NTF_USE) {
neigh_event_send(neigh, NULL);
err = 0;
} else
err = neigh_update(neigh, lladdr, ndm->ndm_state, flags);
neigh_release(neigh);
goto out_dev_put;
}
Expand Down

0 comments on commit 83a70dc

Please sign in to comment.