aboutsummaryrefslogtreecommitdiffstats
path: root/summary.c
diff options
context:
space:
mode:
authortuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-27 00:09:03 +0000
committertuexen <tuexen@f5534014-38df-0310-8fa8-9805f1628bb7>2011-06-27 00:09:03 +0000
commit9d78645e53343caa65978ac7d95525ee715f70bd (patch)
treebb643894194a390b834607109790faa403b74982 /summary.c
parent58316c299a25992d65b7cb598021c254c2cb3acc (diff)
Get rid of old non-interface specific settings which are now interface
specifc. This finalizes the change of the infrastructure. This patch is based on work by Irene Ruengeler. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37794 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'summary.c')
-rw-r--r--summary.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/summary.c b/summary.c
index 7686e04bbc..6e30bab551 100644
--- a/summary.c
+++ b/summary.c
@@ -139,11 +139,14 @@ summary_fill_in(capture_file *cf, summary_tally *st)
#ifdef HAVE_LIBPCAP
+/* FIXME: This needs additional functionality to support multiple interfaces */
void
summary_fill_in_capture(capture_options *capture_opts, summary_tally *st)
{
- st->cfilter = capture_opts->cfilter;
- st->iface = capture_opts->iface;
- st->iface_descr = get_iface_description(capture_opts);
+ if (capture_opts->ifaces->len > 0) {
+ st->cfilter = g_array_index(capture_opts->ifaces, interface_options, 0).cfilter;
+ st->iface = g_array_index(capture_opts->ifaces, interface_options, 0).name;
+ st->iface_descr = get_iface_description_for_interface(capture_opts, 0);
+ }
}
#endif