From d1128f64332ff4f9553e16a7343796d896f7a07e Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Fri, 15 Jun 2012 23:54:05 +0000 Subject: 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 --- summary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'summary.c') 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) -- cgit v1.2.3