diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2011-06-27 00:09:03 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2011-06-27 00:09:03 +0000 |
commit | 421dafd2def6a7a3b4187c22c936f86ec80d32d8 (patch) | |
tree | bb643894194a390b834607109790faa403b74982 /summary.c | |
parent | d374df09c0c2baf86b1054c75f8e0d47822991df (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.
svn path=/trunk/; revision=37794
Diffstat (limited to 'summary.c')
-rw-r--r-- | summary.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |