ipv4: Fix flushing of cached routing informations
authorSteffen Klassert <steffen.klassert@secunet.com>
Wed, 17 Oct 2012 21:17:44 +0000 (21:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2012 19:34:30 +0000 (15:34 -0400)
commit13d82bf50dce632355fcccafa4fe44a9b5e706d8
treee26ac35082d33767ad157ababda04bcdf7c6d83f
parent18c22a03a2187bcbda7d3a7fa1061584a6348e7b
ipv4: Fix flushing of cached routing informations

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>
net/ipv4/route.c