aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-04-12 12:35:02 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-04-13 09:47:22 +0200
commita094108f846a0e827a7eca63ce4992999a05ff2c (patch)
tree83f53f93ab99ba9b2fb17a56e63e85fd0b1897f3
parent61e73eec3f7eeb6bbb76517427fae07fce098304 (diff)
[statistics] Count the times we lost the connection to the MSC.
-rw-r--r--openbsc/src/nat/bsc_nat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index e679a9185..65e491dc2 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -334,6 +334,8 @@ static void msc_connection_was_lost(struct bsc_msc_connection *con)
{
struct bsc_connection *bsc, *tmp;
+ counter_inc(nat->stats.msc.reconn);
+
LOGP(DMSC, LOGL_ERROR, "Closing all connections downstream.\n");
llist_for_each_entry_safe(bsc, tmp, &nat->bsc_connections, list_entry)
remove_bsc_connection(bsc);