Skip to content

Commit

Permalink
[NETNS]: Default arp parameters lookup.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Feb 29, 2008
1 parent 4ab438f commit 0c65bab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0c65bab

Please sign in to comment.