Merge remote-tracking branch 'regmap/fix/cache' into tmp
[firefly-linux-kernel-4.4.55.git] / net / ipv6 / netfilter / ip6t_REJECT.c
index 029623dbd4118d18667a83d209131dc64b5ec7c4..ed3b427b284142c037d66d63ee3fa7e205925708 100644 (file)
@@ -126,7 +126,7 @@ static void send_reset(struct net *net, struct sk_buff *oldskb)
        skb_put(nskb, sizeof(struct ipv6hdr));
        skb_reset_network_header(nskb);
        ip6h = ipv6_hdr(nskb);
-       *(__be32 *)ip6h =  htonl(0x60000000 | (tclass << 20));
+       ip6_flow_hdr(ip6h, tclass, 0);
        ip6h->hop_limit = ip6_dst_hoplimit(dst);
        ip6h->nexthdr = IPPROTO_TCP;
        ip6h->saddr = oip6h->daddr;