aboutsummaryrefslogtreecommitdiffstats
path: root/summary.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-15 23:54:05 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-15 23:54:05 +0000
commitd1128f64332ff4f9553e16a7343796d896f7a07e (patch)
tree41b8f92cdb618c7b05812bb7676b0be90a3a8765 /summary.c
parentc43b7b8b934a3eb6e864f697776603c89e1a6719 (diff)
For a capture file, keep an array of all encapsulation types seen.
Show all of them in the summary dialog; we will be using it in the future to figure out what capture file formats we can write to (just because a capture file format supports per-packet encapsulations, that doesn't mean that it supports *all possible* encapsulations). svn path=/trunk/; revision=43278
Diffstat (limited to 'summary.c')
-rw-r--r--summary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/summary.c b/summary.c
index b9ecb6760d..11bf20f467 100644
--- a/summary.c
+++ b/summary.c
@@ -149,7 +149,8 @@ summary_fill_in(capture_file *cf, summary_tally *st)
st->file_type = cf->cd_t;
st->iscompressed = cf->iscompressed;
st->is_tempfile = cf->is_tempfile;
- st->encap_type = cf->lnk_t;
+ st->file_encap_type = cf->lnk_t;
+ st->packet_encap_types = cf->linktypes;
st->has_snap = cf->has_snap;
st->snap = cf->snap;
st->elapsed_time = nstime_to_sec(&cf->elapsed_time);
@@ -197,7 +198,6 @@ summary_fill_in(capture_file *cf, summary_tally *st)
g_free(idb_info);
}
-
#ifdef HAVE_LIBPCAP
void
summary_fill_in_capture(capture_file *cf,capture_options *capture_opts, summary_tally *st)