diff options
author | Harald Welte <laforge@osmocom.org> | 2021-11-14 20:32:56 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-11-15 18:05:01 +0100 |
commit | ff7404c742782c28f1b96f838f4f239c42d02c66 (patch) | |
tree | c30fff08eecbc404b6faf5b9952081008d9546ac /src/osmo_ss7_hmrt.c | |
parent | 5ad97995e95f8d082e1d550f55a234bb11194eec (diff) |
stp: Add basic RX/TX rate counters on AS and ASP level
This adds some very basic rx/px rate counters to the SS7 AS and ASP
OsmoSTP> show rate-counters
SIGTRAN Application Server 0 (as-rkm-1):
rx:msu:total: 86078 (1888/s 86078/m 0/h 0/d)
tx:msu:total: 0 (0/s 0/m 0/h 0/d)
SIGTRAN Application Server Process 0 (asp-dyn-0):
rx:packets:total: 86081 (1888/s 86081/m 0/h 0/d)
tx:packets:total: 5 (0/s 5/m 0/h 0/d)
Change-Id: Idb811ca81adfe47152d484f6b981e661dc569e15
Diffstat (limited to 'src/osmo_ss7_hmrt.c')
-rw-r--r-- | src/osmo_ss7_hmrt.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo_ss7_hmrt.c b/src/osmo_ss7_hmrt.c index 882d85d..f5fcd64 100644 --- a/src/osmo_ss7_hmrt.c +++ b/src/osmo_ss7_hmrt.c @@ -35,6 +35,7 @@ #include <osmocom/sigtran/protocol/m3ua.h> #include "xua_internal.h" +#include "ss7_internal.h" /* convert from M3UA message to MTP-TRANSFER.ind osmo_mtp_prim */ struct osmo_mtp_prim *m3ua_to_xfer_ind(struct xua_msg *xua) @@ -227,6 +228,8 @@ static int hmrt_message_for_routing(struct osmo_ss7_instance *inst, dpc, osmo_ss7_pointcode_print(inst, dpc), rt_name); } + rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TX_MSU_TOTAL); + switch (as->cfg.proto) { case OSMO_SS7_ASP_PROT_M3UA: DEBUGP(DLSS7, "rt->dest.as proto is M3UA for dpc=%u=%s\n", |