Projects
osmocom:master
open5gs
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 122
View file
commit_43eb5f3d7f33e843da5f7dfed1f317990ca89603.txt
Deleted
View file
commit_596a2f1b5e692ce3c89ce2df64baded926d07ad7.txt
Added
View file
open5gs_2.4.9.254.43eb.dsc
Deleted
@@ -1,38 +0,0 @@ -Format: 3.0 (native) -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.4.9.254.43eb -Maintainer: Harald Welte <laforge@gnumonks.org> -Uploaders: Sukchan Lee <acetcom@gmail.com> -Homepage: https://open5gs.org -Standards-Version: 4.3.0 -Vcs-Browser: https://github.com/open5gs/open5gs -Vcs-Git: git://github.com/open5gs/open5gs -Build-Depends: debhelper (>= 11), git, pkg-config, meson (>= 0.43.0), cmake, flex, bison, libgnutls28-dev, libgcrypt-dev, libssl-dev, libidn11-dev, libmongoc-dev, libbson-dev, libsctp-dev, libyaml-dev, libmicrohttpd-dev, libcurl4-gnutls-dev, libnghttp2-dev, libtins-dev, libtalloc-dev -Package-List: - open5gs deb net optional arch=any - open5gs-amf deb net optional arch=any - open5gs-ausf deb net optional arch=any - open5gs-bsf deb net optional arch=any - open5gs-common deb net optional arch=any - open5gs-dbg deb net optional arch=any - open5gs-hss deb net optional arch=any - open5gs-mme deb net optional arch=any - open5gs-nrf deb net optional arch=any - open5gs-nssf deb net optional arch=any - open5gs-pcf deb net optional arch=any - open5gs-pcrf deb net optional arch=any - open5gs-scp deb net optional arch=any - open5gs-sgwc deb net optional arch=any - open5gs-sgwu deb net optional arch=any - open5gs-smf deb net optional arch=any - open5gs-udm deb net optional arch=any - open5gs-udr deb net optional arch=any - open5gs-upf deb net optional arch=any -Checksums-Sha1: - 04623167fe23cfec4cae25074c224c3b6f468cb3 13612908 open5gs_2.4.9.254.43eb.tar.xz -Checksums-Sha256: - 879e36f4d8206d83829e22be6f79da10f6ce9b30d4381e90a6793046e19ff7e7 13612908 open5gs_2.4.9.254.43eb.tar.xz -Files: - 5fec87cee81236d995eea32461265b9c 13612908 open5gs_2.4.9.254.43eb.tar.xz
View file
open5gs_2.4.9.256.596a2.dsc
Added
@@ -0,0 +1,38 @@ +Format: 3.0 (native) +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.4.9.256.596a2 +Maintainer: Harald Welte <laforge@gnumonks.org> +Uploaders: Sukchan Lee <acetcom@gmail.com> +Homepage: https://open5gs.org +Standards-Version: 4.3.0 +Vcs-Browser: https://github.com/open5gs/open5gs +Vcs-Git: git://github.com/open5gs/open5gs +Build-Depends: debhelper (>= 11), git, pkg-config, meson (>= 0.43.0), cmake, flex, bison, libgnutls28-dev, libgcrypt-dev, libssl-dev, libidn11-dev, libmongoc-dev, libbson-dev, libsctp-dev, libyaml-dev, libmicrohttpd-dev, libcurl4-gnutls-dev, libnghttp2-dev, libtins-dev, libtalloc-dev +Package-List: + open5gs deb net optional arch=any + open5gs-amf deb net optional arch=any + open5gs-ausf deb net optional arch=any + open5gs-bsf deb net optional arch=any + open5gs-common deb net optional arch=any + open5gs-dbg deb net optional arch=any + open5gs-hss deb net optional arch=any + open5gs-mme deb net optional arch=any + open5gs-nrf deb net optional arch=any + open5gs-nssf deb net optional arch=any + open5gs-pcf deb net optional arch=any + open5gs-pcrf deb net optional arch=any + open5gs-scp deb net optional arch=any + open5gs-sgwc deb net optional arch=any + open5gs-sgwu deb net optional arch=any + open5gs-smf deb net optional arch=any + open5gs-udm deb net optional arch=any + open5gs-udr deb net optional arch=any + open5gs-upf deb net optional arch=any +Checksums-Sha1: + 659fe024c03df7cd8bf3d1d46359213e87bb0391 13613524 open5gs_2.4.9.256.596a2.tar.xz +Checksums-Sha256: + 89c6f94bfe458a66efad2f5ee7cbd649d75dd04cba1a0c0bc0d18b71e739a1be 13613524 open5gs_2.4.9.256.596a2.tar.xz +Files: + 3338d53c601f7595aae90560d71bd614 13613524 open5gs_2.4.9.256.596a2.tar.xz
View file
open5gs_2.4.9.254.43eb.tar.xz/.tarball-version -> open5gs_2.4.9.256.596a2.tar.xz/.tarball-version
Changed
@@ -1 +1 @@ -2.4.9.254-43eb +2.4.9.256-596a2
View file
open5gs_2.4.9.254.43eb.tar.xz/debian/changelog -> open5gs_2.4.9.256.596a2.tar.xz/debian/changelog
Changed
@@ -1,8 +1,8 @@ -open5gs (2.4.9.254.43eb) unstable; urgency=medium +open5gs (2.4.9.256.596a2) unstable; urgency=medium * Automatically generated changelog entry for building the Osmocom master feed - -- Osmocom OBS scripts <info@osmocom.org> Tue, 24 Jan 2023 10:22:16 +0000 + -- Osmocom OBS scripts <info@osmocom.org> Tue, 24 Jan 2023 13:12:52 +0000 open5gs (2.5.6) unstable; urgency=medium
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/app/ogs-context.c -> open5gs_2.4.9.256.596a2.tar.xz/lib/app/ogs-context.c
Changed
@@ -425,10 +425,14 @@ const char *v = ogs_yaml_iter_value(&pool_iter); if (v) self.pool.defconfig.cluster_2048_pool = atoi(v); - } else if (!strcmp(pool_key, "16384")) { + } else if (!strcmp(pool_key, "8192")) { const char *v = ogs_yaml_iter_value(&pool_iter); if (v) - self.pool.defconfig.cluster_16384_pool = atoi(v); + self.pool.defconfig.cluster_8192_pool = atoi(v); + } else if (!strcmp(pool_key, "32768")) { + const char *v = ogs_yaml_iter_value(&pool_iter); + if (v) + self.pool.defconfig.cluster_32768_pool = atoi(v); } else if (!strcmp(pool_key, "big")) { const char *v = ogs_yaml_iter_value(&pool_iter); if (v)
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/core/ogs-macros.h -> open5gs_2.4.9.256.596a2.tar.xz/lib/core/ogs-macros.h
Changed
@@ -206,6 +206,10 @@ #define OGS_MAX_FILEPATH_LEN 256 #define OGS_MAX_IFNAME_LEN 32 +#define OGS_MAX_SDU_LEN 32768 /* Should Heap */ +#define OGS_HUGE_LEN 8192 /* Can Stack */ +#define OGS_MAX_PKT_LEN 2048 + #define OGS_FILE_LINE __FILE__ ":" OGS_STRINGIFY(__LINE__) #define ogs_uint64_to_uint32(x) ((x >= 0xffffffffUL) ? 0xffffffffU : x)
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/core/ogs-pkbuf.c -> open5gs_2.4.9.256.596a2.tar.xz/lib/core/ogs-pkbuf.c
Changed
@@ -28,7 +28,8 @@ #define OGS_CLUSTER_512_SIZE 512 #define OGS_CLUSTER_1024_SIZE 1024 #define OGS_CLUSTER_2048_SIZE 2048 -#define OGS_CLUSTER_16384_SIZE 16384 +#define OGS_CLUSTER_8192_SIZE 8192 +#define OGS_CLUSTER_32768_SIZE 32768 /* * @@ -48,7 +49,8 @@ typedef uint8_t ogs_cluster_512_tOGS_CLUSTER_512_SIZE; typedef uint8_t ogs_cluster_1024_tOGS_CLUSTER_1024_SIZE; typedef uint8_t ogs_cluster_2048_tOGS_CLUSTER_2048_SIZE; -typedef uint8_t ogs_cluster_16384_tOGS_CLUSTER_16384_SIZE; +typedef uint8_t ogs_cluster_8192_tOGS_CLUSTER_8192_SIZE; +typedef uint8_t ogs_cluster_32768_tOGS_CLUSTER_32768_SIZE; typedef uint8_t ogs_cluster_big_tOGS_CLUSTER_BIG_SIZE; OGS_STATIC_ASSERT(sizeof(ogs_cluster_128_t) % sizeof(void *) == 0); @@ -56,7 +58,8 @@ OGS_STATIC_ASSERT(sizeof(ogs_cluster_512_t) % sizeof(void *) == 0); OGS_STATIC_ASSERT(sizeof(ogs_cluster_1024_t) % sizeof(void *) == 0); OGS_STATIC_ASSERT(sizeof(ogs_cluster_2048_t) % sizeof(void *) == 0); -OGS_STATIC_ASSERT(sizeof(ogs_cluster_16384_t) % sizeof(void *) == 0); +OGS_STATIC_ASSERT(sizeof(ogs_cluster_8192_t) % sizeof(void *) == 0); +OGS_STATIC_ASSERT(sizeof(ogs_cluster_32768_t) % sizeof(void *) == 0); OGS_STATIC_ASSERT(sizeof(ogs_cluster_big_t) % sizeof(void *) == 0); typedef struct ogs_pkbuf_pool_s { @@ -68,7 +71,8 @@ OGS_POOL(cluster_512, ogs_cluster_512_t); OGS_POOL(cluster_1024, ogs_cluster_1024_t); OGS_POOL(cluster_2048, ogs_cluster_2048_t); - OGS_POOL(cluster_16384, ogs_cluster_16384_t); + OGS_POOL(cluster_8192, ogs_cluster_8192_t); + OGS_POOL(cluster_32768, ogs_cluster_32768_t); OGS_POOL(cluster_big, ogs_cluster_big_t); ogs_thread_mutex_t mutex; @@ -116,7 +120,8 @@ config->cluster_512_pool = 4096; config->cluster_1024_pool = 2048; config->cluster_2048_pool = 1024; - config->cluster_16384_pool = 512; + config->cluster_8192_pool = 256; + config->cluster_32768_pool = 64; config->cluster_big_pool = 8; #endif } @@ -151,8 +156,8 @@ tmp = config->cluster_128_pool + config->cluster_256_pool + config->cluster_512_pool + config->cluster_1024_pool + - config->cluster_2048_pool + config->cluster_16384_pool + - config->cluster_big_pool; + config->cluster_2048_pool + config->cluster_8192_pool + + config->cluster_32768_pool + config->cluster_big_pool; ogs_pool_init(&pool->pkbuf, tmp); ogs_pool_init(&pool->cluster, tmp); @@ -162,7 +167,8 @@ ogs_pool_init(&pool->cluster_512, config->cluster_512_pool); ogs_pool_init(&pool->cluster_1024, config->cluster_1024_pool); ogs_pool_init(&pool->cluster_2048, config->cluster_2048_pool); - ogs_pool_init(&pool->cluster_16384, config->cluster_16384_pool); + ogs_pool_init(&pool->cluster_8192, config->cluster_8192_pool); + ogs_pool_init(&pool->cluster_32768, config->cluster_32768_pool); ogs_pool_init(&pool->cluster_big, config->cluster_big_pool); #endif @@ -200,7 +206,8 @@ ogs_pool_final(&pool->cluster_512); ogs_pool_final(&pool->cluster_1024); ogs_pool_final(&pool->cluster_2048); - ogs_pool_final(&pool->cluster_16384); + ogs_pool_final(&pool->cluster_8192); + ogs_pool_final(&pool->cluster_32768); ogs_pool_final(&pool->cluster_big); ogs_thread_mutex_destroy(&pool->mutex); @@ -405,13 +412,20 @@ return NULL; } cluster->size = OGS_CLUSTER_2048_SIZE; - } else if (size <= OGS_CLUSTER_16384_SIZE) { - ogs_pool_alloc(&pool->cluster_16384, (ogs_cluster_16384_t**)&buffer); + } else if (size <= OGS_CLUSTER_8192_SIZE) { + ogs_pool_alloc(&pool->cluster_8192, (ogs_cluster_8192_t**)&buffer); if (!buffer) { ogs_error("ogs_pool_alloc() failed"); return NULL; } - cluster->size = OGS_CLUSTER_16384_SIZE; + cluster->size = OGS_CLUSTER_8192_SIZE; + } else if (size <= OGS_CLUSTER_32768_SIZE) { + ogs_pool_alloc(&pool->cluster_32768, (ogs_cluster_32768_t**)&buffer); + if (!buffer) { + ogs_error("ogs_pool_alloc() failed"); + return NULL; + } + cluster->size = OGS_CLUSTER_32768_SIZE; } else if (size <= OGS_CLUSTER_BIG_SIZE) { ogs_pool_alloc(&pool->cluster_big, (ogs_cluster_big_t**)&buffer); if (!buffer) { @@ -452,9 +466,13 @@ ogs_pool_free( &pool->cluster_2048, (ogs_cluster_2048_t*)cluster->buffer); break; - case OGS_CLUSTER_16384_SIZE: + case OGS_CLUSTER_8192_SIZE: + ogs_pool_free( + &pool->cluster_8192, (ogs_cluster_8192_t*)cluster->buffer); + break; + case OGS_CLUSTER_32768_SIZE: ogs_pool_free( - &pool->cluster_16384, (ogs_cluster_16384_t*)cluster->buffer); + &pool->cluster_32768, (ogs_cluster_32768_t*)cluster->buffer); break; case OGS_CLUSTER_BIG_SIZE: ogs_pool_free(&pool->cluster_big, (ogs_cluster_big_t*)cluster->buffer);
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/core/ogs-pkbuf.h -> open5gs_2.4.9.256.596a2.tar.xz/lib/core/ogs-pkbuf.h
Changed
@@ -68,7 +68,8 @@ int cluster_512_pool; int cluster_1024_pool; int cluster_2048_pool; - int cluster_16384_pool; + int cluster_8192_pool; + int cluster_32768_pool; int cluster_big_pool; } ogs_pkbuf_config_t;
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/core/ogs-strings.h -> open5gs_2.4.9.256.596a2.tar.xz/lib/core/ogs-strings.h
Changed
@@ -54,8 +54,6 @@ extern "C" { #endif -#define OGS_HUGE_LEN 16384 - #if defined(_WIN32) #define ogs_strtok_r strtok_s #define ogs_strcasecmp _stricmp
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/diameter/common/init.c -> open5gs_2.4.9.256.596a2.tar.xz/lib/diameter/common/init.c
Changed
@@ -98,15 +98,19 @@ static void diam_log_func(int printlevel, const char *format, va_list ap) { - char bufferOGS_HUGE_LEN*2; + char *buffer = NULL; int ret = 0; + buffer = ogs_calloc(1, OGS_MAX_SDU_LEN); + ogs_assert(buffer); + #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wformat-nonliteral" - ret = ogs_vsnprintf(buffer, OGS_HUGE_LEN*2, format, ap); + ret = ogs_vsnprintf(buffer, OGS_MAX_SDU_LEN, format, ap); #pragma GCC diagnostic pop - if (ret < 0 || ret > OGS_HUGE_LEN*2) { + if (ret < 0 || ret > OGS_MAX_SDU_LEN) { ogs_error("vsnprintf() failedret=%d", ret); + ogs_free(buffer); return; } @@ -142,4 +146,6 @@ diam_log_printf(OGS_LOG_ERROR, "%d %s\n", printlevel, buffer); break; } + + ogs_free(buffer); }
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/proto/types.h -> open5gs_2.4.9.256.596a2.tar.xz/lib/proto/types.h
Changed
@@ -52,8 +52,6 @@ #define OGS_MAX_NUM_OF_GTPU_RESOURCE 4 #define OGS_MAX_NUM_OF_FRAMED_ROUTES_IN_PDI 8 -#define OGS_MAX_SDU_LEN OGS_HUGE_LEN -#define OGS_MAX_PKT_LEN 2048 #define OGS_PLMN_ID_LEN 3 #define OGS_MAX_PLMN_ID_BCD_LEN 6
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/sbi/client.c -> open5gs_2.4.9.256.596a2.tar.xz/lib/sbi/client.c
Changed
@@ -382,7 +382,7 @@ request->h.uri = uri; } - curl_easy_setopt(conn->easy, CURLOPT_BUFFERSIZE, OGS_MAX_SDU_LEN*2); + curl_easy_setopt(conn->easy, CURLOPT_BUFFERSIZE, OGS_MAX_SDU_LEN); curl_easy_setopt(conn->easy, CURLOPT_SSL_VERIFYPEER, 0); curl_easy_setopt(conn->easy, CURLOPT_SSL_VERIFYHOST, 0);
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/sbi/conv.c -> open5gs_2.4.9.256.596a2.tar.xz/lib/sbi/conv.c
Changed
@@ -540,6 +540,11 @@ unit = strrchr(str, ' '); bitrate = atoll(str); + if (!unit) { + ogs_error("No Unit %s", str); + return bitrate; + } + SWITCH(unit+1) CASE("Kbps") return bitrate * 1024;
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/sbi/message.c -> open5gs_2.4.9.256.596a2.tar.xz/lib/sbi/message.c
Changed
@@ -2239,7 +2239,7 @@ } else { offset = data->partdata->num_of_part.content_length; if ((data->partdata->num_of_part.content_length + length) > - OGS_HUGE_LEN) { + OGS_MAX_SDU_LEN) { ogs_error("Overflow length %d:%d", (int)data->partdata->num_of_part.content_length, (int)length); @@ -2414,12 +2414,12 @@ strcpy(boundary, "=-"); ogs_base64_encode_binary(boundary + 2, digest, 16); - p = http->content = ogs_calloc(1, OGS_HUGE_LEN); + p = http->content = ogs_calloc(1, OGS_MAX_SDU_LEN); if (!p) { ogs_error("ogs_calloc() failed"); return false; } - last = p + OGS_HUGE_LEN; + last = p + OGS_MAX_SDU_LEN; /* First boundary */ p = ogs_slprintf(p, last, "--%s\r\n", boundary);
View file
open5gs_2.4.9.254.43eb.tar.xz/lib/sbi/mhd-server.c -> open5gs_2.4.9.256.596a2.tar.xz/lib/sbi/mhd-server.c
Changed
@@ -543,7 +543,7 @@ } else { offset = request->http.content_length; if ((request->http.content_length + - *upload_data_size) > OGS_HUGE_LEN) { + *upload_data_size) > OGS_MAX_SDU_LEN) { ogs_error("Overflow : Content-Length%d, upload_data_size%d", (int)request->http.content_length, (int)*upload_data_size);
View file
open5gs_2.4.9.254.43eb.tar.xz/src/pcf/npcf-handler.c -> open5gs_2.4.9.256.596a2.tar.xz/src/pcf/npcf-handler.c
Changed
@@ -633,6 +633,13 @@ uint8_t qos_index = 0; ogs_media_component_t *media_component = &ims_data.media_componenti; + if (media_component->media_type == OpenAPI_media_type_NULL) { + strerror = ogs_msprintf("%s:%d Media-Type is Required", + pcf_ue->supi, sess->psi); + status = OGS_SBI_HTTP_STATUS_BAD_REQUEST; + goto cleanup; + } + switch(media_component->media_type) { case OpenAPI_media_type_AUDIO: qos_index = OGS_QOS_INDEX_1; @@ -644,9 +651,9 @@ qos_index = OGS_QOS_INDEX_5; break; default: - strerror = ogs_msprintf("%s:%d Not implemented : Media-Type:%d", + strerror = ogs_msprintf("%s:%d Unknown Media-Type %d", pcf_ue->supi, sess->psi, media_component->media_type); - status = OGS_SBI_HTTP_STATUS_INTERNAL_SERVER_ERROR; + status = OGS_SBI_HTTP_STATUS_BAD_REQUEST; goto cleanup; } @@ -1046,6 +1053,13 @@ uint8_t qos_index = 0; ogs_media_component_t *media_component = &ims_data.media_componenti; + if (media_component->media_type == OpenAPI_media_type_NULL) { + strerror = ogs_msprintf("%s:%d Media-Type is Required", + pcf_ue->supi, sess->psi); + status = OGS_SBI_HTTP_STATUS_BAD_REQUEST; + goto cleanup; + } + switch(media_component->media_type) { case OpenAPI_media_type_AUDIO: qos_index = OGS_QOS_INDEX_1; @@ -1057,9 +1071,9 @@ qos_index = OGS_QOS_INDEX_5; break; default: - strerror = ogs_msprintf("%s:%d Not implemented : Media-Type:%d", + strerror = ogs_msprintf("%s:%d Unknown Media-Type %d", pcf_ue->supi, sess->psi, media_component->media_type); - status = OGS_SBI_HTTP_STATUS_INTERNAL_SERVER_ERROR; + status = OGS_SBI_HTTP_STATUS_BAD_REQUEST; goto cleanup; }
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
.