diff options
Diffstat (limited to 'net/ipv6/ipcomp6.c')
-rw-r--r-- | net/ipv6/ipcomp6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ipcomp6.c b/net/ipv6/ipcomp6.c index 5724ba9f75de..3e71d1691b7d 100644 --- a/net/ipv6/ipcomp6.c +++ b/net/ipv6/ipcomp6.c | |||
@@ -166,10 +166,10 @@ static int ipcomp6_output(struct xfrm_state *x, struct sk_buff *skb) | |||
166 | top_iph->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); | 166 | top_iph->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); |
167 | 167 | ||
168 | ipch = (struct ipv6_comp_hdr *)start; | 168 | ipch = (struct ipv6_comp_hdr *)start; |
169 | ipch->nexthdr = *skb->nh.raw; | 169 | ipch->nexthdr = *skb_network_header(skb); |
170 | ipch->flags = 0; | 170 | ipch->flags = 0; |
171 | ipch->cpi = htons((u16 )ntohl(x->id.spi)); | 171 | ipch->cpi = htons((u16 )ntohl(x->id.spi)); |
172 | *skb->nh.raw = IPPROTO_COMP; | 172 | *skb_network_header(skb) = IPPROTO_COMP; |
173 | 173 | ||
174 | out_ok: | 174 | out_ok: |
175 | return 0; | 175 | return 0; |