projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipv4: Make neigh lookup keys for loopback/point-to-point devices be INADDR_ANY
[linux-2.6-microblaze.git]
/
include
/
net
/
arp.h
diff --git
a/include/net/arp.h
b/include/net/arp.h
index
dc8cd47
..
977aabf
100644
(file)
--- a/
include/net/arp.h
+++ b/
include/net/arp.h
@@
-20,6
+20,9
@@
static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32
static inline struct neighbour *__ipv4_neigh_lookup_noref(struct net_device *dev, u32 key)
{
+ if (dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT))
+ key = INADDR_ANY;
+
return ___neigh_lookup_noref(&arp_tbl, neigh_key_eq32, arp_hashfn, &key, dev);
}