aboutsummaryrefslogtreecommitdiffstats
path: root/summary.c
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2011-07-15 20:45:28 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2011-07-15 20:45:28 +0000
commitb30c60d29fa69e41495ded9c897e983e202a00d4 (patch)
tree9106b97f1356c49618c6572807d7824914dcff8f /summary.c
parente62e533d2e9cce98d62fccafa2ef886d96d91bcf (diff)
Don't show interface info when loading a capture file.
svn path=/trunk/; revision=38051
Diffstat (limited to 'summary.c')
-rw-r--r--summary.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/summary.c b/summary.c
index 8f419f8321..21b91c29f6 100644
--- a/summary.c
+++ b/summary.c
@@ -122,6 +122,7 @@ summary_fill_in(capture_file *cf, summary_tally *st)
st->filename = cf->filename;
st->file_length = cf->f_datalen;
st->file_type = cf->cd_t;
+ st->is_tempfile = cf->is_tempfile;
st->encap_type = cf->lnk_t;
st->has_snap = cf->has_snap;
st->snap = cf->snap;
@@ -143,14 +144,14 @@ summary_fill_in_capture(capture_options *capture_opts, summary_tally *st)
interface_options interface_opts;
guint i;
- if (capture_opts->ifaces->len > 0) {
- while (st->ifaces->len > 0) {
- iface = g_array_index(st->ifaces, iface_options, 0);
- st->ifaces = g_array_remove_index(st->ifaces, 0);
- g_free(iface.name);
- g_free(iface.descr);
- g_free(iface.cfilter);
- }
+ while (st->ifaces->len > 0) {
+ iface = g_array_index(st->ifaces, iface_options, 0);
+ st->ifaces = g_array_remove_index(st->ifaces, 0);
+ g_free(iface.name);
+ g_free(iface.descr);
+ g_free(iface.cfilter);
+ }
+ if (st->is_tempfile) {
for (i = 0; i < capture_opts->ifaces->len; i++) {
interface_opts = g_array_index(capture_opts->ifaces, interface_options, i);
iface.cfilter = g_strdup(interface_opts.cfilter);
@@ -163,6 +164,6 @@ summary_fill_in_capture(capture_options *capture_opts, summary_tally *st)
iface.linktype = interface_opts.linktype;
g_array_append_val(st->ifaces, iface);
}
- }
+ }
}
#endif