]> asedeno.scripts.mit.edu Git - linux.git/commit
sctp: update mid instead of ssn when doing stream and asoc reset
authorXin Long <lucien.xin@gmail.com>
Thu, 14 Dec 2017 16:41:31 +0000 (00:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 18:52:22 +0000 (13:52 -0500)
commit107e242569541795a84264f94375e987ba04d309
tree4ca6c3b9c5ff637a5438196fb86666ac469188e7
parentef4775e3402b7d45b06dddd79f860a5c4d5fc1cf
sctp: update mid instead of ssn when doing stream and asoc reset

When using idata and doing stream and asoc reset, setting ssn with
0 could only clear the 1st 16 bits of mid.

So to make this work for both data and idata, it sets mid with 0
instead of ssn, and also mid_uo for unordered idata also need to
be cleared, as said in section 2.3.2 of RFC8260.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo R. Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/stream.c