ipv4: Fix flushing of cached routing informations
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 17 Oct 2012 21:17:44 +0000 (21:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:18:52 +0000 (13:18 -0800)
commit400b8b8c0bc217c72caef1b980f218a0e3662a9a
treef00116d0e3a94d2b8d0474f03aeaf1e7b2e4aa62
parentf1d2d8a9f14c93996ebeb28e1da98b4eb025f88b
ipv4: Fix flushing of cached routing informations

[ Upstream commit 13d82bf50dce632355fcccafa4fe44a9b5e706d8 ]

Currently we can not flush cached pmtu/redirect informations via
the ipv4_sysctl_rtcache_flush sysctl. We need to check the rt_genid
of the old route and reset the nh exeption if the old route is
expired when we bind a new route to a nh exeption.

Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/route.c