aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ipv6.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r--include/net/ipv6.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h
index fcbc6464b014..ed672080c690 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -555,6 +555,11 @@ static inline void ip6_flow_hdr(struct ipv6hdr *hdr, unsigned int tclass,
555 *(__be32 *)hdr = ntohl(0x60000000 | (tclass << 20)) | flowlabel; 555 *(__be32 *)hdr = ntohl(0x60000000 | (tclass << 20)) | flowlabel;
556} 556}
557 557
558static inline __be32 ip6_flowinfo(const struct ipv6hdr *hdr)
559{
560 return *(__be32 *)hdr & IPV6_FLOWINFO_MASK;
561}
562
558/* 563/*
559 * Prototypes exported by ipv6 564 * Prototypes exported by ipv6
560 */ 565 */