summaryrefslogtreecommitdiff
path: root/ring_rx.h
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-08-24 21:37:03 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-08-25 11:14:42 +0200
commit5f94671f31c040f7cb78e56ac2524e84f703769c (patch)
tree8134a0da6d94405449fdb223d11d97184e269a11 /ring_rx.h
parentd84a6b7139f3c6d0eb70615543cf368350000e5b (diff)
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 <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ring_rx.h')
-rw-r--r--ring_rx.h2
1 files changed, 1 insertions, 1 deletions
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)
{