diff options
author | Roland Knall <roland.knall@br-automation.com> | 2016-01-28 10:41:38 +0100 |
---|---|---|
committer | Roland Knall <rknall@gmail.com> | 2016-01-28 14:51:14 +0000 |
commit | 97a1a50e200a6c50e0014dde7e8ec932c30190a1 (patch) | |
tree | f7f49f88fd79da22f17d95d39f94b146c2e3b316 /doc | |
parent | 08527e9b85d91f1d121bfa323b9c32780012a02c (diff) |
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 'doc')
-rwxr-xr-x | doc/extcap_example.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/extcap_example.py b/doc/extcap_example.py index 39bb571075..571605837e 100755 --- a/doc/extcap_example.py +++ b/doc/extcap_example.py @@ -73,11 +73,12 @@ def extcap_config(interface): args = [] values = [] - args.append ( (0, '--delay', 'Time delay', 'Time delay between packages', 'integer', '{range=1,15}') ) + args.append ( (0, '--delay', 'Time delay', 'Time delay between packages', 'integer', '{range=1,15}{default=5}') ) args.append ( (1, '--message', 'Message', 'Package message content', 'string', '{required=true}') ) - args.append ( (2, '--verify', 'Verify', 'Verify package content', 'boolflag', '') ) + args.append ( (2, '--verify', 'Verify', 'Verify package content', 'boolflag', '{default=yes}') ) args.append ( (3, '--remote', 'Remote Channel', 'Remote Channel Selector', 'selector', '')) - args.append ( (4, '--fake_ip', 'Fake IP Address', 'Use this ip address as sender', 'string', '{validation=\\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b}')) + args.append ( (4, '--fake_ip', 'Fake IP Address', 'Use this ip address as sender', 'string', '{save=false}{validation=\\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b}')) + args.append ( (5, '--password', 'Password', 'Package message password', 'password', '') ) values.append ( (3, "if1", "Remote1", "true" ) ) values.append ( (3, "if2", "Remote2", "false" ) ) |