aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ipv6.h
diff options
context:
space:
mode:
authorFlorent Fourcot <florent.fourcot@enst-bretagne.fr>2013-12-08 09:47:00 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-09 21:03:49 -0500
commit3308de2b841e5f25bdc4a7208a451f52f8cff969 (patch)
tree74cb53c443502d59b4798342f03be24981448546 /include/net/ipv6.h
parent82e9f105a28006e7ff864220a28cf62ea6d1e280 (diff)
ipv6: add ip6_flowlabel helper
And use it if possible. Signed-off-by: Florent Fourcot <florent.fourcot@enst-bretagne.fr> Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
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 bce802e7bcfd..d0bfe3eeb824 100644
--- a/include/net/ipv6.h
+++ b/include/net/ipv6.h
@@ -679,6 +679,11 @@ static inline __be32 ip6_flowinfo(const struct ipv6hdr *hdr)
679 return *(__be32 *)hdr & IPV6_FLOWINFO_MASK; 679 return *(__be32 *)hdr & IPV6_FLOWINFO_MASK;
680} 680}
681 681
682static inline __be32 ip6_flowlabel(const struct ipv6hdr *hdr)
683{
684 return *(__be32 *)hdr & IPV6_FLOWLABEL_MASK;
685}
686
682/* 687/*
683 * Prototypes exported by ipv6 688 * Prototypes exported by ipv6
684 */ 689 */