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(-)

diff --git a/net/ipv6/xfrm6_output.c b/net/ipv6/xfrm6_output.c
index 8792b5c..9ff4230 100644
--- a/net/ipv6/xfrm6_output.c
+++ b/net/ipv6/xfrm6_output.c
@@ -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;
-- 
1.4.1

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to