Commit 54c1a859 authored by YOSHIFUJI Hideaki / 吉藤英明's avatar YOSHIFUJI Hideaki / 吉藤英明 Committed by David S. Miller

ipv6: Don't drop cache route entry unless timer actually expired.

This is ipv6 variant of the commit 5e016cbf.. ("ipv4: Don't drop
redirected route cache entry unless PTMU actually expired")
by Guenter Roeck <[email protected]>.

Remove cache route entry in ipv6_negative_advice() only if
the timer is expired.
Signed-off-by: default avatarYOSHIFUJI Hideaki <[email protected]>
Signed-off-by: default avatarDavid S. Miller <[email protected]>
parent 7855f761
......@@ -890,12 +890,17 @@ static struct dst_entry *ip6_negative_advice(struct dst_entry *dst)
struct rt6_info *rt = (struct rt6_info *) dst;
if (rt) {
if (rt->rt6i_flags & RTF_CACHE)
if (rt->rt6i_flags & RTF_CACHE) {
if (rt6_check_expired(rt)) {
dst = NULL;
} else {
dst = NULL;
return NULL;
return dst;
static void ip6_link_failure(struct sk_buff *skb)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment