From c33ae9ef7343dfea9d0a369cb64e3df28793226b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 2 Mar 2004 20:31:22 +0000 Subject: [PATCH] hcidump: Add initial CAPI parser support --- tools/hcidump.1 | 43 ++++++++++++++++++++++++------------------- tools/hcidump.c | 1 + 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/tools/hcidump.1 b/tools/hcidump.1 index 051e764d9..26bd92acd 100644 --- a/tools/hcidump.1 +++ b/tools/hcidump.1 @@ -30,6 +30,20 @@ and if -r option is not set, data is read from the first available Bluetooth device. .TP +.BI -s " " "\fR,\fP \-\^\-snap-len=" "" +Sets max length of processed packets to +.IR len . +.TP +.BI -p " " "\fR,\fP \-\^\-psm=" "" +Sets default Protocol Service Multiplexer to +.IR psm . +.TP +.BI -w " " "\fR,\fP \-\^\-save-dump=" "" +Parse output is not printed to screen, instead data read from device is saved in file +.IR file . +The saved dump file can be subsequently parsed with option +.BR -r . +.TP .BI -r " " "\fR,\fP \-\^\-read-dump=" "" Data is not read from a Bluetooth device, but from file .IR file . @@ -38,11 +52,8 @@ file is crated with option .BR -w . .TP -.BI -w " " "\fR,\fP \-\^\-save-dump=" "" -Parse output is not printed to screen, instead data read from device is saved in file -.IR file . -The saved dump file can be subsequently parsed with option -.BR -r . +.BR -t ", " "\-\^\-ts" +Prepend a time stamp to every packet. .TP .BR -x ", " "\-\^\-hex" For every packet, not only is the packet type displayed, but also all data in hex. @@ -50,35 +61,29 @@ For every packet, not only is the packet type displayed, but also all data in he .BR -a ", " "\-\^\-ascii" For every packet, not only is the packet type displayed, but also all data in ASCII. .TP -.BI -s " " "\fR,\fP \-\^\-snap-len=" "" -Sets max length of processed packets to -.IR len . -.TP -.BI -p " " "\fR,\fP \-\^\-psm=" "" -Sets default Protocol Service Multiplexer to -.IR psm . -.TP -.BR -t ", " "\-\^\-ts" -Prepend a time stamp to every packet. -.TP .BR -R ", " "\-\^\-raw" Raw mode: do not display packet type, only data. +.TP +.BR -C ", " "\-\^\-cmtp" +Sets the PSM value for the CAPI Message Transport Protocol .SH FILTERS .B filter is a space-separated list of packet categories: available categories are .IR hci , -.IR l2cap , .IR sco , +.IR l2cap , .IR rfcomm , .IR sdp , .IR bnep , -.IR cmtp +.IR cmtp , +.IR hidp and -.IR hidp . +.IR capi . If filters are used, only packets belonging to the specified categories are dumped. By default, all packets are dumped. .SH AUTHORS Written by Maxim Krasnyansky +and Marcel Holtmann .PP man page by Fabrizio Gennari diff --git a/tools/hcidump.c b/tools/hcidump.c index 45522920a..ac076d366 100644 --- a/tools/hcidump.c +++ b/tools/hcidump.c @@ -249,6 +249,7 @@ static struct { { "bnep", FILT_BNEP }, { "cmtp", FILT_CMTP }, { "hidp", FILT_HIDP }, + { "capi", FILT_CAPI }, { 0 } }; -- 2.47.3