]> git.baikalelectronics.ru Git - kernel.git/commit
inetpeer: Add redirect and PMTU discovery cached info.
authorDavid S. Miller <davem@davemloft.net>
Wed, 9 Feb 2011 23:36:47 +0000 (15:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Feb 2011 21:29:30 +0000 (13:29 -0800)
commit879213fc1baa1e1f21e35a9dcdfd5961dc40ebc1
tree654235ceccd1c3f9dfbb7422ebe09b21544325d6
parentf43c553a423c8bee332cfbd76cb37afbf0ebd628
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>
include/net/inetpeer.h
net/ipv4/inetpeer.c