diff options
author | Masahide NAKAMURA <nakam@linux-ipv6.org> | 2006-08-23 21:20:16 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 18:06:43 -0400 |
commit | 9afaca057980c02771f4657c455cc7592fcd7373 (patch) | |
tree | 3ef6e1b304248fad27c8063b7fbffdba966a0671 /net/xfrm | |
parent | 060f02a3bdd4d9ba8aa3c48e9b470672b1f3a585 (diff) |
[XFRM] IPV6: Update outbound state timestamp for each sending.
With this patch transformation state is updated last used time
for each sending. Xtime is used for it like other state lifetime
expiration.
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.
This patch was also written by: Henrik Petander <petander@tcs.hut.fi>
Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm')
-rw-r--r-- | net/xfrm/xfrm_user.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 939808de9e20..f643063a1cbd 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c | |||
@@ -595,6 +595,9 @@ static int dump_one_state(struct xfrm_state *x, int count, void *ptr) | |||
595 | if (x->coaddr) | 595 | if (x->coaddr) |
596 | RTA_PUT(skb, XFRMA_COADDR, sizeof(*x->coaddr), x->coaddr); | 596 | RTA_PUT(skb, XFRMA_COADDR, sizeof(*x->coaddr), x->coaddr); |
597 | 597 | ||
598 | if (x->lastused) | ||
599 | RTA_PUT(skb, XFRMA_LASTUSED, sizeof(x->lastused), &x->lastused); | ||
600 | |||
598 | nlh->nlmsg_len = skb->tail - b; | 601 | nlh->nlmsg_len = skb->tail - b; |
599 | out: | 602 | out: |
600 | sp->this_idx++; | 603 | sp->this_idx++; |