diff options
Diffstat (limited to 'net/ipv6/sit.c')
-rw-r--r-- | net/ipv6/sit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c index e33ac3c3a9ca..18ec86f177d9 100644 --- a/net/ipv6/sit.c +++ b/net/ipv6/sit.c | |||
@@ -366,7 +366,7 @@ out: | |||
366 | static inline void ipip6_ecn_decapsulate(struct iphdr *iph, struct sk_buff *skb) | 366 | static inline void ipip6_ecn_decapsulate(struct iphdr *iph, struct sk_buff *skb) |
367 | { | 367 | { |
368 | if (INET_ECN_is_ce(iph->tos)) | 368 | if (INET_ECN_is_ce(iph->tos)) |
369 | IP6_ECN_set_ce(skb->nh.ipv6h); | 369 | IP6_ECN_set_ce(ipv6_hdr(skb)); |
370 | } | 370 | } |
371 | 371 | ||
372 | static int ipip6_rcv(struct sk_buff *skb) | 372 | static int ipip6_rcv(struct sk_buff *skb) |
@@ -430,7 +430,7 @@ static int ipip6_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) | |||
430 | struct ip_tunnel *tunnel = netdev_priv(dev); | 430 | struct ip_tunnel *tunnel = netdev_priv(dev); |
431 | struct net_device_stats *stats = &tunnel->stat; | 431 | struct net_device_stats *stats = &tunnel->stat; |
432 | struct iphdr *tiph = &tunnel->parms.iph; | 432 | struct iphdr *tiph = &tunnel->parms.iph; |
433 | struct ipv6hdr *iph6 = skb->nh.ipv6h; | 433 | struct ipv6hdr *iph6 = ipv6_hdr(skb); |
434 | u8 tos = tunnel->parms.iph.tos; | 434 | u8 tos = tunnel->parms.iph.tos; |
435 | struct rtable *rt; /* Route to the other host */ | 435 | struct rtable *rt; /* Route to the other host */ |
436 | struct net_device *tdev; /* Device to other host */ | 436 | struct net_device *tdev; /* Device to other host */ |
@@ -468,7 +468,7 @@ static int ipip6_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) | |||
468 | addr_type = ipv6_addr_type(addr6); | 468 | addr_type = ipv6_addr_type(addr6); |
469 | 469 | ||
470 | if (addr_type == IPV6_ADDR_ANY) { | 470 | if (addr_type == IPV6_ADDR_ANY) { |
471 | addr6 = &skb->nh.ipv6h->daddr; | 471 | addr6 = &ipv6_hdr(skb)->daddr; |
472 | addr_type = ipv6_addr_type(addr6); | 472 | addr_type = ipv6_addr_type(addr6); |
473 | } | 473 | } |
474 | 474 | ||
@@ -550,7 +550,7 @@ static int ipip6_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) | |||
550 | skb_set_owner_w(new_skb, skb->sk); | 550 | skb_set_owner_w(new_skb, skb->sk); |
551 | dev_kfree_skb(skb); | 551 | dev_kfree_skb(skb); |
552 | skb = new_skb; | 552 | skb = new_skb; |
553 | iph6 = skb->nh.ipv6h; | 553 | iph6 = ipv6_hdr(skb); |
554 | } | 554 | } |
555 | 555 | ||
556 | skb->h.raw = skb->nh.raw; | 556 | skb->h.raw = skb->nh.raw; |