]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 15 Jun 2015 18:26:50 +0000 (14:26 -0400)
commitdc3c6cb6eb811e8e27ff0acefb2cc7d16b1b976b
treefc72b314bf063fd8318ed6de56e9924fee060af9
parent984ff7a3e0603d4bc472ad09f4f119089085d8ca
tcp/ipv6: fix flow label setting in TIME_WAIT state

[ Upstream commit 21858cd02dabcf290564cbf4769b101eba54d7bb ]

commit 1d13a96c74fc ("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: 1d13a96c74fc ("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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/ipv4/tcp_minisocks.c
net/ipv6/tcp_ipv6.c