aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/inetpeer.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-02-09 18:36:47 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-10 16:29:30 -0500
commitddd4aa424b866a08ceba7ddf38e61542c91b93a0 (patch)
tree654235ceccd1c3f9dfbb7422ebe09b21544325d6 /net/ipv4/inetpeer.c
parent7a71ed899e77cc822abb863e24a422dcf7e9fa33 (diff)
inetpeer: Add redirect and PMTU discovery cached info.
Validity of the cached PMTU information is indicated by it's expiration value being non-zero, just as per dst->expires. The scheme we will use is that we will remember the pre-ICMP value held in the metrics or route entry, and then at expiration time we will restore that value. In this way PMTU expiration does not kill off the cached route as is done currently. Redirect information is permanent, or at least until another redirect is received. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/inetpeer.c')
-rw-r--r--net/ipv4/inetpeer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/inetpeer.c b/net/ipv4/inetpeer.c
index 4346c38763ae..48f8d4592ccd 100644
--- a/net/ipv4/inetpeer.c
+++ b/net/ipv4/inetpeer.c
@@ -515,6 +515,8 @@ struct inet_peer *inet_getpeer(struct inetpeer_addr *daddr, int create)
515 p->metrics[RTAX_LOCK-1] = INETPEER_METRICS_NEW; 515 p->metrics[RTAX_LOCK-1] = INETPEER_METRICS_NEW;
516 p->rate_tokens = 0; 516 p->rate_tokens = 0;
517 p->rate_last = 0; 517 p->rate_last = 0;
518 p->pmtu_expires = 0;
519 memset(&p->redirect_learned, 0, sizeof(p->redirect_learned));
518 INIT_LIST_HEAD(&p->unused); 520 INIT_LIST_HEAD(&p->unused);
519 521
520 522