diff options
author | Eric Dumazet <edumazet@google.com> | 2019-07-01 15:39:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-01 19:54:51 +0200 |
commit | a346abe051bd2bd0d5d0140b2da9ec95639acad7 (patch) | |
tree | 1e03874ac049b3d298d382e678a84b68f7ce5f12 /include/net/ipv6.h | |
parent | Merge tag 'mlx5e-updates-2019-06-28' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
download | linux-a346abe051bd2bd0d5d0140b2da9ec95639acad7.tar.xz linux-a346abe051bd2bd0d5d0140b2da9ec95639acad7.zip |
ipv6: icmp: allow flowlabel reflection in echo replies
Extend flowlabel_reflect bitmask to allow conditional
reflection of incoming flowlabels in echo replies.
Note this has precedence against auto flowlabels.
Add flowlabel_reflect enum to replace hard coded
values.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r-- | include/net/ipv6.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index b41f6a0fa903..8eca5fb30376 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -301,6 +301,13 @@ struct ipv6_txoptions { /* Option buffer, as read by IPV6_PKTOPTIONS, starts here. */ }; +/* flowlabel_reflect sysctl values */ +enum flowlabel_reflect { + FLOWLABEL_REFLECT_ESTABLISHED = 1, + FLOWLABEL_REFLECT_TCP_RESET = 2, + FLOWLABEL_REFLECT_ICMPV6_ECHO_REPLIES = 4, +}; + struct ip6_flowlabel { struct ip6_flowlabel __rcu *next; __be32 label; |