mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
fix: allow gNB to connect without a local IP configured
Fix gnb_config_ng.c so that gnb_ip_address.ipv4 is only set to 1 when GNB_IPV4_ADDRESS_FOR_NG_AMF is actually present Signed-off-by: Aswanth KC <kallangaattuvalasu.a@northeastern.edu>
This commit is contained in:
committed by
Robert Schmidt
parent
444eda3438
commit
05210a7110
@@ -131,10 +131,12 @@ int RCconfig_NR_NG(MessageDef *msg_p, uint32_t i)
|
||||
char *address = strtok_r(cidr, "/", &save);
|
||||
strcpy(NGAP_REGISTER_GNB_REQ(msg_p).gnb_ip_address.ipv4_address, address);
|
||||
LOG_I(GNB_APP, "Parsed IPv4 address for NG AMF: %s\n", address);
|
||||
NGAP_REGISTER_GNB_REQ(msg_p).gnb_ip_address.ipv4 = 1;
|
||||
} else {
|
||||
LOG_I(GNB_APP, "No IPv4 address for NG AMF provided in config file, using default\n");
|
||||
NGAP_REGISTER_GNB_REQ(msg_p).gnb_ip_address.ipv4 = 0;
|
||||
}
|
||||
|
||||
NGAP_REGISTER_GNB_REQ(msg_p).gnb_ip_address.ipv6 = 0;
|
||||
NGAP_REGISTER_GNB_REQ(msg_p).gnb_ip_address.ipv4 = 1;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user