ipv6: fix the noflags test in addrconf_get_prefix_route
authorRomain Kuntz <r.kuntz@ipflavors.com>
Wed, 9 Jan 2013 14:02:26 +0000 (15:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jan 2013 22:13:33 +0000 (14:13 -0800)
commit85da53bf1c336bb07ac038fb951403ab0478d2c5
treebf00e0267e05f2c6a8df00201d6aea4e25d394fc
parentf26845b43c75d3f32f98d194c1327b5b1e6b3fb0
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>
net/ipv6/addrconf.c