mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
954a5a0294
commit
a346abe051
6 changed files with 17 additions and 5 deletions
|
@ -989,7 +989,7 @@ static void tcp_v6_send_reset(const struct sock *sk, struct sk_buff *skb)
|
|||
if (sk->sk_state == TCP_TIME_WAIT)
|
||||
label = cpu_to_be32(inet_twsk(sk)->tw_flowlabel);
|
||||
} else {
|
||||
if (net->ipv6.sysctl.flowlabel_reflect & 2)
|
||||
if (net->ipv6.sysctl.flowlabel_reflect & FLOWLABEL_REFLECT_TCP_RESET)
|
||||
label = ip6_flowlabel(ipv6h);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue