lib,sctp: changing sctp sock opts to be compatible with RIC

master
yagoda 2 years ago committed by Justin Tallon
parent 93202d152a
commit ec8bf3ea6f

@ -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);

Loading…
Cancel
Save