]> git.baikalelectronics.ru Git - kernel.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)
commite9e509a4615100d4f0217a345c72a5c5ae3b841b
tree4ca6c3b9c5ff637a5438196fb86666ac469188e7
parentff9d39d85e5192f711c946a65f7fea7290082a69
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