aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo_client_main.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-08-19 20:27:35 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-08-19 20:28:21 +0200
commitfa5572e2afc01903b2e5dd260f475d1f73ded74a (patch)
tree30409e19fb936cef49a594eb8980c0c31fb05925 /src/osmo_client_main.c
parent99526a6ad07c02e40e0831fd952974c5b7446f31 (diff)
client: Use pcap_stats and export them as statistics
Attempt to write code that detects the wrap and is doing the right thing when it happens. Change-Id: I501ebc49d3e86b0605ec1fbe2f62aee3f362aa36
Diffstat (limited to 'src/osmo_client_main.c')
-rw-r--r--src/osmo_client_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo_client_main.c b/src/osmo_client_main.c
index 0b53939..f5ba41a 100644
--- a/src/osmo_client_main.c
+++ b/src/osmo_client_main.c
@@ -62,6 +62,9 @@ static const struct rate_ctr_desc pcap_client_ctr_desc[] = {
[CLIENT_CTR_QERR] = { "client.queue_err", "Can not queue data " },
[CLIENT_CTR_PERR] = { "client.pcap_err", "libpcap error " },
[CLIENT_CTR_WERR] = { "client.write_err", "Write error " },
+ [CLIENT_CTR_P_RECV] = { "pcap.recv", "PCAP received packets " },
+ [CLIENT_CTR_P_DROP] = { "pcap.drop", "PCAP dropped packets " },
+ [CLIENT_CTR_P_IFDROP] = { "pcap.ifdrop", "iface dropped packets " },
};
static const struct rate_ctr_group_desc pcap_client_ctr_group_desc = {