Projects
osmocom:master
open5gs
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 132
View file
commit_610b9980388e88b5c53193d712db07c21002491b.txt
Deleted
View file
commit_b7386284a707953ac01071bf44ff460138b48e40.txt
Added
View file
open5gs_2.6.0.3.610b9.dsc -> open5gs_2.6.0.4.b7386.dsc
Changed
@@ -2,7 +2,7 @@ Source: open5gs Binary: open5gs-common, open5gs-mme, open5gs-sgwc, open5gs-smf, open5gs-amf, open5gs-sgwu, open5gs-upf, open5gs-hss, open5gs-pcrf, open5gs-nrf, open5gs-scp, open5gs-ausf, open5gs-udm, open5gs-pcf, open5gs-nssf, open5gs-bsf, open5gs-udr, open5gs, open5gs-dbg Architecture: any -Version: 2.6.0.3.610b9 +Version: 2.6.0.4.b7386 Maintainer: Harald Welte <laforge@gnumonks.org> Uploaders: Sukchan Lee <acetcom@gmail.com> Homepage: https://open5gs.org @@ -31,8 +31,8 @@ open5gs-udr deb net optional arch=any open5gs-upf deb net optional arch=any Checksums-Sha1: - 5194e32e71a5c9eaeded9eec9400703eda77a552 13616112 open5gs_2.6.0.3.610b9.tar.xz + 98f1f69bb7517a2f0470b6dd178d415c38f12944 13614928 open5gs_2.6.0.4.b7386.tar.xz Checksums-Sha256: - 8e65cc572fde7657a1912fb412b941492be6d07cfdb92cb63f79881d97b4c766 13616112 open5gs_2.6.0.3.610b9.tar.xz + 88981381fae737b78616da0947738a596b8b4ddad4ee52218a67456dc38850c5 13614928 open5gs_2.6.0.4.b7386.tar.xz Files: - e3cabde3e770aebfeccf4029349431eb 13616112 open5gs_2.6.0.3.610b9.tar.xz + 9f3d99290f1d9e3607e4bbc0745f5df3 13614928 open5gs_2.6.0.4.b7386.tar.xz
View file
open5gs_2.6.0.3.610b9.tar.xz/.tarball-version -> open5gs_2.6.0.4.b7386.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -2.6.0.3-610b9 +2.6.0.4-b7386
View file
open5gs_2.6.0.3.610b9.tar.xz/debian/changelog -> open5gs_2.6.0.4.b7386.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -open5gs (2.6.0.3.610b9) unstable; urgency=medium +open5gs (2.6.0.4.b7386) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Sun, 29 Jan 2023 00:19:51 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Sun, 29 Jan 2023 02:55:25 +0000 open5gs (2.5.6) unstable; urgency=medium
View file
open5gs_2.6.0.3.610b9.tar.xz/lib/sbi/context.c -> open5gs_2.6.0.4.b7386.tar.xz/lib/sbi/context.c
Changed
@@ -31,10 +31,12 @@ static OGS_POOL(smf_info_pool, ogs_sbi_smf_info_t); static OGS_POOL(nf_info_pool, ogs_sbi_nf_info_t); -void ogs_sbi_context_init(void) +void ogs_sbi_context_init(OpenAPI_nf_type_e nf_type) { char nf_instance_idOGS_UUID_FORMATTED_LENGTH + 1; + ogs_assert(nf_type); + ogs_assert(context_initialized == 0); /* Initialize SBI context */ @@ -62,18 +64,21 @@ ogs_pool_init(&nf_info_pool, ogs_app()->pool.nf * OGS_MAX_NUM_OF_NF_INFO); - /* Add AELF NF-Instance */ + /* Add SELF NF-Instance */ self.nf_instance = ogs_sbi_nf_instance_add(); ogs_assert(self.nf_instance); ogs_uuid_get(&self.uuid); ogs_uuid_format(nf_instance_id, &self.uuid); ogs_sbi_nf_instance_set_id(self.nf_instance, nf_instance_id); + ogs_sbi_nf_instance_set_type(self.nf_instance, nf_type); /* Add NRF NF-Instance */ - self.nrf_instance = ogs_sbi_nf_instance_add(); - ogs_assert(self.nrf_instance); - ogs_sbi_nf_instance_set_type(self.nrf_instance, OpenAPI_nf_type_NRF); + if (nf_type != OpenAPI_nf_type_NRF) { + self.nrf_instance = ogs_sbi_nf_instance_add(); + ogs_assert(self.nrf_instance); + ogs_sbi_nf_instance_set_type(self.nrf_instance, OpenAPI_nf_type_NRF); + } /* Add SCP NF-Instance */ self.scp_instance = ogs_sbi_nf_instance_add(); @@ -1409,16 +1414,13 @@ return NULL; } -void ogs_sbi_nf_instance_build_default( - ogs_sbi_nf_instance_t *nf_instance, OpenAPI_nf_type_e nf_type) +void ogs_sbi_nf_instance_build_default(ogs_sbi_nf_instance_t *nf_instance) { ogs_sbi_server_t *server = NULL; char *hostname = NULL; ogs_assert(nf_instance); - ogs_assert(nf_type); - ogs_sbi_nf_instance_set_type(nf_instance, nf_type); ogs_sbi_nf_instance_set_status(nf_instance, OpenAPI_nf_status_REGISTERED); hostname = NULL; @@ -1685,6 +1687,9 @@ ogs_assert(target_nf_type); ogs_assert(requester_nf_type); + if (NF_INSTANCE_EXCLUDED_FROM_DISCOVERY(nf_instance)) + return false; + if (!OGS_FSM_CHECK(&nf_instance->sm, ogs_sbi_nf_state_registered)) return false;
View file
open5gs_2.6.0.3.610b9.tar.xz/lib/sbi/context.h -> open5gs_2.6.0.4.b7386.tar.xz/lib/sbi/context.h
Changed
@@ -109,6 +109,21 @@ ogs_timer_t *t_no_heartbeat; /* check heartbeat */ ogs_timer_t *t_validity; /* check validation */ + /* + * Issues #2034 + * + * Other NF instances are obtained through NRF + * or created directly through configuration files. + * + * Other NFs created by the config file should not be passed + * through NRF discovery or anything like that. + * + * Since self-created NF Instances do not have an ID, + * they are implemented to exclude them from NRF Discovery. + */ +#define NF_INSTANCE_EXCLUDED_FROM_DISCOVERY(__nFInstance) \ + (!(__nFInstance) || !((__nFInstance)->id)) + #define NF_INSTANCE_ID(__nFInstance) \ ((__nFInstance) ? ((__nFInstance)->id) : NULL) #define NF_INSTANCE_ID_IS_SELF(_iD) \ @@ -329,7 +344,7 @@ }; } ogs_sbi_nf_info_t; -void ogs_sbi_context_init(void); +void ogs_sbi_context_init(OpenAPI_nf_type_e nf_type); void ogs_sbi_context_final(void); ogs_sbi_context_t *ogs_sbi_self(void); int ogs_sbi_context_parse_config( @@ -385,8 +400,7 @@ ogs_sbi_nf_info_t *ogs_sbi_nf_info_find( ogs_list_t *list, OpenAPI_nf_type_e nf_type); -void ogs_sbi_nf_instance_build_default( - ogs_sbi_nf_instance_t *nf_instance, OpenAPI_nf_type_e nf_type); +void ogs_sbi_nf_instance_build_default(ogs_sbi_nf_instance_t *nf_instance); ogs_sbi_nf_service_t *ogs_sbi_nf_service_build_default( ogs_sbi_nf_instance_t *nf_instance, const char *name);
View file
open5gs_2.6.0.3.610b9.tar.xz/lib/sbi/path.c -> open5gs_2.6.0.4.b7386.tar.xz/lib/sbi/path.c
Changed
@@ -339,15 +339,7 @@ discovery_option = xact->discovery_option; /* NRF NF-Instance */ - nf_instance = sbi_object->nf_type_arrayOpenAPI_nf_type_NRF.nf_instance; - if (!nf_instance) { - nf_instance = ogs_sbi_nf_instance_find_by_discovery_param( - OpenAPI_nf_type_NRF, requester_nf_type, NULL); - if (nf_instance) - OGS_SBI_SETUP_NF_INSTANCE( - sbi_object->nf_type_arrayOpenAPI_nf_type_NRF, nf_instance); - } - + nf_instance = ogs_sbi_self()->nrf_instance; if (nf_instance) { bool rc; ogs_sbi_client_t *client = NULL;
View file
open5gs_2.6.0.3.610b9.tar.xz/src/amf/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/amf/init.c
Changed
@@ -31,7 +31,7 @@ amf_metrics_init(); - ogs_sbi_context_init(); + ogs_sbi_context_init(OpenAPI_nf_type_AMF); amf_context_init(); rv = ogs_sbi_context_parse_config("amf", "nrf", "scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/src/amf/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/amf/sbi-path.c
Changed
@@ -33,7 +33,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_AMF); + ogs_sbi_nf_instance_build_default(nf_instance); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SMF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SCP);
View file
open5gs_2.6.0.3.610b9.tar.xz/src/ausf/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/ausf/init.c
Changed
@@ -27,8 +27,7 @@ { int rv; - ogs_sbi_context_init(); - + ogs_sbi_context_init(OpenAPI_nf_type_AUSF); ausf_context_init(); rv = ogs_sbi_context_parse_config("ausf", "nrf", "scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/src/ausf/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/ausf/sbi-path.c
Changed
@@ -30,7 +30,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_AUSF); + ogs_sbi_nf_instance_build_default(nf_instance); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_AMF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SCP);
View file
open5gs_2.6.0.3.610b9.tar.xz/src/bsf/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/bsf/init.c
Changed
@@ -29,8 +29,7 @@ { int rv; - ogs_sbi_context_init(); - + ogs_sbi_context_init(OpenAPI_nf_type_BSF); bsf_context_init(); rv = ogs_sbi_context_parse_config("bsf", "nrf", "scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/src/bsf/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/bsf/sbi-path.c
Changed
@@ -30,7 +30,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_BSF); + ogs_sbi_nf_instance_build_default(nf_instance); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_PCF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_AF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SCP);
View file
open5gs_2.6.0.3.610b9.tar.xz/src/nrf/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/nrf/init.c
Changed
@@ -27,8 +27,7 @@ { int rv; - ogs_sbi_context_init(); - + ogs_sbi_context_init(OpenAPI_nf_type_NRF); nrf_context_init(); rv = ogs_sbi_context_parse_config("nrf", NULL, "scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/src/nrf/nnrf-handler.c -> open5gs_2.6.0.4.b7386.tar.xz/src/nrf/nnrf-handler.c
Changed
@@ -353,6 +353,8 @@ i = 0; ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) { + if (NF_INSTANCE_EXCLUDED_FROM_DISCOVERY(nf_instance)) + continue; if (recvmsg->param.nf_type && recvmsg->param.nf_type != nf_instance->nf_type) @@ -499,6 +501,9 @@ i = 0; ogs_list_for_each(&ogs_sbi_self()->nf_instance_list, nf_instance) { + if (NF_INSTANCE_EXCLUDED_FROM_DISCOVERY(nf_instance)) + continue; + if (nf_instance->nf_type != recvmsg->param.target_nf_type) continue;
View file
open5gs_2.6.0.3.610b9.tar.xz/src/nrf/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/nrf/sbi-path.c
Changed
@@ -59,7 +59,7 @@ ogs_assert(nf_instance); /* Build NF instance information. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_NRF); + ogs_sbi_nf_instance_build_default(nf_instance); if (ogs_sbi_server_start_all(ogs_sbi_server_handler) != OGS_OK) return OGS_ERROR;
View file
open5gs_2.6.0.3.610b9.tar.xz/src/nssf/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/nssf/init.c
Changed
@@ -27,8 +27,7 @@ { int rv; - ogs_sbi_context_init(); - + ogs_sbi_context_init(OpenAPI_nf_type_NSSF); nssf_context_init(); rv = ogs_sbi_context_parse_config("nssf", "nrf", "scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/src/nssf/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/nssf/sbi-path.c
Changed
@@ -30,7 +30,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_NSSF); + ogs_sbi_nf_instance_build_default(nf_instance); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_AMF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SCP);
View file
open5gs_2.6.0.3.610b9.tar.xz/src/pcf/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/pcf/init.c
Changed
@@ -30,7 +30,7 @@ pcf_metrics_init(); - ogs_sbi_context_init(); + ogs_sbi_context_init(OpenAPI_nf_type_PCF); pcf_context_init(); rv = ogs_sbi_context_parse_config("pcf", "nrf", "scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/src/pcf/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/pcf/sbi-path.c
Changed
@@ -33,7 +33,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_PCF); + ogs_sbi_nf_instance_build_default(nf_instance); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_AMF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SMF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SCP);
View file
open5gs_2.6.0.3.610b9.tar.xz/src/scp/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/scp/init.c
Changed
@@ -29,8 +29,7 @@ { int rv; - ogs_sbi_context_init(); - + ogs_sbi_context_init(OpenAPI_nf_type_SCP); scp_context_init(); rv = ogs_sbi_context_parse_config("scp", "nrf", "next_scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/src/scp/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/scp/sbi-path.c
Changed
@@ -40,7 +40,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_SCP); + ogs_sbi_nf_instance_build_default(nf_instance); /* * If the SCP is running in Model D,
View file
open5gs_2.6.0.3.610b9.tar.xz/src/smf/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/smf/init.c
Changed
@@ -37,7 +37,7 @@ ogs_gtp_context_init(ogs_app()->pool.nf * OGS_MAX_NUM_OF_GTPU_RESOURCE); ogs_pfcp_context_init(); - ogs_sbi_context_init(); + ogs_sbi_context_init(OpenAPI_nf_type_SMF); smf_context_init();
View file
open5gs_2.6.0.3.610b9.tar.xz/src/smf/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/smf/sbi-path.c
Changed
@@ -41,7 +41,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_SMF); + ogs_sbi_nf_instance_build_default(nf_instance); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_AMF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SCP);
View file
open5gs_2.6.0.3.610b9.tar.xz/src/udm/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/udm/init.c
Changed
@@ -27,8 +27,7 @@ { int rv; - ogs_sbi_context_init(); - + ogs_sbi_context_init(OpenAPI_nf_type_UDM); udm_context_init(); rv = ogs_sbi_context_parse_config("udm", "nrf", "scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/src/udm/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/udm/sbi-path.c
Changed
@@ -30,7 +30,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_UDM); + ogs_sbi_nf_instance_build_default(nf_instance); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_AMF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SMF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_AUSF);
View file
open5gs_2.6.0.3.610b9.tar.xz/src/udr/init.c -> open5gs_2.6.0.4.b7386.tar.xz/src/udr/init.c
Changed
@@ -27,8 +27,7 @@ { int rv; - ogs_sbi_context_init(); - + ogs_sbi_context_init(OpenAPI_nf_type_UDR); udr_context_init(); rv = ogs_sbi_context_parse_config("udr", "nrf", "scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/src/udr/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/src/udr/sbi-path.c
Changed
@@ -30,7 +30,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_UDR); + ogs_sbi_nf_instance_build_default(nf_instance); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_PCF); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_UDM); ogs_sbi_nf_instance_add_allowed_nf_type(nf_instance, OpenAPI_nf_type_SCP);
View file
open5gs_2.6.0.3.610b9.tar.xz/tests/af/init.c -> open5gs_2.6.0.4.b7386.tar.xz/tests/af/init.c
Changed
@@ -29,8 +29,7 @@ { int rv; - ogs_sbi_context_init(); - + ogs_sbi_context_init(OpenAPI_nf_type_AF); af_context_init(); rv = ogs_sbi_context_parse_config("af", "nrf", "scp");
View file
open5gs_2.6.0.3.610b9.tar.xz/tests/af/sbi-path.c -> open5gs_2.6.0.4.b7386.tar.xz/tests/af/sbi-path.c
Changed
@@ -29,7 +29,7 @@ ogs_sbi_nf_fsm_init(nf_instance); /* Build NF instance information. It will be transmitted to NRF. */ - ogs_sbi_nf_instance_build_default(nf_instance, OpenAPI_nf_type_AF); + ogs_sbi_nf_instance_build_default(nf_instance); /* Initialize NRF NF Instance */ nf_instance = ogs_sbi_self()->nrf_instance;
View file
open5gs_2.6.0.3.610b9.tar.xz/tests/registration/abts-main.c -> open5gs_2.6.0.4.b7386.tar.xz/tests/registration/abts-main.c
Changed
@@ -76,7 +76,7 @@ test_5gc_init(); - ogs_sbi_context_init(); + ogs_sbi_context_init(OpenAPI_nf_type_AMF); ogs_assert(ogs_sbi_context_parse_config(NULL, "nrf", "scp") == OGS_OK); rv = app_initialize(argv);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.