forked from acouzens/open5gs
name changes
This commit is contained in:
parent
a7690e395b
commit
1ab90bcef4
|
@ -80,7 +80,7 @@ status_t gtp_add_node(list_t *list, gtp_node_t **node,
|
|||
return CORE_OK;
|
||||
}
|
||||
|
||||
gtp_node_t *gtp_add_node_by_teid(list_t *list, gtp_f_teid_t *f_teid,
|
||||
gtp_node_t *gtp_add_node_by_f_teid(list_t *list, gtp_f_teid_t *f_teid,
|
||||
c_uint16_t port, int no_ipv4, int no_ipv6, int prefer_ipv4)
|
||||
{
|
||||
status_t rv;
|
||||
|
@ -139,7 +139,7 @@ status_t gtp_remove_all_nodes(list_t *list)
|
|||
return CORE_OK;
|
||||
}
|
||||
|
||||
gtp_node_t* gtp_find(list_t *list, ip_t *ip)
|
||||
gtp_node_t* gtp_find_by_ip(list_t *list, ip_t *ip)
|
||||
{
|
||||
gtp_node_t *node = NULL;
|
||||
|
||||
|
|
|
@ -32,12 +32,12 @@ CORE_DECLARE(status_t) gtp_node_final(void);
|
|||
|
||||
CORE_DECLARE(status_t) gtp_add_node(list_t *list, gtp_node_t **node,
|
||||
c_sockaddr_t *sa_list, int no_ipv4, int no_ipv6, int prefer_ipv4);
|
||||
CORE_DECLARE(gtp_node_t *) gtp_add_node_by_teid(
|
||||
CORE_DECLARE(gtp_node_t *) gtp_add_node_by_f_teid(
|
||||
list_t *list, gtp_f_teid_t *f_teid,
|
||||
c_uint16_t port, int no_ipv4, int no_ipv6, int prefer_ipv4);
|
||||
CORE_DECLARE(status_t) gtp_remove_node(list_t *list, gtp_node_t *node);
|
||||
CORE_DECLARE(status_t) gtp_remove_all_nodes(list_t *list);
|
||||
CORE_DECLARE(gtp_node_t *) gtp_find(list_t *list, ip_t *ip);
|
||||
CORE_DECLARE(gtp_node_t *) gtp_find_by_ip(list_t *list, ip_t *ip);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -738,10 +738,10 @@ pgw_sess_t *pgw_sess_find_or_add_by_message(gtp_message_t *gtp_message)
|
|||
|
||||
sgw_s5c_teid = req->sender_f_teid_for_control_plane.data;
|
||||
d_assert(sgw_s5c_teid, return NULL,);
|
||||
sgw = gtp_find(&pgw_self()->sgw_list, &sgw_s5c_teid->ip);
|
||||
sgw = gtp_find_by_ip(&pgw_self()->sgw_list, &sgw_s5c_teid->ip);
|
||||
if (!sgw)
|
||||
{
|
||||
sgw = gtp_add_node_by_teid(
|
||||
sgw = gtp_add_node_by_f_teid(
|
||||
&pgw_self()->sgw_list, sgw_s5c_teid, pgw_self()->gtpc_port,
|
||||
context_self()->parameter.no_ipv4,
|
||||
context_self()->parameter.no_ipv6,
|
||||
|
|
|
@ -479,10 +479,10 @@ sgw_ue_t *sgw_ue_find_or_add_by_message(gtp_message_t *gtp_message)
|
|||
|
||||
mme_s11_teid = req->sender_f_teid_for_control_plane.data;
|
||||
d_assert(mme_s11_teid, return NULL,);
|
||||
mme = gtp_find(&sgw_self()->mme_list, &mme_s11_teid->ip);
|
||||
mme = gtp_find_by_ip(&sgw_self()->mme_list, &mme_s11_teid->ip);
|
||||
if (!mme)
|
||||
{
|
||||
mme = gtp_add_node_by_teid(
|
||||
mme = gtp_add_node_by_f_teid(
|
||||
&sgw_self()->mme_list, mme_s11_teid, sgw_self()->gtpc_port,
|
||||
context_self()->parameter.no_ipv4,
|
||||
context_self()->parameter.no_ipv6,
|
||||
|
|
|
@ -99,10 +99,10 @@ void sgw_s11_handle_create_session_request(gtp_xact_t *s11_xact,
|
|||
pgw_s5c_teid = req->pgw_s5_s8_address_for_control_plane_or_pmip.data;
|
||||
d_assert(pgw_s5c_teid, return, "Null param");
|
||||
|
||||
pgw = gtp_find(&sgw_self()->pgw_list, &pgw_s5c_teid->ip);
|
||||
pgw = gtp_find_by_ip(&sgw_self()->pgw_list, &pgw_s5c_teid->ip);
|
||||
if (!pgw)
|
||||
{
|
||||
pgw = gtp_add_node_by_teid(
|
||||
pgw = gtp_add_node_by_f_teid(
|
||||
&sgw_self()->pgw_list, pgw_s5c_teid, sgw_self()->gtpc_port,
|
||||
context_self()->parameter.no_ipv4,
|
||||
context_self()->parameter.no_ipv6,
|
||||
|
|
Loading…
Reference in New Issue