mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[NETNS]: Default arp parameters lookup.
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>
This commit is contained in:
parent
4ab438fcd7
commit
0c65babd6c
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue