summaryrefslogtreecommitdiff
path: root/extcap.h
diff options
context:
space:
mode:
authorRoland Knall <roland.knall@br-automation.com>2016-01-28 10:41:38 +0100
committerRoland Knall <rknall@gmail.com>2016-01-28 14:51:14 +0000
commit97a1a50e200a6c50e0014dde7e8ec932c30190a1 (patch)
treef7f49f88fd79da22f17d95d39f94b146c2e3b316 /extcap.h
parent08527e9b85d91f1d121bfa323b9c32780012a02c (diff)
downloadwireshark-97a1a50e200a6c50e0014dde7e8ec932c30190a1.tar.gz
extcap: Cleanup complex types and add save option
Cleanup handling of complex data types and use only glib defined datatypes while handling argument values. Add a save parameter, which (additionally) can set, that a parameter is not saved in a configuration file. Passwords are by default not saved, which may be overwritten using this parameter Change-Id: I67eff0f3286170f082d532e806a39511c40df647 Reviewed-on: https://code.wireshark.org/review/13573 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Roland Knall <rknall@gmail.com>
Diffstat (limited to 'extcap.h')
-rw-r--r--extcap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/extcap.h b/extcap.h
index 74fc0b3b6d..02c230014f 100644
--- a/extcap.h
+++ b/extcap.h
@@ -37,6 +37,10 @@
#ifdef HAVE_EXTCAP
+/* As boolean flags will be allowed any form of yes, true or any number != 0 (or starting with 0)
+ * The regex will be matched case-insensitive, so only the lower-case is defined here. */
+#define EXTCAP_BOOLEAN_REGEX "^.*([yt1-9])"
+
/* Prefix for the pipe interfaces */
#define EXTCAP_PIPE_PREFIX "wireshark_extcap"