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 /extcap.c | |
parent | 51dcd59d2d89da2aae6dc5bd028c98e41575623f (diff) | |
download | wireshark-9c0d550a4afdafa31e76e0eecd14f8721e90e599.tar.gz wireshark-9c0d550a4afdafa31e76e0eecd14f8721e90e599.tar.bz2 wireshark-9c0d550a4afdafa31e76e0eecd14f8721e90e599.zip |
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 'extcap.c')
-rw-r--r-- | extcap.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -583,6 +583,10 @@ extcaps_init_initerfaces(capture_options *capture_opts) add_arg(EXTCAP_ARGUMENT_RUN_CAPTURE); add_arg(EXTCAP_ARGUMENT_INTERFACE); add_arg(interface_opts.name); + if (interface_opts.cfilter) { + add_arg(EXTCAP_ARGUMENT_CAPTURE_FILTER); + add_arg(interface_opts.cfilter); + } add_arg(EXTCAP_ARGUMENT_RUN_PIPE); add_arg(interface_opts.extcap_fifo); if (interface_opts.extcap_args == NULL) |