Fixup: on SCTP conn event, transmit assoc_id

User of the SCTP module use the assoc_id for connection identification.
The previous code set the assoc_id to -1, so there is no way of telling
which connection broke. Use the assoc_id instead
This commit is contained in:
Robert Schmidt
2024-09-06 10:20:08 +02:00
parent ec6469d088
commit 25430e9b25
+1 -1
View File
@@ -787,7 +787,7 @@ sctp_eNB_read_from_socket(
SCTP_ERROR("sctp_recvmsg (fd %d, len %d ): %s:%d\n", sctp_cnx->sd, n, strerror(errno), errno);
sctp_itti_send_association_resp(
sctp_cnx->task_id, sctp_cnx->instance, -1,
sctp_cnx->task_id, sctp_cnx->instance, sctp_cnx->assoc_id,
sctp_cnx->cnx_id, SCTP_STATE_UNREACHABLE, 0, 0);
close(sctp_cnx->sd);