IPV6: Update outbound state timestamp for each sending.
Subsystems (3)
PATCH 18/23 IPV6: Update outbound state timestamp for each sending.
Mobile IPv6 enabled nodes will want to know traffic status of each binding (e.g. judgement to request binding refresh by correspondent node, or to keep home/care-of nonce alive by mobile node).
The last used timestamp is an important hint about it.
Based on MIPL2 kernel patch.
--- net/ipv6/xfrm6_output.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
net/ipv6/xfrm6_output.c +5 -0
@@ -130,6 +130,11 @@ static int xfrm6_output_one(struct sk_bu x->curlft.bytes += skb->len; x->curlft.packets++; +#ifdef CONFIG_XFRM_ADVANCED +if (!xfrm_id_proto_match (x->id.proto,IPSEC_PROTO_ANY )) + x->curlft.use_time = (unsigned long ) xtime.tv_sec; +#endif +spin_unlock_bh (&x->lock); skb->nh.raw = skb->data;
Signature · 1 line
1.4.1