SCTP: drop SACK if ctsn is not less than the next tsn of assoc
authorWei Yongjun <yjwei@cn.fujitsu.com>
Thu, 2 Aug 2007 08:57:44 +0000 (16:57 +0800)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Thu, 2 Aug 2007 14:41:18 +0000 (10:41 -0400)
commitaecedeab6fcf914929cd8ff6fa0b8ae9bfdf3d30
tree7757855692d2275b32d03988a4e27b47ef127a5f
parente4d1feab5df035312494ce3037ac5f041d0f5fc9
SCTP: drop SACK if ctsn is not less than the next tsn of assoc

We need to drop the SACK if the peer is attempting to acknowledge
unset data, i.e.  the CTSN in the SACK is greater or equal to the
next TSN we will send.

Example:
Endpoint A                                      Endpoint B
                             <---------------   DATA (TSN=1)
SACK(TSN=1) --------------->
                             <---------------   DATA (TSN=2)
                             <---------------   DATA (TSN=3)
                             <---------------   DATA (TSN=4)
                             <---------------   DATA (TSN=5)
SACK(TSN=1000) --------------->
                             <---------------   DATA (TSN=6)
                             <---------------   DATA (TSN=7)

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
net/sctp/sm_statefuns.c