aboutsummaryrefslogtreecommitdiffstats
path: root/extcap_parser.h
diff options
context:
space:
mode:
authorRafał Kuźnia <rafal.kuznia@protonmail.com>2019-11-02 20:03:14 +0100
committerAnders Broman <a.broman58@gmail.com>2019-12-10 08:49:31 +0000
commit9910d8c913d2a1874c7f98ef3bf3ad2921dd67e4 (patch)
treef1a807e9482303505d2dbb01e43d8cdfc015498e /extcap_parser.h
parent14e4759b562f615ecb8f32d3ceb46822be2e1f86 (diff)
extcap: Pass --extcap-version if extcap supports it
This change makes the --extcap-version argument to be passed to the extcap script, if it is supported. If the extcap fails with --extcap-version argument, it is treated as legacy and will not receive the additional argument in all subsequent runs. Change-Id: I279aa38d9f39ed85ccb84ba2c09dd93a0492ca51 Reviewed-on: https://code.wireshark.org/review/34914 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'extcap_parser.h')
-rw-r--r--extcap_parser.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/extcap_parser.h b/extcap_parser.h
index f188ae0ce5..75fd04a975 100644
--- a/extcap_parser.h
+++ b/extcap_parser.h
@@ -130,11 +130,12 @@ typedef struct _extcap_arg {
} extcap_arg;
typedef struct _extcap_interface {
- gchar * call;
- gchar * display;
- gchar * version;
- gchar * help;
- gchar * extcap_path;
+ gchar * call;
+ gchar * display;
+ gchar * version;
+ gchar * help;
+ gchar * extcap_path;
+ gboolean is_legacy;
extcap_sentence_type if_type;
} extcap_interface;