diff options
author | Florent Fourcot <florent.fourcot@enst-bretagne.fr> | 2013-12-08 18:47:00 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-10 06:03:49 +0400 |
commit | 3308de2b841e5f25bdc4a7208a451f52f8cff969 (patch) | |
tree | 74cb53c443502d59b4798342f03be24981448546 /include/net/ipv6.h | |
parent | 82e9f105a28006e7ff864220a28cf62ea6d1e280 (diff) | |
download | linux-3308de2b841e5f25bdc4a7208a451f52f8cff969.tar.xz |
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.h | 5 |
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) return *(__be32 *)hdr & IPV6_FLOWINFO_MASK; } +static inline __be32 ip6_flowlabel(const struct ipv6hdr *hdr) +{ + return *(__be32 *)hdr & IPV6_FLOWLABEL_MASK; +} + /* * Prototypes exported by ipv6 */ |