aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_mode_transport.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-10 17:59:16 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:24:55 -0400
commit7f5c0cb05f158ee91414e1f99d3fe18349a80371 (patch)
tree0578eb3f70af3535bb1dc786162d59c8f66feeb7 /net/ipv4/xfrm4_mode_transport.c
parent1ced98e81d1c2f1ce965ecf8d0032e02ffa07bf0 (diff)
[SK_BUFF] xfrm4: use skb_reset_network_header
Setting it to skb->h.raw, which is valid, in the (to become) old pointer based world order and in the new world of offset based layer headers. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_mode_transport.c')
-rw-r--r--net/ipv4/xfrm4_mode_transport.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/xfrm4_mode_transport.c b/net/ipv4/xfrm4_mode_transport.c
index 290c0f2e7c29..a820dde2c862 100644
--- a/net/ipv4/xfrm4_mode_transport.c
+++ b/net/ipv4/xfrm4_mode_transport.c
@@ -50,8 +50,10 @@ static int xfrm4_transport_input(struct xfrm_state *x, struct sk_buff *skb)
50{ 50{
51 int ihl = skb->data - skb->h.raw; 51 int ihl = skb->data - skb->h.raw;
52 52
53 if (skb->h.raw != skb->nh.raw) 53 if (skb->h.raw != skb->nh.raw) {
54 skb->nh.raw = memmove(skb->h.raw, skb->nh.raw, ihl); 54 memmove(skb->h.raw, skb->nh.raw, ihl);
55 skb->nh.raw = skb->h.raw;
56 }
55 skb->nh.iph->tot_len = htons(skb->len + ihl); 57 skb->nh.iph->tot_len = htons(skb->len + ihl);
56 skb->h.raw = skb->data; 58 skb->h.raw = skb->data;
57 return 0; 59 return 0;