diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2015-10-30 10:48:13 +0100 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2015-11-05 07:42:35 +0000 |
commit | 9c0d550a4afdafa31e76e0eecd14f8721e90e599 (patch) | |
tree | 2b30e52cd532f0a1b9e329ff474cb982244389bb /doc/extcap_example.py | |
parent | 51dcd59d2d89da2aae6dc5bd028c98e41575623f (diff) | |
download | wireshark-9c0d550a4afdafa31e76e0eecd14f8721e90e599.tar.gz |
extcap: Provide capture filter to extcap binary
Added the option --extcap-capture-filter to extcap to send the capture filter
from the main screen to the extcap binary.
Change-Id: I75f0d7dbec810551225377f9221053298488cdd5
Reviewed-on: https://code.wireshark.org/review/11423
Reviewed-by: Roland Knall <rknall@gmail.com>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'doc/extcap_example.py')
-rwxr-xr-x | doc/extcap_example.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/extcap_example.py b/doc/extcap_example.py index dcd7ebbd41..f49a129f66 100755 --- a/doc/extcap_example.py +++ b/doc/extcap_example.py @@ -208,7 +208,7 @@ def extcap_capture(interface, fifo, delay, verify, message, remote): #### def usage(): - print ( "Usage: %s <--extcap-interfaces | --extcap-dlts | --extcap-interface | --extcap-config | --capture | --fifo>" % sys.argv[0] ) + print ( "Usage: %s <--extcap-interfaces | --extcap-dlts | --extcap-interface | --extcap-config | --capture | --extcap-capture-filter | --fifo>" % sys.argv[0] ) if __name__ == '__main__': interface = "" @@ -228,6 +228,7 @@ if __name__ == '__main__': parser.add_argument("--extcap-interface", help="Provide the interface to capture from") parser.add_argument("--extcap-dlts", help="Provide a list of dlts for the given interface", action="store_true") parser.add_argument("--extcap-config", help="Provide a list of configurations for the given interface", action="store_true") + parser.add_argument("--extcap-capture-filter", help="Used together with capture to provide a capture filter") parser.add_argument("--fifo", help="Use together with capture to provide the fifo to dump data to") # Interface Arguments |