aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/xfrm4_mode_beet.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-04-25 21:02:22 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:25:27 -0400
commitb0061ce49c83657563b64ffcf1ec137110230d93 (patch)
treebe6788071fdbc53261ee395f596705e1418461d1 /net/ipv4/xfrm4_mode_beet.c
parentaa8223c7bb0b05183e1737881ed21827aa5b9e73 (diff)
[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 9e5ba12c6c75..32fcfc0b5c8c 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)
83 83
84 if (!pskb_may_pull(skb, sizeof(*ph))) 84 if (!pskb_may_pull(skb, sizeof(*ph)))
85 goto out; 85 goto out;
86 ph = (struct ip_beet_phdr *)(skb->h.ipiph + 1); 86 ph = (struct ip_beet_phdr *)(ipip_hdr(skb) + 1);
87 87
88 phlen = sizeof(*ph) + ph->padlen; 88 phlen = sizeof(*ph) + ph->padlen;
89 optlen = ph->hdrlen * 8 + (IPV4_BEET_PHMAXLEN - phlen); 89 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)
97 ph_nexthdr = ph->nexthdr; 97 ph_nexthdr = ph->nexthdr;
98 } 98 }
99 99
100 skb->nh.raw = skb->data + (phlen - sizeof(*iph)); 100 skb_set_network_header(skb, phlen - sizeof(*iph));
101 memmove(skb_network_header(skb), iph, sizeof(*iph)); 101 memmove(skb_network_header(skb), iph, sizeof(*iph));
102 skb->h.raw = skb->data + (phlen + optlen); 102 skb_set_transport_header(skb, phlen + optlen);
103 skb->data = skb->h.raw; 103 skb->data = skb->h.raw;
104 104
105 iph = ip_hdr(skb); 105 iph = ip_hdr(skb);