]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Fix neigh lookup keying over loopback/point-to-point devices.
authorDavid S. Miller <davem@davemloft.net>
Fri, 20 Jul 2012 23:00:53 +0000 (16:00 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jul 2012 23:06:10 +0000 (16:06 -0700)
commitbde3d9b3792006572ed9b6caa09cb6d632077ea2
treeb5a9a178fb8af1e83e806a91950904273d9e9927
parent1d7448e0a443353a576061aa52051676a412574d
ipv4: Fix neigh lookup keying over loopback/point-to-point devices.

We were using a special key "0" for all loopback and point-to-point
device neigh lookups under ipv4, but we wouldn't use that special
key for the neigh creation.

So basically we'd make a new neigh at each and every lookup :-)

This special case to use only one neigh for these device types
is of dubious value, so just remove it entirely.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/arp.h