diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-15 02:06:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:13 -0500 |
commit | 39a6d06300128d32f361f4f790beba0ca83730eb (patch) | |
tree | 7f47f52708e17eed923cfbbc56e348ab4c573cb9 /net/ipv4/arp.c | |
parent | 9bd85e32644d4d3744117b0a196ad4382f8acf35 (diff) |
[NETNS]: Process inet_confirm_addr in the correct namespace.
inet_confirm_addr can be called with NULL in_dev from arp_ignore iff
scope is RT_SCOPE_LINK.
Lets always pass the device and check for RT_SCOPE_LINK scope inside
inet_confirm_addr. This let us take network namespace from in_device a
need for an additional argument.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r-- | net/ipv4/arp.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 6f0827b2b154..b2c19cb12063 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -402,7 +402,6 @@ static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip) | |||
402 | case 3: /* Do not reply for scope host addresses */ | 402 | case 3: /* Do not reply for scope host addresses */ |
403 | sip = 0; | 403 | sip = 0; |
404 | scope = RT_SCOPE_LINK; | 404 | scope = RT_SCOPE_LINK; |
405 | in_dev = NULL; | ||
406 | break; | 405 | break; |
407 | case 4: /* Reserved */ | 406 | case 4: /* Reserved */ |
408 | case 5: | 407 | case 5: |