diff options
author | Michael Tüxen <tuexen@fh-muenster.de> | 2011-05-13 11:28:51 +0000 |
---|---|---|
committer | Michael Tüxen <tuexen@fh-muenster.de> | 2011-05-13 11:28:51 +0000 |
commit | cfe3d2d0dae32c211df261fa3165e2b9b1df9816 (patch) | |
tree | c1e4bcf96d3e8c61f4cee05ae7b9cfd8695ec28a /capture_opts.c | |
parent | a7c5d642d5e123b34143cf4ad623c7ced230f831 (diff) | |
download | wireshark-cfe3d2d0dae32c211df261fa3165e2b9b1df9816.tar.gz wireshark-cfe3d2d0dae32c211df261fa3165e2b9b1df9816.tar.bz2 wireshark-cfe3d2d0dae32c211df261fa3165e2b9b1df9816.zip |
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
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |