[NETNS]: Default arp parameters lookup.
authorDenis V. Lunev <den@openvz.org>
Fri, 29 Feb 2008 04:48:25 +0000 (20:48 -0800)
committerDavid 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

index be8b264b29bfa1c15f497299355d2711f41675af..31b6567f0b6a194538cdfd5c939066f6a847154f 100644 (file)
@@ -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;
        }