[statistics] Count the times we lost the connection to the MSC.

This commit is contained in:
Holger Hans Peter Freyther 2010-04-12 12:35:02 +02:00
parent bcfebb2c1d
commit a4ed81c8d9
1 changed files with 2 additions and 0 deletions

View File

@ -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);