diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-16 01:42:27 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 07:26:03 +0200 |
commit | ddc7b8e32b22fe8b45d306b7d99472d4b560add6 (patch) | |
tree | b332f3e1385230d666af36fd52c45f8b7ad1a18f /net/ipv6/xfrm6_mode_transport.c | |
parent | [KBUILD]: Unifdef headers changed by the skb layer header refactorings (diff) | |
download | linux-ddc7b8e32b22fe8b45d306b7d99472d4b560add6.tar.xz linux-ddc7b8e32b22fe8b45d306b7d99472d4b560add6.zip |
[SK_BUFF]: Some more layer header conversions
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_transport.c')
-rw-r--r-- | net/ipv6/xfrm6_mode_transport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv6/xfrm6_mode_transport.c b/net/ipv6/xfrm6_mode_transport.c index d526f4e9c65e..eb1864b5aae7 100644 --- a/net/ipv6/xfrm6_mode_transport.c +++ b/net/ipv6/xfrm6_mode_transport.c @@ -35,7 +35,8 @@ static int xfrm6_transport_output(struct xfrm_state *x, struct sk_buff *skb) iph = ipv6_hdr(skb); hdr_len = x->type->hdr_offset(x, skb, &prevhdr); - skb->nh.raw = prevhdr - x->props.header_len; + skb_set_network_header(skb, + (prevhdr - x->props.header_len) - skb->data); skb_set_transport_header(skb, hdr_len); memmove(skb->data, iph, hdr_len); return 0; |