From: Gerrit Renker Date: Sun, 13 Jul 2008 10:51:40 +0000 (+0100) Subject: dccp ccid-3: Fix error in loss detection X-Git-Tag: v2.6.27-rc1~969^2~161^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2013c7e35aeba39777f9b3eef8a70207b3931152;p=pandora-kernel.git dccp ccid-3: Fix error in loss detection The TFRC loss detection code used the wrong loss condition (RFC 4340, 7.7.1): * the difference between sequence numbers s1 and s2 instead of * the number of packets missing between s1 and s2 (one less than the distance). Since this condition appears in many places of the code, it has been put into a separate function, dccp_loss_free(). Further changes: ---------------- * tidied up incorrect typing (it was using `int' for u64/s64 types); * optimised conditional statements for common case of non-reordered packets; * rewrote comments/documentation to match the changes. Signed-off-by: Gerrit Renker --- Reading git-diff-tree failed