Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 66950
b: refs/heads/master
c: 45b17f4
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Oct 10, 2007
1 parent 316f696 commit d54479b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdf7e668d4327a33e11be04c4cb9bcc604eaaa0f
refs/heads/master: 45b17f48eaf5e5ff4202454985557b3240141caa
4 changes: 4 additions & 0 deletions trunk/net/ipv6/xfrm6_mode_ro.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/stringify.h>
#include <linux/time.h>
#include <net/ipv6.h>
#include <net/xfrm.h>

Expand Down Expand Up @@ -57,6 +58,9 @@ static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb)
(prevhdr - x->props.header_len) - skb->data);
skb_set_transport_header(skb, hdr_len);
memmove(skb->data, iph, hdr_len);

x->lastused = get_seconds();

return 0;
}

Expand Down
4 changes: 0 additions & 4 deletions trunk/net/xfrm/xfrm_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/time.h>
#include <net/dst.h>
#include <net/xfrm.h>

Expand Down Expand Up @@ -75,9 +74,6 @@ int xfrm_output(struct sk_buff *skb)
x->curlft.bytes += skb->len;
x->curlft.packets++;

if (x->props.mode == XFRM_MODE_ROUTEOPTIMIZATION)
x->lastused = get_seconds();

spin_unlock_bh(&x->lock);

skb_reset_network_header(skb);
Expand Down

0 comments on commit d54479b

Please sign in to comment.