From cfe3d2d0dae32c211df261fa3165e2b9b1df9816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20T=C3=BCxen?= Date: Fri, 13 May 2011 11:28:51 +0000 Subject: Get -L and -d working with multiple interface. Internally get some functions using the array of interface data. Improve output of -L by printing the interface name. svn path=/trunk/; revision=37120 --- capture_opts.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'capture_opts.c') diff --git a/capture_opts.c b/capture_opts.c index 2b2a945455..fa7b929de9 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -661,17 +661,17 @@ capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg_ } void -capture_opts_print_if_capabilities(if_capabilities_t *caps, +capture_opts_print_if_capabilities(if_capabilities_t *caps, char *name, gboolean monitor_mode) { GList *lt_entry; data_link_info_t *data_link_info; if (caps->can_set_rfmon) - fprintf_stderr("Data link types when %sin monitor mode (use option -y to set):\n", - monitor_mode ? "" : "not "); + fprintf_stderr("Data link types of interface %s when %sin monitor mode (use option -y to set):\n", + name, monitor_mode ? "" : "not "); else - fprintf_stderr("Data link types (use option -y to set):\n"); + fprintf_stderr("Data link types of interface %s (use option -y to set):\n", name); for (lt_entry = caps->data_link_types; lt_entry != NULL; lt_entry = g_list_next(lt_entry)) { data_link_info = (data_link_info_t *)lt_entry->data; -- cgit v1.2.1