Diff between 81e575a54320f997c894cbf4c9b92873b70d0165 and c33ae9ef7343dfea9d0a369cb64e3df28793226b

Changed Files

File Additions Deletions Status
tools/hcidump.1 +24 -19 modified
tools/hcidump.c +1 -0 modified

Full Patch

diff --git a/tools/hcidump.1 b/tools/hcidump.1
index 051e764..26bd92a 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 " <len>" "\fR,\fP \-\^\-snap-len=" "<len>"
+Sets max length of processed packets to
+.IR len .
+.TP
+.BI -p " <psm>" "\fR,\fP \-\^\-psm=" "<psm>"
+Sets default Protocol Service Multiplexer to
+.IR psm .
+.TP
+.BI -w " <file>" "\fR,\fP \-\^\-save-dump=" "<file>"
+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 " <file>" "\fR,\fP \-\^\-read-dump=" "<file>"
 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 " <file>" "\fR,\fP \-\^\-save-dump=" "<file>"
-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 " <len>" "\fR,\fP \-\^\-snap-len=" "<len>"
-Sets max length of processed packets to
-.IR len .
-.TP
-.BI -p " <psm>" "\fR,\fP \-\^\-psm=" "<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 <maxk@qualcomm.com>
+and Marcel Holtmann <marcel@holtmann.org>
 .PP
 man page by Fabrizio Gennari <fabrizio.gennari@philips.com>
diff --git a/tools/hcidump.c b/tools/hcidump.c
index 4552292..ac076d3 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 }
 };