aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMasahide NAKAMURA <nakam@linux-ipv6.org>2006-08-23 21:20:16 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 18:06:43 -0400
commit9afaca057980c02771f4657c455cc7592fcd7373 (patch)
tree3ef6e1b304248fad27c8063b7fbffdba966a0671 /include
parent060f02a3bdd4d9ba8aa3c48e9b470672b1f3a585 (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 'include')
-rw-r--r--include/linux/xfrm.h1
-rw-r--r--include/net/xfrm.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h
index b53f799189af..1d8c1f22c12d 100644
--- a/include/linux/xfrm.h
+++ b/include/linux/xfrm.h
@@ -236,6 +236,7 @@ enum xfrm_attr_type_t {
236 XFRMA_ETIMER_THRESH, 236 XFRMA_ETIMER_THRESH,
237 XFRMA_SRCADDR, /* xfrm_address_t */ 237 XFRMA_SRCADDR, /* xfrm_address_t */
238 XFRMA_COADDR, /* xfrm_address_t */ 238 XFRMA_COADDR, /* xfrm_address_t */
239 XFRMA_LASTUSED,
239 __XFRMA_MAX 240 __XFRMA_MAX
240 241
241#define XFRMA_MAX (__XFRMA_MAX - 1) 242#define XFRMA_MAX (__XFRMA_MAX - 1)
diff --git a/include/net/xfrm.h b/include/net/xfrm.h
index 872a2a4022b2..248874ecf8df 100644
--- a/include/net/xfrm.h
+++ b/include/net/xfrm.h
@@ -167,6 +167,9 @@ struct xfrm_state
167 struct xfrm_lifetime_cur curlft; 167 struct xfrm_lifetime_cur curlft;
168 struct timer_list timer; 168 struct timer_list timer;
169 169
170 /* Last used time */
171 u64 lastused;
172
170 /* Reference to data common to all the instances of this 173 /* Reference to data common to all the instances of this
171 * transformer. */ 174 * transformer. */
172 struct xfrm_type *type; 175 struct xfrm_type *type;