diff --git a/tools/hcidump.1 b/tools/hcidump.1
index a17dd23..9e87e8e 100644
--- a/tools/hcidump.1
+++ b/tools/hcidump.1
.TP
.BR -O ", " "\-\^\-obex"
Sets the RFCOMM channel value for the Object Exchange protocol
+.TP
+.BR -V ", " "\-\^\-verbose"
+Enables a more verbose decoding of every packet.
.SH FILTERS
.B
filter
diff --git a/tools/hcidump.c b/tools/hcidump.c
index ec35e70..6cb77c5 100644
--- a/tools/hcidump.c
+++ b/tools/hcidump.c
" -C, --cmtp=psm PSM for CMTP\n"
" -H, --hcrp=psm PSM for HCRP\n"
" -O, --obex=channel Channel for OBEX\n"
- " -?, --help Give this help list\n"
+ " -V, --verbose Verbose decoding\n"
+ " -h, --help Give this help list\n"
" --usage Give a short usage message\n"
);
}
{ "cmtp", 1, 0, 'C' },
{ "hcrp", 1, 0, 'H' },
{ "obex", 1, 0, 'O' },
+ { "verbose", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ 0 }
};
printf("HCI sniffer - Bluetooth packet analyzer ver %s\n", VERSION);
- while ((opt=getopt_long(argc, argv, "i:l:p:m:w:r:s:n:taxXRBC:H:O:h", main_options, NULL)) != -1) {
+ while ((opt=getopt_long(argc, argv, "i:l:p:m:w:r:s:n:taxXRBC:H:O:Vh", main_options, NULL)) != -1) {
switch(opt) {
case 'i':
device = atoi(optarg + 3);
set_proto(0, 0, atoi(optarg), SDP_UUID_OBEX);
break;
+ case 'V':
+ flags |= DUMP_VERBOSE;
+ break;
+
case 'h':
default:
usage();
diff --git a/tools/parser/parser.h b/tools/parser/parser.h
index f0d63b1..ae13017 100644
--- a/tools/parser/parser.h
+++ b/tools/parser/parser.h
#define DUMP_EXT 0x04
#define DUMP_RAW 0x08
#define DUMP_BPA 0x10
+#define DUMP_VERBOSE 0x40
#define DUMP_TSTAMP 0x80
#define DUMP_TYPE_MASK (DUMP_ASCII | DUMP_HEX | DUMP_EXT)