mirror of
https://github.com/open5gs/open5gs.git
synced 2025-10-23 07:41:57 +00:00
@@ -39,11 +39,11 @@ static bool maximum_number_of_gnbs_is_reached(void)
|
||||
static bool gnb_plmn_id_is_foreign(amf_gnb_t *gnb)
|
||||
{
|
||||
int i, j, k;
|
||||
for (k = 0; k < amf_self()->num_of_plmn_support; k++) {
|
||||
for (i = 0; i < gnb->num_of_supported_ta_list; i++) {
|
||||
for (j = 0; j < gnb->supported_ta_list[i].num_of_bplmn_list; j++) {
|
||||
if (memcmp(&amf_self()->plmn_support[k].plmn_id,
|
||||
&gnb->supported_ta_list[i].bplmn_list[j].plmn_id,
|
||||
for (i = 0; i < amf_self()->num_of_plmn_support; i++) {
|
||||
for (j = 0; j < gnb->num_of_supported_ta_list; j++) {
|
||||
for (k = 0; k < gnb->supported_ta_list[j].num_of_bplmn_list; k++) {
|
||||
if (memcmp(&amf_self()->plmn_support[i].plmn_id,
|
||||
&gnb->supported_ta_list[j].bplmn_list[k].plmn_id,
|
||||
OGS_PLMN_ID_LEN) == 0){
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user