From b5a2ba98be35a97398f54d9fbb54d4ae8b4a6a84 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Thu, 23 Feb 2012 21:29:13 +0000 Subject: Add SHB info to Summary svn path=/trunk/; revision=41167 --- summary.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'summary.c') diff --git a/summary.c b/summary.c index d988817556..4b051d757b 100644 --- a/summary.c +++ b/summary.c @@ -93,6 +93,7 @@ summary_fill_in(capture_file *cf, summary_tally *st) frame_data *first_frame, *cur_frame; guint32 framenum; + wtapng_section_t* shb_inf; st->start_time = 0; st->stop_time = 0; @@ -132,6 +133,16 @@ summary_fill_in(capture_file *cf, summary_tally *st) st->drops = cf->drops; 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->wth); + st->opt_comment = shb_inf->opt_comment; + st->shb_hardware = shb_inf->shb_hardware; + st->shb_os = shb_inf->shb_os; + st->shb_user_appl = shb_inf->shb_user_appl; + g_free(shb_inf); + st->ifaces = g_array_new(FALSE, FALSE, sizeof(iface_options)); } @@ -180,6 +191,7 @@ summary_fill_in_capture(capture_file *cf,capture_options *capture_opts, summary_ iface.linktype = wtapng_if_descr.link_type; g_array_append_val(st->ifaces, iface); } + g_free(idb_info); } } #endif -- cgit v1.2.3