kernel_optimize_test/include/net/sctp
Xin Long df7e88f6ca sctp: change to use TCP_CLOSE_WAIT as SCTP_SS_CLOSING
Prior to this patch, sctp defined TCP_CLOSING as SCTP_SS_CLOSING.
TCP_CLOSING is such a special sk state in TCP that inet common codes
even exclude it.

For instance, inet_accept thinks the accept sk's state never be
TCP_CLOSING, or it will give a WARN_ON. TCP works well with that
while SCTP may trigger the call trace, as CLOSING state in SCTP
has different meaning from TCP.

This fix is to change to use TCP_CLOSE_WAIT as SCTP_SS_CLOSING,
instead of TCP_CLOSING. Some side-effects could be expected,
regardless of not being used before. inet_accept will accept it
now.

I did all the func_tests in lksctp-tools and ran sctp codnomicon
fuzzer tests against this patch, no regression or failure found.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-08-01 13:32:50 -07:00
..
auth.h sctp: Use shash 2016-01-27 20:36:15 +08:00
checksum.h
command.h sctp: handle association restarts when the socket is closed. 2014-10-06 00:21:45 -04:00
constants.h sctp: change to use TCP_CLOSE_WAIT as SCTP_SS_CLOSING 2016-08-01 13:32:50 -07:00
sctp.h sctp: Add GSO support 2016-06-03 19:37:21 -04:00
sm.h sctp: allow sctp_transmit_packet and others to use gfp 2016-03-13 22:29:07 -04:00
structs.h sctp: avoid identifying address family many times for a chunk 2016-07-13 18:10:14 -07:00
tsnmap.h
ulpevent.h sctp: allow GSO frags to access the chunk too 2016-07-13 18:10:14 -07:00
ulpqueue.h