summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2012-09-26 04:04:55 +0400
committerDavid S. Miller <davem@davemloft.net>2012-10-02 00:49:23 +0400
commit64c6d08e6490fb18cea09bb03686c149946bd818 (patch)
treeb831092af305441c9639796e9c5e68027bdc345d /net/ipv4
parent515e12401f43f2fe7511d228dfe3e186be8aab6e (diff)
downloadlinux-64c6d08e6490fb18cea09bb03686c149946bd818.tar.xz
ipv6: del unreachable route when an addr is deleted on lo
When an address is added on loopback (ip -6 a a 2002::1/128 dev lo), two routes are added: - one in the local table: local 2002::1 via :: dev lo proto none metric 0 - one the in main table (for the prefix): unreachable 2002::1 dev lo proto kernel metric 256 error -101 When the address is deleted, the route inserted in the main table remains because we use rt6_lookup(), which returns NULL when dst->error is set, which is the case here! Thus, it is better to use ip6_route_lookup() to avoid this kind of filter. Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions