[IPV6]: flowlabels are net-endian
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / ipv6 / af_inet6.c
index 858cae29581c8e129289ce09cf644fd5d70c9184..92bfccf62cb7f5af9f3d90d289043175ce348961 100644 (file)
@@ -678,7 +678,7 @@ int ipv6_opt_accepted(struct sock *sk, struct sk_buff *skb)
        if (np->rxopt.all) {
                if ((opt->hop && (np->rxopt.bits.hopopts ||
                                  np->rxopt.bits.ohopopts)) ||
-                   ((IPV6_FLOWINFO_MASK & *(u32*)skb->nh.raw) &&
+                   ((IPV6_FLOWINFO_MASK & *(__be32*)skb->nh.raw) &&
                     np->rxopt.bits.rxflow) ||
                    (opt->srcrt && (np->rxopt.bits.srcrt ||
                     np->rxopt.bits.osrcrt)) ||