[XFRM] IPV6: Update outbound state timestamp for each sending.
[linux-2.6.git] / net / ipv6 / xfrm6_output.c
index b4628fb..db58104 100644 (file)
@@ -75,6 +75,8 @@ static int xfrm6_output_one(struct sk_buff *skb)
 
                x->curlft.bytes += skb->len;
                x->curlft.packets++;
+               if (x->props.mode == XFRM_MODE_ROUTEOPTIMIZATION)
+                       x->lastused = (u64)xtime.tv_sec;
 
                spin_unlock_bh(&x->lock);