]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Catch bogus stream sequence numbers
authorVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 4 Sep 2009 22:21:03 +0000 (18:21 -0400)
committerVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 4 Sep 2009 22:21:03 +0000 (18:21 -0400)
commita676f400ca4edea2c88a25c9302c2ebc925dc41e
tree68e75889f4fd4b576f50bd52088c79f7c837323d
parentbeb5864736fe209b04943ea8c24019bbd4718e43
sctp: Catch bogus stream sequence numbers

Since our TSN map is capable of holding at most a 4K chunk gap,
there is no way that during this gap, a stream sequence number
(unsigned short) can wrap such that the new number is smaller
then the next expected one.  If such a case is encountered,
this is a protocol violation.

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