Thread (4 messages) flat view 4 messages, 3 authors, 2012-10-01

Re: [PATCH v2] ipv6: del unreachable route when an addr is deleted on lo

From: David Miller <davem@davemloft.net>
Date: 2012-10-01 20:49:55

From: Nicolas Dichtel <redacted>
Date: Wed, 26 Sep 2012 12:04:55 +0200
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 <redacted>
---
v2: rt cannot be NULL, so adjust the test after ip6_route_lookup()
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help