]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Always invalidate or update the route on pmtu events
authorSteffen Klassert <steffen.klassert@secunet.com>
Sun, 7 Oct 2012 22:47:25 +0000 (22:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2012 18:46:34 +0000 (14:46 -0400)
commit4288f9ceea3eb1de39d64609712a309af986f995
tree102698a4ae2ec89cb931f360cc9229474a6f1cbb
parent91433427604d5d7e210222d6133e83f23ed027a0
ipv4: Always invalidate or update the route on pmtu events

Some protocols, like IPsec still cache routes. So we need to invalidate
the old route on pmtu events to avoid the reuse of stale routes.
We also need to update the mtu and expire time of the route if we already
use a nh exception route, otherwise we ignore newly learned pmtu values
after the first expiration.

With this patch we always invalidate or update the route on pmtu events.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/route.c