From 1aa2798919f7d517cebf6d211e78e9271b2ee07f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 12 Apr 2010 12:17:09 +0200 Subject: [statistics] Provide basic statistics for the NAT Count number of SCCP connections, number of BSC reconnects, number of calls. For most of them we have a per BSC and a global count. Right now all structs using the counters survive until the end of the application so we do not need to free them. --- openbsc/src/nat/bsc_sccp.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/nat/bsc_sccp.c') diff --git a/openbsc/src/nat/bsc_sccp.c b/openbsc/src/nat/bsc_sccp.c index e76d52268..ff98b1b6c 100644 --- a/openbsc/src/nat/bsc_sccp.c +++ b/openbsc/src/nat/bsc_sccp.c @@ -100,6 +100,8 @@ int create_sccp_src_ref(struct bsc_connection *bsc, struct msgb *msg, struct bsc } llist_add(&conn->list_entry, &bsc->nat->sccp_connections); + counter_inc(bsc->cfg->stats.sccp.conn); + counter_inc(bsc->cfg->nat->stats.sccp.conn); LOGP(DNAT, LOGL_DEBUG, "Created 0x%x <-> 0x%x mapping for con %p\n", sccp_src_ref_to_int(&conn->real_ref), -- cgit v1.2.3