diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-13 17:51:52 +0100 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 07:25:17 +0200 |
commit | 967b05f64e27d04a4c8879addd0e1c52137e2c9e (patch) | |
tree | c2c7ab3f0284903222d6d0864deaedbd4766b9b8 /net/ipv6/esp6.c | |
parent | [SK_BUFF]: Introduce skb_transport_offset() (diff) | |
download | linux-967b05f64e27d04a4c8879addd0e1c52137e2c9e.tar.xz linux-967b05f64e27d04a4c8879addd0e1c52137e2c9e.zip |
[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/esp6.c')
-rw-r--r-- | net/ipv6/esp6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index 35905867ded1..ad522b7b5771 100644 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c @@ -228,8 +228,8 @@ static int esp6_input(struct xfrm_state *x, struct sk_buff *skb) ret = nexthdr[1]; } - skb->h.raw = __skb_pull(skb, sizeof(*esph) + esp->conf.ivlen) - hdr_len; - + __skb_pull(skb, sizeof(*esph) + esp->conf.ivlen); + skb_set_transport_header(skb, -hdr_len); out: return ret; } |