From 2c1dcfed4f68fb5b37659fc8f85180504ae2f152 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 6 Apr 2019 18:35:00 -0700 Subject: The wtap from which we're reading to get statistics isn't a statistic itself. Move it to the capture_session structure from the info_data_t structure, and pass it as an argument to capture_info_new_packets(). Change-Id: I822392bbf48eeb27ba9e17b73775d2fc4349bc17 Reviewed-on: https://code.wireshark.org/review/32765 Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- capchild/capture_session.h | 1 + 1 file changed, 1 insertion(+) (limited to 'capchild/capture_session.h') diff --git a/capchild/capture_session.h b/capchild/capture_session.h index 3f113f5720..65a7d48fa0 100644 --- a/capchild/capture_session.h +++ b/capchild/capture_session.h @@ -52,6 +52,7 @@ typedef struct _capture_session { guint32 count; /**< Total number of frames captured */ capture_options *capture_opts; /**< options for this capture */ capture_file *cf; /**< handle to cfile */ + struct wtap *wtap; /**< current wtap file */ struct _info_data *cap_data_info; /**< stats for this capture */ } capture_session; -- cgit v1.2.3