summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorAndreas Hofmeister <andi@collax.com>2011-10-26 03:24:29 +0000
committerDavid S. Miller <davem@davemloft.net>2011-10-30 04:12:36 -0400
commit14ef37b6d00eb5d06704e45989ba4c21e7be7673 (patch)
tree800422d2aa85e190bc6e07e305574d71bf25db24 /net/core
parente6d265e8504ab4a3368b8645d318b344ee88b280 (diff)
downloadblackbird-op-linux-14ef37b6d00eb5d06704e45989ba4c21e7be7673.tar.gz
blackbird-op-linux-14ef37b6d00eb5d06704e45989ba4c21e7be7673.zip
ipv6: fix route lookup in addrconf_prefix_rcv()
The route lookup to find a previously auto-configured route for a prefixes used to use rt6_lookup(), with the prefix from the RA used as an address. However, that kind of lookup ignores routing tables, the prefix length and route flags, so when there were other matching routes, even in different tables and/or with a different prefix length, the wrong route would be manipulated. Now, a new function "addrconf_get_prefix_route()" is used for the route lookup, which searches in RT6_TABLE_PREFIX and takes the prefix-length and route flags into account. Signed-off-by: Andreas Hofmeister <andi@collax.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud