Change in osmo-gbproxy[master]: gbproxy: Use designated initializers for global_ctr_description

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

daniel gerrit-no-reply at lists.osmocom.org
Wed Sep 29 09:50:13 UTC 2021


daniel has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-gbproxy/+/25636 )


Change subject: gbproxy: Use designated initializers for global_ctr_description
......................................................................

gbproxy: Use designated initializers for global_ctr_description

Change-Id: Ifdb822c25236c19dd52a3ea1370c466d66f9d11d
---
M src/gb_proxy.c
1 file changed, 11 insertions(+), 12 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-gbproxy refs/changes/36/25636/1

diff --git a/src/gb_proxy.c b/src/gb_proxy.c
index 6efd326..90d587f 100644
--- a/src/gb_proxy.c
+++ b/src/gb_proxy.c
@@ -59,18 +59,17 @@
 extern void *tall_sgsn_ctx;
 
 static const struct rate_ctr_desc global_ctr_description[] = {
-	{ "inv-bvci",	    "Invalid BVC Identifier          " },
-	{ "inv-lai",	    "Invalid Location Area Identifier" },
-	{ "inv-rai",	    "Invalid Routing Area Identifier " },
-	{ "inv-nsei",	    "No BVC established for NSEI     " },
-	{ "proto-err:bss",  "BSSGP protocol error      (BSS )" },
-	{ "proto-err:sgsn", "BSSGP protocol error      (SGSN)" },
-	{ "not-supp:bss",   "Feature not supported     (BSS )" },
-	{ "not-supp:sgsn",  "Feature not supported     (SGSN)" },
-	{ "restart:sgsn",   "Restarted RESET procedure (SGSN)" },
-	{ "tx-err:sgsn",    "NS Transmission error     (SGSN)" },
-	{ "error",          "Other error                     " },
-	{ "mod-peer-err",   "Patch error: no peer            " },
+	[GBPROX_GLOB_CTR_INV_BVCI]		= { "inv-bvci",	    "Invalid BVC Identifier          " },
+	[GBPROX_GLOB_CTR_INV_LAI]		= { "inv-lai",	    "Invalid Location Area Identifier" },
+	[GBPROX_GLOB_CTR_INV_RAI]		= { "inv-rai",	    "Invalid Routing Area Identifier " },
+	[GBPROX_GLOB_CTR_INV_NSEI]		= { "inv-nsei",	    "No BVC established for NSEI     " },
+	[GBPROX_GLOB_CTR_PROTO_ERR_BSS]		= { "proto-err:bss",  "BSSGP protocol error      (BSS )" },
+	[GBPROX_GLOB_CTR_PROTO_ERR_SGSN]	= { "proto-err:sgsn", "BSSGP protocol error      (SGSN)" },
+	[GBPROX_GLOB_CTR_NOT_SUPPORTED_BSS]	= { "not-supp:bss",   "Feature not supported     (BSS )" },
+	[GBPROX_GLOB_CTR_NOT_SUPPORTED_SGSN]	= { "not-supp:sgsn",  "Feature not supported     (SGSN)" },
+	[GBPROX_GLOB_CTR_RESTART_RESET_SGSN]	= { "restart:sgsn",   "Restarted RESET procedure (SGSN)" },
+	[GBPROX_GLOB_CTR_TX_ERR_SGSN]		= { "tx-err:sgsn",    "NS Transmission error     (SGSN)" },
+	[GBPROX_GLOB_CTR_OTHER_ERR]		= { "error",          "Other error                     " },
 };
 
 static const struct rate_ctr_group_desc global_ctrg_desc = {

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-gbproxy/+/25636
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-gbproxy
Gerrit-Branch: master
Gerrit-Change-Id: Ifdb822c25236c19dd52a3ea1370c466d66f9d11d
Gerrit-Change-Number: 25636
Gerrit-PatchSet: 1
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210929/4afae157/attachment.htm>


More information about the gerrit-log mailing list