From b7f00aa24041bf9185eb40a5b3e621df6f684e9e Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Fri, 6 Jun 2025 07:53:49 +0200 Subject: [PATCH] SCTP: Provide more info on getaddrinfo() fail Upon failure, the error message was saying that something failed (i.e., the reason), but not parameters of the getaddrinfo(). Simplify root cause analysis by providing the parameters for the attempted getaddrinfo() call. --- 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 6b83a7df6d..82afa451c0 100644 --- a/openair3/SCTP/sctp_eNB_task.c +++ b/openair3/SCTP/sctp_eNB_task.c @@ -464,7 +464,7 @@ static void sctp_handle_new_association_req(const instance_t instance, char port[12]; snprintf(port, sizeof(port), "%d", req->port); int status = getaddrinfo(remote, port, &hints, &serv); - AssertFatal(status == 0, "getaddrinfo() failed: %s\n", gai_strerror(status)); + AssertFatal(status == 0, "getaddrinfo(node %s service %s) failed: %s\n", remote, port, gai_strerror(status)); struct addrinfo *p = NULL; for (p = serv; p != NULL; p = p->ai_next) {