From 15cf5c116ea3cd4ff0ce40455ceb379f606e5b4e Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Mon, 12 Feb 2024 10:41:40 +0100 Subject: [PATCH] Provide right E1 instance when creating E2 agent in CU-UP CUuniqInstance is also used for GTP module identification, which uses the UDP server socket as its ID. This leads to arbitrary IDs (>0), which is wrong. --- executables/nr-cuup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/executables/nr-cuup.c b/executables/nr-cuup.c index 40ae604716..dc6a84c77c 100644 --- a/executables/nr-cuup.c +++ b/executables/nr-cuup.c @@ -57,7 +57,8 @@ static void initialize_agent(ngran_node_t node_type, e2_agent_args_t oai_args) // Only 1 instances is supported in one executable // Advice: run multiple executables to have multiple instances - const e1ap_upcp_inst_t *e1inst = getCxtE1(CUuniqInstance); + const instance_t e1_inst = 0; + const e1ap_upcp_inst_t *e1inst = getCxtE1(e1_inst); const int nb_id = e1inst->gnb_id; const int cu_up_id = e1inst->cuup.setupReq.gNB_cu_up_id;