aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/capture_opts.c b/capture_opts.c
index cc5bf10ef9..e9a3a2327d 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -114,6 +114,7 @@ capture_opts_init(capture_options *capture_opts)
capture_opts->autostop_duration = 60; /* 1 min */
capture_opts->output_to_pipe = FALSE;
+ capture_opts->capture_child = FALSE;
}
@@ -488,6 +489,11 @@ capture_opts_add_iface_opt(capture_options *capture_opts, const char *optarg_str
interface_opts.console_display_name = g_strdup(if_info->name);
}
free_interface_list(if_list);
+ } else if (capture_opts->capture_child) {
+ /* In Wireshark capture child mode, thus proper device name is supplied. */
+ /* No need for trying to match it for friendly names. */
+ interface_opts.name = g_strdup(optarg_str_p);
+ interface_opts.console_display_name = g_strdup(optarg_str_p);
} else {
/*
* Retrieve the interface list so that we can search for the