aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-06-28 13:19:46 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-06-28 13:20:10 +0200
commit5bdb5f3f4679fe792c69888265c6dbc7ddea79a8 (patch)
tree876ae20cc6d1e1b70cda68228f39596919c26f80
parent653bee7d02a1a1c827b54d235b644fec6a6f4683 (diff)
filter: Replace '.' in counter names with ':'
The '.' is illegal character in counter names, as they are exported via CTRL interface, where '.' has a special meaning that cannot be used by strings comprising the variable name. Forward-port from openbsc.git 360284d4d797519faed33559b0ae746b6c17e68a. Change-Id: I57b78162701a6a101b5cbaf68aaea89d17a0f819
-rw-r--r--src/libfilter/bsc_msg_acc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libfilter/bsc_msg_acc.c b/src/libfilter/bsc_msg_acc.c
index 6b048874f..f0232eed7 100644
--- a/src/libfilter/bsc_msg_acc.c
+++ b/src/libfilter/bsc_msg_acc.c
@@ -29,12 +29,12 @@
#include <string.h>
static const struct rate_ctr_desc acc_list_ctr_description[] = {
- [ACC_LIST_LOCAL_FILTER] = { "access-list.local-filter", "Rejected by rule for local"},
- [ACC_LIST_GLOBAL_FILTER]= { "access-list.global-filter", "Rejected by rule for global"},
+ [ACC_LIST_LOCAL_FILTER] = { "access-list:local-filter", "Rejected by rule for local"},
+ [ACC_LIST_GLOBAL_FILTER]= { "access-list:global-filter", "Rejected by rule for global"},
};
static const struct rate_ctr_group_desc bsc_cfg_acc_list_desc = {
- .group_name_prefix = "nat.filter",
+ .group_name_prefix = "nat:filter",
.group_description = "NAT Access-List Statistics",
.num_ctr = ARRAY_SIZE(acc_list_ctr_description),
.ctr_desc = acc_list_ctr_description,