diff options
author | Romain Kuntz <r.kuntz@ipflavors.com> | 2013-01-09 09:02:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-10 17:13:33 -0500 |
commit | 85da53bf1c336bb07ac038fb951403ab0478d2c5 (patch) | |
tree | bf00e0267e05f2c6a8df00201d6aea4e25d394fc /net/ipv6/addrconf.c | |
parent | f26845b43c75d3f32f98d194c1327b5b1e6b3fb0 (diff) |
ipv6: fix the noflags test in addrconf_get_prefix_route
The tests on the flags in addrconf_get_prefix_route() does no make
much sense: the 'noflags' parameter contains the set of flags that
must not match with the route flags, so the test must be done
against 'noflags', and not against 'flags'.
Signed-off-by: Romain Kuntz <r.kuntz@ipflavors.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 408cac4ae00a..29ba4ff186eb 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -1877,7 +1877,7 @@ static struct rt6_info *addrconf_get_prefix_route(const struct in6_addr *pfx, | |||
1877 | continue; | 1877 | continue; |
1878 | if ((rt->rt6i_flags & flags) != flags) | 1878 | if ((rt->rt6i_flags & flags) != flags) |
1879 | continue; | 1879 | continue; |
1880 | if ((noflags != 0) && ((rt->rt6i_flags & flags) != 0)) | 1880 | if ((rt->rt6i_flags & noflags) != 0) |
1881 | continue; | 1881 | continue; |
1882 | dst_hold(&rt->dst); | 1882 | dst_hold(&rt->dst); |
1883 | break; | 1883 | break; |