From 5f94671f31c040f7cb78e56ac2524e84f703769c Mon Sep 17 00:00:00 2001 From: Vadim Kochan Date: Mon, 24 Aug 2015 21:37:03 +0300 Subject: netsniff-ng: Show total rx stats for multi pcap mode Allow to collect rx stats for multiple pcap mode, by storing them in separated variables before switch to the next pcap file. It allows to have the one approach when dump for single or multiple pcap(s) mode. Signed-off-by: Vadim Kochan Signed-off-by: Tobias Klauser --- ring_rx.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ring_rx.h') diff --git a/ring_rx.h b/ring_rx.h index 1f33018..67ddc03 100644 --- a/ring_rx.h +++ b/ring_rx.h @@ -15,7 +15,7 @@ extern void ring_rx_setup(struct ring *ring, int sock, size_t size, int ifindex, struct pollfd *poll, bool v3, bool jumbo_support, bool verbose, uint32_t fanout_group, uint32_t fanout_type); extern void destroy_rx_ring(int sock, struct ring *ring); -extern void sock_rx_net_stats(int sock, unsigned long seen); +extern int get_rx_net_stats(int sock, uint64_t *packets, uint64_t *drops, bool v3); static inline int user_may_pull_from_rx(struct tpacket2_hdr *hdr) { -- cgit v1.2.3-54-g00ecf