diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2005-11-29 07:22:38 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-17 23:52:55 +0100 |
commit | a1816b7953927bd37fa16d2973c06dccfda6f89a (patch) | |
tree | eccaa801bde3bb991773206820568609034c5518 /tools/hcidump.c | |
parent | c79ba4784f96183711e4804b49feb70b27262772 (diff) | |
download | bluez-a1816b7953927bd37fa16d2973c06dccfda6f89a.tar.gz |
hcidump: Add option to disable vendor commands and events
Diffstat (limited to 'tools/hcidump.c')
-rw-r--r-- | tools/hcidump.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/hcidump.c b/tools/hcidump.c index f6b1f403b..ac5c2ba9a 100644 --- a/tools/hcidump.c +++ b/tools/hcidump.c @@ -647,6 +647,7 @@ static void usage(void) " -A, --audio=file Extract SCO audio data\n" " -B, --btsnoop Use BTSnoop file format\n" " -V, --verbose Verbose decoding\n" + " -Y, --novendor No vendor commands or events\n" " -h, --help Give this help list\n" " --usage Give a short usage message\n" ); @@ -672,6 +673,8 @@ static struct option main_options[] = { { "audio", 1, 0, 'A' }, { "btsnoop", 0, 0, 'B' }, { "verbose", 0, 0, 'V' }, + { "novendor", 0, 0, 'Y' }, + { "nopermcheck", 0, 0, 'Z' }, { "help", 0, 0, 'h' }, { 0 } }; @@ -684,7 +687,7 @@ int main(int argc, char *argv[]) printf("HCI sniffer - Bluetooth packet analyzer ver %s\n", VERSION); - while ((opt=getopt_long(argc, argv, "i:l:p:m:w:r:s:n:taxXRC:H:O:A:BVZh", main_options, NULL)) != -1) { + while ((opt=getopt_long(argc, argv, "i:l:p:m:w:r:s:n:taxXRC:H:O:A:BVYZh", main_options, NULL)) != -1) { switch(opt) { case 'i': if (strcasecmp(optarg, "none") && strcasecmp(optarg, "system")) @@ -785,6 +788,10 @@ int main(int argc, char *argv[]) flags |= DUMP_VERBOSE; break; + case 'Y': + flags |= DUMP_NOVENDOR; + break; + case 'Z': permcheck = 0; break; |