diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-13 12:51:52 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:17 -0400 |
commit | 967b05f64e27d04a4c8879addd0e1c52137e2c9e (patch) | |
tree | c2c7ab3f0284903222d6d0864deaedbd4766b9b8 /net/ipv6/xfrm6_mode_ro.c | |
parent | ea2ae17d6443abddc79480dc9f7af8feacabddc4 (diff) |
[SK_BUFF]: Introduce skb_set_transport_header
For the cases where the transport header is being set to a offset from
skb->data.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_mode_ro.c b/net/ipv6/xfrm6_mode_ro.c index d01958d921ac..da48ecf3fe96 100644 --- a/net/ipv6/xfrm6_mode_ro.c +++ b/net/ipv6/xfrm6_mode_ro.c | |||
@@ -54,7 +54,7 @@ static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb) | |||
54 | 54 | ||
55 | hdr_len = x->type->hdr_offset(x, skb, &prevhdr); | 55 | hdr_len = x->type->hdr_offset(x, skb, &prevhdr); |
56 | skb->nh.raw = prevhdr - x->props.header_len; | 56 | skb->nh.raw = prevhdr - x->props.header_len; |
57 | skb->h.raw = skb->data + hdr_len; | 57 | skb_set_transport_header(skb, hdr_len); |
58 | memmove(skb->data, iph, hdr_len); | 58 | memmove(skb->data, iph, hdr_len); |
59 | return 0; | 59 | return 0; |
60 | } | 60 | } |