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
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 @@
[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 = {