diff options
Diffstat (limited to 'net/ipv6/ip6_tunnel.c')
-rw-r--r-- | net/ipv6/ip6_tunnel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c index aafbdfa8d78..bb65779be7a 100644 --- a/net/ipv6/ip6_tunnel.c +++ b/net/ipv6/ip6_tunnel.c | |||
@@ -526,7 +526,7 @@ ip4ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, | |||
526 | skb2->dst = NULL; | 526 | skb2->dst = NULL; |
527 | skb_pull(skb2, offset); | 527 | skb_pull(skb2, offset); |
528 | skb_reset_network_header(skb2); | 528 | skb_reset_network_header(skb2); |
529 | eiph = skb2->nh.iph; | 529 | eiph = ip_hdr(skb2); |
530 | 530 | ||
531 | /* Try to guess incoming interface */ | 531 | /* Try to guess incoming interface */ |
532 | memset(&fl, 0, sizeof(fl)); | 532 | memset(&fl, 0, sizeof(fl)); |
@@ -625,10 +625,10 @@ static void ip4ip6_dscp_ecn_decapsulate(struct ip6_tnl *t, | |||
625 | __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; | 625 | __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; |
626 | 626 | ||
627 | if (t->parms.flags & IP6_TNL_F_RCV_DSCP_COPY) | 627 | if (t->parms.flags & IP6_TNL_F_RCV_DSCP_COPY) |
628 | ipv4_change_dsfield(skb->nh.iph, INET_ECN_MASK, dsfield); | 628 | ipv4_change_dsfield(ip_hdr(skb), INET_ECN_MASK, dsfield); |
629 | 629 | ||
630 | if (INET_ECN_is_ce(dsfield)) | 630 | if (INET_ECN_is_ce(dsfield)) |
631 | IP_ECN_set_ce(skb->nh.iph); | 631 | IP_ECN_set_ce(ip_hdr(skb)); |
632 | } | 632 | } |
633 | 633 | ||
634 | static void ip6ip6_dscp_ecn_decapsulate(struct ip6_tnl *t, | 634 | static void ip6ip6_dscp_ecn_decapsulate(struct ip6_tnl *t, |
@@ -944,7 +944,7 @@ static inline int | |||
944 | ip4ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev) | 944 | ip4ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev) |
945 | { | 945 | { |
946 | struct ip6_tnl *t = netdev_priv(dev); | 946 | struct ip6_tnl *t = netdev_priv(dev); |
947 | struct iphdr *iph = skb->nh.iph; | 947 | struct iphdr *iph = ip_hdr(skb); |
948 | int encap_limit = -1; | 948 | int encap_limit = -1; |
949 | struct flowi fl; | 949 | struct flowi fl; |
950 | __u8 dsfield; | 950 | __u8 dsfield; |