]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Don't report stale pmtu values to userspace
authorSteffen Klassert <steffen.klassert@secunet.com>
Mon, 8 Oct 2012 00:56:54 +0000 (00:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2012 18:46:35 +0000 (14:46 -0400)
commit99e203f482f73caf6fcb125d9d2230eaffd10d6c
tree354084bb26d1ce12bb552ced3cdd653fc63989db
parent61e0e8ba07f67e35401d0a4aaaaad5fba486cb22
ipv4: Don't report stale pmtu values to userspace

We report cached pmtu values even if they are already expired.
Change this to not report these values after they are expired
and fix a race in the expire time calculation, as suggested by
Eric Dumazet.

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