Skip to contentSkip to conversation

IPV6: Update outbound state timestamp for each sending.

PATCH In review Masahide NAKAMURA 1 participant 1 message Jul 29, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index 8792b5c..9ff4230 100644
@@ -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