aboutsummaryrefslogtreecommitdiffstats
path: root/summary.c
diff options
context:
space:
mode:
Diffstat (limited to 'summary.c')
-rw-r--r--summary.c12
1 files changed, 12 insertions, 0 deletions
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