From ec8bf3ea6f6909d036d0534ed2882bce1e26cbc8 Mon Sep 17 00:00:00 2001 From: yagoda Date: Wed, 16 Nov 2022 12:24:38 +0100 Subject: [PATCH] lib,sctp: changing sctp sock opts to be compatible with RIC --- lib/src/common/network_utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/common/network_utils.cc b/lib/src/common/network_utils.cc index 3bf566556..b7c5c3b6d 100644 --- a/lib/src/common/network_utils.cc +++ b/lib/src/common/network_utils.cc @@ -225,7 +225,7 @@ bool sctp_subscribe_to_events(int fd) evnts.sctp_data_io_event = 1; evnts.sctp_shutdown_event = 1; evnts.sctp_address_event = 1; - if (setsockopt(fd, IPPROTO_SCTP, SCTP_EVENTS, &evnts, sizeof(evnts)) != 0) { + if (setsockopt(fd, SOL_SOCKET, SCTP_EVENTS, &evnts, sizeof(evnts)) != 0) { srslog::fetch_basic_logger(LOGSERVICE).error("Failed to subscribe to SCTP_SHUTDOWN event: %s", strerror(errno)); perror("Could not register socket to SCTP events\n"); close(fd);