diff options
author | Florent Fourcot <florent.fourcot@enst-bretagne.fr> | 2013-11-07 17:53:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-11-08 19:42:57 +0100 |
commit | 3fdfa5ff50aee5b524fb22b6e0e511b73752a257 (patch) | |
tree | 8f29df0bc744c02169588a0719bb67a306705c8e /include | |
parent | net: flow_dissector: small optimizations in IPv4 dissect (diff) | |
download | linux-3fdfa5ff50aee5b524fb22b6e0e511b73752a257.tar.xz linux-3fdfa5ff50aee5b524fb22b6e0e511b73752a257.zip |
ipv6: enable IPV6_FLOWLABEL_MGR for getsockopt
It is already possible to set/put/renew a label
with IPV6_FLOWLABEL_MGR and setsockopt. This patch
add the possibility to get information about this
label (current value, time before expiration, etc).
It helps application to take decision for a renew
or a release of the label.
v2:
* Add spin_lock to prevent race condition
* return -ENOENT if no result found
* check if flr_action is GET
v3:
* move the spin_lock to protect only the
relevant code
Signed-off-by: Florent Fourcot <florent.fourcot@enst-bretagne.fr>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/ipv6.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index dd96638ab8ff..2a5f668cd683 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -250,6 +250,7 @@ struct ipv6_txoptions *fl6_merge_options(struct ipv6_txoptions *opt_space, struct ipv6_txoptions *fopt); void fl6_free_socklist(struct sock *sk); int ipv6_flowlabel_opt(struct sock *sk, char __user *optval, int optlen); +int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq); int ip6_flowlabel_init(void); void ip6_flowlabel_cleanup(void); |