summaryrefslogtreecommitdiff
path: root/extcap/androiddump.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2015-10-30 10:48:13 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2015-11-05 07:42:35 +0000
commit9c0d550a4afdafa31e76e0eecd14f8721e90e599 (patch)
tree2b30e52cd532f0a1b9e329ff474cb982244389bb /extcap/androiddump.c
parent51dcd59d2d89da2aae6dc5bd028c98e41575623f (diff)
downloadwireshark-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 'extcap/androiddump.c')
-rw-r--r--extcap/androiddump.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/extcap/androiddump.c b/extcap/androiddump.c
index 6d3736cadf..ccce803869 100644
--- a/extcap/androiddump.c
+++ b/extcap/androiddump.c
@@ -143,6 +143,7 @@ enum {
OPT_INTERFACE,
OPT_CONFIG,
OPT_CAPTURE,
+ OPT_CAPTURE_FILTER,
OPT_FIFO,
OPT_CONFIG_ADB_SERVER_IP,
OPT_CONFIG_ADB_SERVER_TCP_PORT,
@@ -164,6 +165,7 @@ static struct option longopts[] = {
{ "extcap-interface", required_argument, NULL, OPT_INTERFACE},
{ "extcap-config", no_argument, NULL, OPT_CONFIG},
{ "capture", no_argument, NULL, OPT_CAPTURE},
+ { "extcap-capture-filter", required_argument, NULL, OPT_CAPTURE_FILTER},
{ "fifo", required_argument, NULL, OPT_FIFO},
/* Interfaces options */
{ "adb-server-ip", required_argument, NULL, OPT_CONFIG_ADB_SERVER_IP},
@@ -2560,6 +2562,9 @@ int main(int argc, char **argv) {
case OPT_CAPTURE:
do_capture = 1;
break;
+ case OPT_CAPTURE_FILTER:
+ /* currently unused */
+ break;
case OPT_FIFO:
fifo = strdup(optarg);
break;