From 1abeb277f5e6bd27fbaebfecc8184e37ba9d008a Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Thu, 8 May 2014 22:59:19 -0400 Subject: Refactor Wiretap Start of refactoring Wiretap and breaking structures down into "generally useful fields for dissection" and "capture specific". Since this in intended as a "base" for Wiretap and Filetap, the "wft" prefix is used for "common" functionality. The "architectural" changes can be found in cfile.h, wtap.h, wtap-int.h and (new file) wftap-int.h. Most of the other (painstaking) changes were really just the result of compiling those new architecture changes. bug:9607 Change-Id: Ife858a61760d7a8a03be073546c0e7e582cab2ae Reviewed-on: https://code.wireshark.org/review/1485 Reviewed-by: Michael Mann --- summary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'summary.c') diff --git a/summary.c b/summary.c index dee1808f5b..67c63ef4aa 100644 --- a/summary.c +++ b/summary.c @@ -156,7 +156,7 @@ summary_fill_in(capture_file *cf, summary_tally *st) st->dfilter = cf->dfilter; /* Get info from SHB */ - shb_inf = wtap_file_get_shb_info(cf->wth); + shb_inf = wtap_file_get_shb_info(cf->wfth); if(shb_inf == NULL){ st->opt_comment = NULL; st->shb_hardware = NULL; @@ -171,7 +171,7 @@ summary_fill_in(capture_file *cf, summary_tally *st) } st->ifaces = g_array_new(FALSE, FALSE, sizeof(iface_options)); - idb_info = wtap_file_get_idb_info(cf->wth); + idb_info = wtap_file_get_idb_info(cf->wfth); for (i = 0; i < idb_info->number_of_interfaces; i++) { wtapng_if_descr = g_array_index(idb_info->interface_data, wtapng_if_descr_t, i); iface.cfilter = g_strdup(wtapng_if_descr.if_filter_str); -- cgit v1.2.3