projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ab438f
)
[NETNS]: Default arp parameters lookup.
author
Denis V. Lunev
<den@openvz.org>
Fri, 29 Feb 2008 04:48:25 +0000
(20:48 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 29 Feb 2008 04:48:25 +0000
(20:48 -0800)
Default ARP parameters should be findable regardless of the context.
Required to make inetdev_event working.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/neighbour.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/neighbour.c
b/net/core/neighbour.c
index be8b264b29bfa1c15f497299355d2711f41675af..31b6567f0b6a194538cdfd5c939066f6a847154f 100644
(file)
--- a/
net/core/neighbour.c
+++ b/
net/core/neighbour.c
@@
-1284,9
+1284,7
@@
static inline struct neigh_parms *lookup_neigh_params(struct neigh_table *tbl,
struct neigh_parms *p;
for (p = &tbl->parms; p; p = p->next) {
- if (p->net != net)
- continue;
- if ((p->dev && p->dev->ifindex == ifindex) ||
+ if ((p->dev && p->dev->ifindex == ifindex && p->net == net) ||
(!p->dev && !ifindex))
return p;
}