aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/nat/bsc_nat_utils.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-25 17:58:22 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-25 17:58:22 +0800
commitee8849649b6854ebf32a132ccfec3df074a4cbaa (patch)
treedb3228b9126a3481d0dbbc92a5ab4714e8d178a8 /openbsc/src/nat/bsc_nat_utils.c
parent520c1f12efb6cf5f270704e679d8b8ab6582dc39 (diff)
nat: Keep track of how many connections we reject
Keep track of how many connections we reject due the IMSI filter itself or due not being able to parse the message.
Diffstat (limited to 'openbsc/src/nat/bsc_nat_utils.c')
-rw-r--r--openbsc/src/nat/bsc_nat_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat_utils.c b/openbsc/src/nat/bsc_nat_utils.c
index e7c892867..77deef424 100644
--- a/openbsc/src/nat/bsc_nat_utils.c
+++ b/openbsc/src/nat/bsc_nat_utils.c
@@ -47,6 +47,9 @@ static const struct rate_ctr_desc bsc_cfg_ctr_description[] = {
[BCFG_CTR_NET_RECONN] = { "net.reconnects", "Network reconnects "},
[BCFG_CTR_DROPPED_SCCP] = { "dropped.sccp", "Dropped SCCP connections."},
[BCFG_CTR_DROPPED_CALLS] = { "dropped.calls", "Dropped active calls. "},
+ [BCFG_CTR_REJECTED_CR] = { "rejected.cr", "Rejected CR due filter "},
+ [BCFG_CTR_REJECTED_MSG] = { "rejected.msg", "Rejected MSG due filter "},
+ [BCFG_CTR_ILL_PACKET] = { "rejected.ill", "Rejected due parse error "},
};
static const struct rate_ctr_group_desc bsc_cfg_ctrg_desc = {