diff options
author | Florent Fourcot <florent.fourcot@enst-bretagne.fr> | 2013-12-08 15:47:00 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-09 21:03:49 -0500 |
commit | 3308de2b841e5f25bdc4a7208a451f52f8cff969 (patch) | |
tree | 74cb53c443502d59b4798342f03be24981448546 /include/net/ipv6.h | |
parent | 82e9f105a28006e7ff864220a28cf62ea6d1e280 (diff) | |
download | op-kernel-dev-3308de2b841e5f25bdc4a7208a451f52f8cff969.zip op-kernel-dev-3308de2b841e5f25bdc4a7208a451f52f8cff969.tar.gz |
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 bce802e..d0bfe3e 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 */ |