diff options
author | Guy Harris <gharris@sonic.net> | 2021-03-24 23:36:29 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-03-25 07:34:37 +0000 |
commit | d18e1f19e9de19a76647f4df46b83a60be47e785 (patch) | |
tree | 66a0b0730c59e3d16eeed4e4f76d74d1c659d3b3 /capture_opts.h | |
parent | ecad065809553e77b1c459e377068eba3e336d03 (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.h | 1 |
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; |