[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20111011111122.GF1830@secunet.com>
Date: Tue, 11 Oct 2011 13:11:22 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: [PATCH 3/4] ipv4: Fix inetpeer expiration handling
We leak a trigger to check if the learned pmtu information has
expired, so the learned pmtu informations never expire. This patch
add such a trigger to ipv4_dst_check().
Signed-off-by: Steffen Klassert <steffen.klassert@...unet.com>
---
net/ipv4/route.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 9a6623e..cda370c 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1660,6 +1660,10 @@ static struct dst_entry *ipv4_dst_check(struct dst_entry *dst, u32 cookie)
if (rt_is_expired(rt))
return NULL;
+
+ if (rt->peer && peer_pmtu_expired(rt->peer))
+ dst_metric_set(dst, RTAX_MTU, rt->peer->pmtu_orig);
+
if (rt->rt_peer_genid != rt_peer_genid()) {
struct inet_peer *peer;
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists