From 00e21e74a68a1db7fd8c78b9da00ee1017e0b3ac Mon Sep 17 00:00:00 2001 From: Cedric Roux <cedric.roux@eurecom.fr> Date: Mon, 10 Sep 2018 16:32:20 +0200 Subject: [PATCH] integration fix: better error reporting in case of X2 failure If the IP address for X2AP is not good, the error message reported was very unclear. Attempt to make it better. --- openair2/X2AP/x2ap_eNB.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openair2/X2AP/x2ap_eNB.c b/openair2/X2AP/x2ap_eNB.c index 4f23b5ddfee..a1469509a90 100644 --- a/openair2/X2AP/x2ap_eNB.c +++ b/openair2/X2AP/x2ap_eNB.c @@ -371,7 +371,10 @@ void x2ap_eNB_handle_sctp_init_msg_multi_cnf( /* Exit if CNF message reports failure. * Failure means multi_sd < 0. */ - DevAssert(instance->multi_sd >= 0); + if (instance->multi_sd < 0) { + X2AP_ERROR("Error: be sure to properly configure X2 in your configuration file.\n"); + DevAssert(instance->multi_sd >= 0); + } /* Trying to connect to the provided list of eNB ip address */ -- GitLab