From 25430e9b25c9ce4e31f50f728bf6ac9034dce99b Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Wed, 4 Sep 2024 18:11:15 +0200 Subject: [PATCH] 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 --- openair3/SCTP/sctp_eNB_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair3/SCTP/sctp_eNB_task.c b/openair3/SCTP/sctp_eNB_task.c index ffd4bba3f5..a6d3a11a39 100644 --- a/openair3/SCTP/sctp_eNB_task.c +++ b/openair3/SCTP/sctp_eNB_task.c @@ -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);