diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/xfrm6_mode_ro.c | 4 | ||||
-rw-r--r-- | net/xfrm/xfrm_output.c | 4 |
2 files changed, 4 insertions, 4 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 | ||
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index 40d75eccddda..8c852119d190 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/netdevice.h> | 14 | #include <linux/netdevice.h> |
15 | #include <linux/skbuff.h> | 15 | #include <linux/skbuff.h> |
16 | #include <linux/spinlock.h> | 16 | #include <linux/spinlock.h> |
17 | #include <linux/time.h> | ||
18 | #include <net/dst.h> | 17 | #include <net/dst.h> |
19 | #include <net/xfrm.h> | 18 | #include <net/xfrm.h> |
20 | 19 | ||
@@ -75,9 +74,6 @@ int xfrm_output(struct sk_buff *skb) | |||
75 | x->curlft.bytes += skb->len; | 74 | x->curlft.bytes += skb->len; |
76 | x->curlft.packets++; | 75 | x->curlft.packets++; |
77 | 76 | ||
78 | if (x->props.mode == XFRM_MODE_ROUTEOPTIMIZATION) | ||
79 | x->lastused = get_seconds(); | ||
80 | |||
81 | spin_unlock_bh(&x->lock); | 77 | spin_unlock_bh(&x->lock); |
82 | 78 | ||
83 | skb_reset_network_header(skb); | 79 | skb_reset_network_header(skb); |