From 7791c6f4ebc63850914abc692226cbeb1ffcbbc9 Mon Sep 17 00:00:00 2001 From: Hadriel Kaplan Date: Sat, 29 Aug 2015 19:14:13 -0400 Subject: pcapng: drop count is unknown for ISB without isb_if_drop option Bug: 11489 Change-Id: I38bcc2570c2efc461e4eb0edbff8ac2a7371c725 Reviewed-on: https://code.wireshark.org/review/10311 Petri-Dish: Hadriel Kaplan Tested-by: Petri Dish Buildbot Reviewed-by: Hadriel Kaplan --- summary.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'summary.c') diff --git a/summary.c b/summary.c index a84cc5e384..4bcfe16d14 100644 --- a/summary.c +++ b/summary.c @@ -181,11 +181,15 @@ summary_fill_in(capture_file *cf, summary_tally *st) iface.snap = wtapng_if_descr.snap_len; iface.has_snap = (iface.snap != 65535); iface.encap_type = wtapng_if_descr.wtap_encap; + iface.isb_comment = NULL; if(wtapng_if_descr.num_stat_entries == 1){ /* dumpcap only writes one ISB, only handle that for now */ if_stats = &g_array_index(wtapng_if_descr.interface_statistics, wtapng_if_stats_t, 0); - iface.drops_known = TRUE; - iface.drops = if_stats->isb_ifdrop; + if (if_stats->isb_ifdrop != G_GUINT64_CONSTANT(0xFFFFFFFFFFFFFFFF)) { + iface.drops_known = TRUE; + iface.drops = if_stats->isb_ifdrop; + } + /* XXX: this doesn't get used, and might need to be g_strdup'ed when it does */ iface.isb_comment = if_stats->opt_comment; } g_array_append_val(st->ifaces, iface); -- cgit v1.2.3