projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d276055
)
ipv4: Fix __ip_dev_find() to use ifa_local instead of ifa_address.
author
David S. Miller
<
[email protected]
>
Thu, 3 Mar 2011 19:24:19 +0000
(11:24 -0800)
committer
David S. Miller
<
[email protected]
>
Thu, 3 Mar 2011 19:24:19 +0000
(11:24 -0800)
Reported-by: Stephen Hemminger <
[email protected]
>
Reported-by: Julian Anastasov <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/devinet.c
patch
|
blob
|
history
diff --git
a/net/ipv4/devinet.c
b/net/ipv4/devinet.c
index 90389281d97a20798ee7f5e2e9296d453017e973..ff53860d1e568edcd36ec8e1b96730851bf3997f 100644
(file)
--- a/
net/ipv4/devinet.c
+++ b/
net/ipv4/devinet.c
@@
-111,7
+111,7
@@
static inline unsigned int inet_addr_hash(struct net *net, __be32 addr)
static void inet_hash_insert(struct net *net, struct in_ifaddr *ifa)
{
- unsigned int hash = inet_addr_hash(net, ifa->ifa_
address
);
+ unsigned int hash = inet_addr_hash(net, ifa->ifa_
local
);
spin_lock(&inet_addr_hash_lock);
hlist_add_head_rcu(&ifa->hash, &inet_addr_lst[hash]);
@@
-146,7
+146,7
@@
struct net_device *__ip_dev_find(struct net *net, __be32 addr, bool devref)
if (!net_eq(dev_net(dev), net))
continue;
- if (ifa->ifa_
address
== addr) {
+ if (ifa->ifa_
local
== addr) {
result = dev;
break;
}