aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ipv6.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index dfc1363a97b5..a0909c79374b 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -629,7 +629,7 @@ extern void ipv6_select_ident(struct frag_hdr *fhdr, struct rt6_info *rt);
629static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass, 629static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass,
630 __be32 flowlabel) 630 __be32 flowlabel)
631{ 631{
632 *(__be32 *)hdr = ntohl(0x60000000 | (tclass << 20)) | flowlabel; 632 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | flowlabel;
633} 633}
634 634
635static inline __be32 ip6_flowinfo(const struct ipv6hdr *hdr) 635static inline __be32 ip6_flowinfo(const struct ipv6hdr *hdr)