Commit cca5bcd9 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for UPF - FQDN

parent 94d5f4cb
......@@ -97,7 +97,6 @@ bool pfcp_associations::add_association(
// Resolve FQDN to get UPF IP address if necessary
if (node_id.node_id_type == pfcp::NODE_ID_TYPE_FQDN) {
Logger::smf_app().info("Node ID Type FQDN: %s", node_id.fqdn.c_str());
}
struct hostent* record = gethostbyname(node_id.fqdn.c_str());
if (record == NULL) {
Logger::smf_app().info(
......@@ -116,13 +115,14 @@ bool pfcp_associations::add_association(
} else if (record->h_addrtype == AF_INET6) {
// TODO
Logger::smf_app().info(
"Node ID Type FQDN: %s. IPv6 Addr, this mode has not been supported "
"yet!",
"Node ID Type FQDN: %s. IPv6 Addr, this mode has not been "
"supported yet!",
node_id.fqdn.c_str());
return false;
} else {
return false;
}
}
restore_n4_sessions = false;
pfcp_association* association =
......@@ -166,7 +166,6 @@ bool pfcp_associations::add_association(
} else {
if (node_id.node_id_type == pfcp::NODE_ID_TYPE_FQDN) {
Logger::smf_app().info("Node ID Type FQDN: %s", node_id.fqdn.c_str());
}
struct hostent* record = gethostbyname(node_id.fqdn.c_str());
if (record == NULL) {
Logger::smf_app().info(
......@@ -184,13 +183,14 @@ bool pfcp_associations::add_association(
} else if (record->h_addrtype == AF_INET6) {
// TODO
Logger::smf_app().info(
"Node ID Type FQDN: %s. IPv6 Addr, this mode has not been supported "
"yet!",
"Node ID Type FQDN: %s. IPv6 Addr, this mode has not been "
"supported yet!",
node_id.fqdn.c_str());
return false;
} else {
return false;
}
}
restore_n4_sessions = false;
pfcp_association* association =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment