aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-pcap/osmo_pcap_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmo-pcap/osmo_pcap_client.h')
-rw-r--r--include/osmo-pcap/osmo_pcap_client.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h
index 90cd5ad..ee81e50 100644
--- a/include/osmo-pcap/osmo_pcap_client.h
+++ b/include/osmo-pcap/osmo_pcap_client.h
@@ -38,6 +38,9 @@ enum {
CLIENT_CTR_QERR,
CLIENT_CTR_PERR,
CLIENT_CTR_WERR,
+ CLIENT_CTR_P_RECV,
+ CLIENT_CTR_P_DROP,
+ CLIENT_CTR_P_IFDROP,
};
struct osmo_pcap_client {
@@ -45,6 +48,11 @@ struct osmo_pcap_client {
pcap_t *handle;
char errbuf[PCAP_ERRBUF_SIZE];
+ u_int last_ps_recv;
+ u_int last_ps_drop;
+ u_int last_ps_ifdrop;
+ struct osmo_timer_list pcap_stat_timer;
+
struct bpf_program bpf;
char *filter_string;
int filter_itself;