Michael Tuexen
c7e732ae61
Fix a bug in INIT handling on accepted 1-to-1 style sockets when the
listener is closed.
This fix allows the following packetdrill test to pass:
// Setup a connected, blocking 1-to-1 style socket
+0.0 socket(..., SOCK_STREAM, IPPROTO_SCTP) = 3
// Check the handshake with en empty(!) cookie
+0.0 bind(3, ..., ...) = 0
+0.0 listen(3, 1) = 0
+0.0 < sctp: INIT[flgs=0, tag=1, a_rwnd=1500, os=1, is=1, tsn=1]
+0.0 > sctp: INIT_ACK[flgs=0, tag=2, a_rwnd=..., os=..., is=..., tsn=1, ...]
+0.0 < sctp: COOKIE_ECHO[flgs=0, len=..., val=...]
+0.0 > sctp: COOKIE_ACK[flgs=0]
+0.0 accept(3, ..., ...) = 4
+0.0 close(3) = 0
// Inject an INIT chunk and expect an INIT-ACK
+0.0 < sctp: INIT[flgs=0, tag=3, a_rwnd=1500, os=1, is=1, tsn=1]
+0.0 > sctp: INIT_ACK[flgs=0, tag=..., a_rwnd=..., os=..., is=..., tsn=..., ...]
MFC after: 3 days
2016-01-15 00:26:15 +00:00
..
2015-12-09 08:53:41 +00:00
2015-04-26 11:39:25 +00:00
2016-01-07 11:54:20 +00:00
2015-03-02 17:30:26 +00:00
2016-01-01 10:15:06 +00:00
2015-12-31 05:03:27 +00:00
2015-02-19 22:35:23 +00:00
2015-12-01 11:24:30 +00:00
2016-01-11 08:45:28 +00:00
2015-12-08 10:50:03 +00:00
2015-12-08 10:50:03 +00:00
2015-12-16 23:39:27 +00:00
2015-12-16 23:39:27 +00:00
2015-12-09 11:14:27 +00:00
2016-01-09 09:34:39 +00:00
2015-09-05 10:15:19 +00:00
2016-01-14 08:54:44 +00:00
2015-08-29 06:58:30 +00:00
2015-08-29 06:58:30 +00:00
2016-01-14 08:54:44 +00:00
2016-01-04 15:03:20 +00:00
2015-04-17 11:57:06 +00:00
2015-12-17 14:41:30 +00:00
2015-07-31 09:02:28 +00:00
2016-01-09 09:34:39 +00:00
2015-11-05 07:26:32 +00:00
2015-11-03 10:21:53 +00:00
2015-04-01 22:26:39 +00:00
2015-12-09 11:14:27 +00:00
2015-04-02 14:22:59 +00:00
2015-12-09 11:14:27 +00:00
2015-10-29 21:26:32 +00:00
2016-01-14 08:54:44 +00:00
2015-12-09 11:14:27 +00:00
2016-01-09 16:34:37 +00:00
2015-04-15 00:57:21 +00:00
2015-12-09 11:14:27 +00:00
2015-07-18 06:48:30 +00:00
2016-01-09 09:34:39 +00:00
2015-07-27 22:35:54 +00:00
2015-10-19 11:17:54 +00:00
2015-12-16 23:39:27 +00:00
2015-09-11 13:54:33 +00:00
2015-09-12 17:08:51 +00:00
2015-12-21 18:52:02 +00:00
2015-08-02 16:07:30 +00:00
2015-12-10 11:49:32 +00:00
2015-06-17 15:20:14 +00:00
2015-12-27 17:33:59 +00:00
2015-12-25 18:11:40 +00:00
2015-07-24 14:09:03 +00:00
2016-01-15 00:26:15 +00:00
2015-12-10 11:49:32 +00:00
2015-03-10 19:49:25 +00:00
2016-01-04 20:34:40 +00:00
2015-06-19 21:55:12 +00:00
2015-08-29 09:14:32 +00:00
2015-09-15 21:16:45 +00:00
2015-12-03 15:19:29 +00:00
2015-11-06 14:00:26 +00:00
2016-01-14 11:25:28 +00:00
2015-06-14 17:48:44 +00:00
2015-09-12 17:08:51 +00:00
2016-01-13 14:28:12 +00:00
2015-12-06 16:17:57 +00:00
2015-04-30 17:43:40 +00:00
2015-12-24 19:09:48 +00:00
2015-12-24 19:09:48 +00:00
2015-12-11 06:22:58 +00:00
2015-12-11 06:22:58 +00:00
2016-01-07 00:14:42 +00:00
2015-06-30 17:19:58 +00:00
2016-01-14 10:22:45 +00:00
2015-10-15 01:44:32 +00:00
2015-10-14 00:35:37 +00:00
2016-01-09 09:34:39 +00:00
2015-12-16 00:56:45 +00:00
2016-01-09 09:34:39 +00:00
2015-12-24 19:09:48 +00:00
2015-12-24 19:09:48 +00:00
2016-01-07 00:14:42 +00:00
2015-08-30 13:44:39 +00:00
2015-08-03 12:13:54 +00:00
2016-01-07 00:14:42 +00:00
2016-01-07 00:14:42 +00:00
2015-12-24 19:09:48 +00:00
2016-01-09 06:26:40 +00:00
2015-12-24 13:57:43 +00:00
2015-08-27 15:27:41 +00:00