aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_mode_beet.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-04-25 18:02:22 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 22:25:27 -0700
commitb0061ce49c83657563b64ffcf1ec137110230d93 (patch)
treebe6788071fdbc53261ee395f596705e1418461d1 /net/ipv4/xfrm4_mode_beet.c
parentaa8223c7bb0b05183e1737881ed21827aa5b9e73 (diff)
downloadkernel_goldelico_gta04-b0061ce49c83657563b64ffcf1ec137110230d93.zip
kernel_goldelico_gta04-b0061ce49c83657563b64ffcf1ec137110230d93.tar.gz
kernel_goldelico_gta04-b0061ce49c83657563b64ffcf1ec137110230d93.tar.bz2
[SK_BUFF]: Introduce ipip_hdr(), remove skb->h.ipiph
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_beet.c')
-rw-r--r--net/ipv4/xfrm4_mode_beet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/xfrm4_mode_beet.c b/net/ipv4/xfrm4_mode_beet.c
index 9e5ba12..32fcfc0 100644
--- a/net/ipv4/xfrm4_mode_beet.c
+++ b/net/ipv4/xfrm4_mode_beet.c
@@ -83,7 +83,7 @@ static int xfrm4_beet_input(struct xfrm_state *x, struct sk_buff *skb)
if (!pskb_may_pull(skb, sizeof(*ph)))
goto out;
- ph = (struct ip_beet_phdr *)(skb->h.ipiph + 1);
+ ph = (struct ip_beet_phdr *)(ipip_hdr(skb) + 1);
phlen = sizeof(*ph) + ph->padlen;
optlen = ph->hdrlen * 8 + (IPV4_BEET_PHMAXLEN - phlen);
@@ -97,9 +97,9 @@ static int xfrm4_beet_input(struct xfrm_state *x, struct sk_buff *skb)
ph_nexthdr = ph->nexthdr;
}
- skb->nh.raw = skb->data + (phlen - sizeof(*iph));
+ skb_set_network_header(skb, phlen - sizeof(*iph));
memmove(skb_network_header(skb), iph, sizeof(*iph));
- skb->h.raw = skb->data + (phlen + optlen);
+ skb_set_transport_header(skb, phlen + optlen);
skb->data = skb->h.raw;
iph = ip_hdr(skb);