diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-12 12:35:02 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-13 09:47:22 +0200 |
commit | a094108f846a0e827a7eca63ce4992999a05ff2c (patch) | |
tree | 83f53f93ab99ba9b2fb17a56e63e85fd0b1897f3 /openbsc/src | |
parent | 61e73eec3f7eeb6bbb76517427fae07fce098304 (diff) |
[statistics] Count the times we lost the connection to the MSC.
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/nat/bsc_nat.c | 2 |
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); |