]> git.karo-electronics.de Git - karo-tx-linux.git/commit
TCP: Fix sorting of SACK blocks.
authorBaruch Even <baruch@ev-en.org>
Wed, 14 Feb 2007 08:29:14 +0000 (09:29 +0100)
committerAdrian Bunk <bunk@stusta.de>
Wed, 14 Feb 2007 08:29:14 +0000 (09:29 +0100)
commit66a1b6727df52831abce2dc639aebcbb7a5a9d85
tree3af27c4f3fffa2c9410fe5869b614534b3901d7a
parent396cdac3a693b34961d033a94672226b7c6c09d2
TCP: Fix sorting of SACK blocks.

The sorting of SACK blocks actually munges them rather than sort,
causing the TCP stack to ignore some SACK information and breaking the
assumption of ordered SACK blocks after sorting.

The sort takes the data from a second buffer which isn't moved causing
subsequent data moves to occur from the wrong location. The fix is to
use a temporary buffer as a normal sort does.

Signed-off-By: Baruch Even <baruch@ev-en.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c