Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78803
b: refs/heads/master
c: 39a6d06
h: refs/heads/master
i:
  78801: ef8af44
  78799: bf9f647
v: v3
  • Loading branch information
Denis V. Lunev authored and David S. Miller committed Jan 28, 2008
1 parent 4084ef3 commit 128f7e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9bd85e32644d4d3744117b0a196ad4382f8acf35
refs/heads/master: 39a6d06300128d32f361f4f790beba0ca83730eb
1 change: 0 additions & 1 deletion trunk/net/ipv4/arp.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip)
case 3: /* Do not reply for scope host addresses */
sip = 0;
scope = RT_SCOPE_LINK;
in_dev = NULL;
break;
case 4: /* Reserved */
case 5:
Expand Down
6 changes: 4 additions & 2 deletions trunk/net/ipv4/devinet.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,13 +978,15 @@ __be32 inet_confirm_addr(struct in_device *in_dev,
{
__be32 addr = 0;
struct net_device *dev;
struct net *net;

if (in_dev != NULL)
if (scope != RT_SCOPE_LINK)
return confirm_addr_indev(in_dev, dst, local, scope);

net = in_dev->dev->nd_net;
read_lock(&dev_base_lock);
rcu_read_lock();
for_each_netdev(&init_net, dev) {
for_each_netdev(net, dev) {
if ((in_dev = __in_dev_get_rcu(dev))) {
addr = confirm_addr_indev(in_dev, dst, local, scope);
if (addr)
Expand Down

0 comments on commit 128f7e0

Please sign in to comment.