aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.h
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-03-24 23:36:29 -0700
committerGuy Harris <gharris@sonic.net>2021-03-25 07:34:37 +0000
commitd18e1f19e9de19a76647f4df46b83a60be47e785 (patch)
tree66a0b0730c59e3d16eeed4e4f76d74d1c659d3b3 /capture_opts.h
parentecad065809553e77b1c459e377068eba3e336d03 (diff)
Add dumpcap options to set the name and description for a capture source.
Add --ifname and --ifdescr to allow the name and description for an interface or pipe to be set; this overrides the specified name or reported description for an interface, and overrides the pipe path name and provides a description for a pipe. Provide those arguments when capturing from an extcap program. This is mainly for extcaps, so you have something more meaningful than some random path name as the interface name and something descriptive for the description.
Diffstat (limited to 'capture_opts.h')
-rw-r--r--capture_opts.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/capture_opts.h b/capture_opts.h
index 948b343d1f..825c3256fa 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -197,6 +197,7 @@ typedef struct interface_options_tag {
gchar *descr; /* a more user-friendly description of the interface; may be NULL if none */
gchar *hardware; /* description of the hardware */
gchar *display_name; /* the name displayed in the console and title bar */
+ gchar *ifname; /* if not null, name to use instead of the interface naem in IDBs */
gchar *cfilter;
gboolean has_snaplen;
int snaplen;