]> git.baikalelectronics.ru Git - kernel.git/commit
tcp/ipv6: fix flow label setting in TIME_WAIT state
authorFlorent Fourcot <florent.fourcot@enst-bretagne.fr>
Fri, 15 May 2015 22:24:59 +0000 (00:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2015 03:41:59 +0000 (23:41 -0400)
commit0535bb20d098519a35cb92dcf1ed88e90b99ce88
tree2e50c7f275cd0f7ff24673bd6335da5152b1d7c2
parenta92a3580e5a1fbf3d5ff7c98d3d88053dde7086e
tcp/ipv6: fix flow label setting in TIME_WAIT state

commit 443049a19abb ("ipv6: tcp: fix flowlabel value in ACK messages
send from TIME_WAIT") added the flow label in the last TCP packets.
Unfortunately, it was not casted properly.

This patch replace the buggy shift with be32_to_cpu/cpu_to_be32.

Fixes: 443049a19abb ("ipv6: tcp: fix flowlabel value in ACK messages")
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Florent Fourcot <florent.fourcot@enst-bretagne.fr>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_minisocks.c
net/ipv6/tcp_ipv6.c