]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ipv6: Check expire on DST_NOCACHE route
authorMartin KaFai Lau <kafai@fb.com>
Wed, 11 Nov 2015 19:51:07 +0000 (11:51 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Dec 2015 05:25:35 +0000 (21:25 -0800)
commit8b5054279ee51fd3082a0d3ec9b987548086c318
tree95d2e2954bd2660a61068ea3a2b56e462c321186
parent726dd3c9c8b89e804d2a0211f4fbcf48cecd1847
ipv6: Check expire on DST_NOCACHE route

[ Upstream commit 5973fb1e245086071bf71994c8b54d99526ded03 ]

Since the expires of the DST_NOCACHE rt can be set during
the ip6_rt_update_pmtu(), we also need to consider the expires
value when doing ip6_dst_check().

This patches creates __rt6_check_expired() to only
check the expire value (if one exists) of the current rt.

In rt6_dst_from_check(), it adds __rt6_check_expired() as
one of the condition check.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/route.c