aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/xfrm6_mode_ro.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-10-08 20:27:19 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:54:56 -0400
commit45b17f48eaf5e5ff4202454985557b3240141caa (patch)
tree00b0b9dc375899b5d1f8ee11f78ef5dcc9b1c2e1 /net/ipv6/xfrm6_mode_ro.c
parentcdf7e668d4327a33e11be04c4cb9bcc604eaaa0f (diff)
[IPSEC]: Move RO-specific output code into xfrm6_mode_ro.c
The lastused update check in xfrm_output can be done just as well in the mode output function which is specific to RO. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/xfrm6_mode_ro.c')
-rw-r--r--net/ipv6/xfrm6_mode_ro.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv6/xfrm6_mode_ro.c b/net/ipv6/xfrm6_mode_ro.c
index 6ad6d7ac6bd7..a15637384b20 100644
--- a/net/ipv6/xfrm6_mode_ro.c
+++ b/net/ipv6/xfrm6_mode_ro.c
@@ -29,6 +29,7 @@
29#include <linux/module.h> 29#include <linux/module.h>
30#include <linux/skbuff.h> 30#include <linux/skbuff.h>
31#include <linux/stringify.h> 31#include <linux/stringify.h>
32#include <linux/time.h>
32#include <net/ipv6.h> 33#include <net/ipv6.h>
33#include <net/xfrm.h> 34#include <net/xfrm.h>
34 35
@@ -57,6 +58,9 @@ static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb)
57 (prevhdr - x->props.header_len) - skb->data); 58 (prevhdr - x->props.header_len) - skb->data);
58 skb_set_transport_header(skb, hdr_len); 59 skb_set_transport_header(skb, hdr_len);
59 memmove(skb->data, iph, hdr_len); 60 memmove(skb->data, iph, hdr_len);
61
62 x->lastused = get_seconds();
63
60 return 0; 64 return 0;
61} 65}
62 66