Commit Graph

104 Commits

Author SHA1 Message Date
Marcel Holtmann
54fc9c6876 hcidump: Remove TCP/IP connection handling
The hcidump utility is not useful as a logging daemon. So just disable the
server feature.
2012-12-23 08:05:31 -08:00
Marcel Holtmann
5ab3837731 hcidump: Fix includes for parser functions 2012-12-17 23:57:52 +01:00
Marcel Holtmann
aaf1164120 hcidump: Add support for reading new data link btsnoop files 2012-12-17 23:53:08 +01:00
Andrzej Kaczmarek
b16402549f hcidump: Add support for passing RFCOMM channel for SAP 2012-12-17 23:53:06 +01:00
Andrzej Kaczmarek
47e1e43d42 hcidump: Add basic SAP parsing 2012-12-17 23:53:06 +01:00
Peter Krystad
36aa01044c hcidump: Add parsing of A2MP signals 2012-12-17 23:53:06 +01:00
Luiz Augusto von Dentz
2de2281d1c hcidump: Add support for passing PSM as OBEX port
As OBEX can now use L2CAP as transport, -O/--obex option should accept
values other than RFCOMM channel, so values over 31 are now interpreted
as PSM.
2012-12-17 23:53:06 +01:00
Marcel Holtmann
dc2bd913f7 hcidump: Change includes to use local copy of Bluetooth library 2012-12-17 23:53:05 +01:00
Luiz Augusto von Dentz
3da0fb3a08 hcidump: Add basic parsing for SMP 2012-12-17 23:53:03 +01:00
Iain Hibbert
b8c3c64af3 hcidump: use correct size to copy 'direction' value
frm.in is stored as an uint8_t, so we cannot copy an int there
directly.  use an intermediate variable so that it also works
on big-endian systems.
2012-12-17 23:53:03 +01:00
Anderson Lizardo
0c78d8cb1f hcidump: Fix compilation against latest BlueZ
BlueZ now has ntoh64()/hton64() functions in bluetooth.h, therefore the
hcidump local copy is not necessary.
2012-12-17 23:53:02 +01:00
Andre Dieb Martins
6098c44af0 hcidump: Partial dump of ATT PDUs
Starts implementing dumping for ATT/GATT pdus.
2012-12-17 23:53:02 +01:00
Marcel Holtmann
c6b73e9b44 hcidump: Update copyright information 2012-12-17 23:53:01 +01:00
Anderson Lizardo
c8dc6d040f hcidump: Fix uninitialized struct sockaddr_hci memory passed to bind()
The bind() call in open_socket() was passing a struct sockaddr_hci to
bind() with two uninitialized bytes. This caused "Invalid argument" errors
on kernels which do strict checks of struct sockaddr_hci fields.
2012-12-17 23:53:01 +01:00
Marcel Holtmann
5d365c05fd hcidump: Fix unneeded single character option parsing 2012-12-17 23:53:01 +01:00
Marcel Holtmann
14e915fafd hcidump: Add command for displaying hcidump version 2012-12-17 23:53:01 +01:00
Marcel Holtmann
4f63d01dfd hcidump: Forgot to remove the --verbose option parsing 2012-12-17 23:53:01 +01:00
Marcel Holtmann
865cf4f1ed hcidump: Remove --verbose also from usage description 2012-12-17 23:53:01 +01:00
Marcel Holtmann
c89eff9be0 hcidump: Just default to verbose parsing and remove the option 2012-12-17 23:53:01 +01:00
Marcel Holtmann
34c693bb16 hcidump: Make BT-Snoop format the default file format 2012-12-17 23:53:00 +01:00
Marcel Holtmann
1e54e8bd0b hcidump: Remove support for noappend option 2012-12-17 23:53:00 +01:00
Marcel Holtmann
8133ca747d hcidump: Update copyright information 2012-12-17 23:53:00 +01:00
Marcel Holtmann
836fcdf588 hcidump: Remove send and receive support for HCI streams 2012-12-17 23:53:00 +01:00
Marcel Holtmann
09318fdc99 hcidump: Fix some issues with strict-aliasing 2012-12-17 23:52:59 +01:00
Marcel Holtmann
4c031b07da hcidump: Fix unsigned versus signed integer comparison 2012-12-17 23:52:59 +01:00
Marcel Holtmann
67342e64c6 hcidump: Handle device disconnect properly 2012-12-17 23:52:59 +01:00
Marcel Holtmann
458951454a hcidump: Use broadcast address for discover socket 2012-12-17 23:52:59 +01:00
Marcel Holtmann
ebfc59f868 hcidump: Force TCP as protocol 2012-12-17 23:52:59 +01:00
Marcel Holtmann
36574489bf hcidump: Add simple discover protocol 2012-12-17 23:52:59 +01:00
Marcel Holtmann
d05b8eb591 hcidump: Fix daemon format setting 2012-12-17 23:52:58 +01:00
Marcel Holtmann
aa05beff8f hcidump: Fix client disconnect detection 2012-12-17 23:52:58 +01:00
Marcel Holtmann
b268efe526 hcidump: Improve daemon mode 2012-12-17 23:52:58 +01:00
Marcel Holtmann
1c1c72340d hcidump: Add simple daemon mode 2012-12-17 23:52:58 +01:00
Marcel Holtmann
5c1f9093b6 hcidump: Update copyright information 2012-12-17 23:52:58 +01:00
Marcel Holtmann
f90b754106 hcidump: Add MacOS X packet logger format 2012-12-17 23:52:57 +01:00
Marcel Holtmann
52241871a6 hcidump: Add IPv6 support 2012-12-17 23:52:57 +01:00
Marcel Holtmann
62a98dc28a hcidump: Add a noappend command line parameter 2012-12-17 23:52:56 +01:00
Marcel Holtmann
42ad78700e hcidump: Add PPP extraction support 2012-12-17 23:52:56 +01:00
Marcel Holtmann
8eb1ef5828 hcidump: Add skeleton for the PPP parser 2012-12-17 23:52:56 +01:00
Marcel Holtmann
9ad75ace77 hcidump: Update copyright information 2012-12-17 23:52:55 +01:00
Marcel Holtmann
7258285fe7 hcidump: Add skeleton for AVCTP parser 2012-12-17 23:52:55 +01:00
Marcel Holtmann
a1816b7953 hcidump: Add option to disable vendor commands and events 2012-12-17 23:52:55 +01:00
Marcel Holtmann
f6a3c30d3c hcidump: Big cleanup of CVS relics 2012-12-17 23:52:54 +01:00
Marcel Holtmann
07472b3039 hcidump: Add SCO audio extraction support 2012-12-17 23:52:53 +01:00
Marcel Holtmann
64dfc3163a hcidump: Also accept "system" device string 2012-12-17 23:52:52 +01:00
Marcel Holtmann
d52d19afe2 hcidump: Handle system events and commands 2012-12-17 23:52:52 +01:00
Marcel Holtmann
8bca3fbd74 hcidump: Allow selection of system device 2012-12-17 23:52:52 +01:00
Marcel Holtmann
bb5d8eed4c hcidump: Fix some GCC 4.0 warnings 2012-12-17 23:52:52 +01:00
Marcel Holtmann
59fa335e0e hcidump: Fix return value handling of recvmsg() 2012-12-17 23:52:52 +01:00
Marcel Holtmann
fbec79fb7d hcidump: Correct timestamp handling for btsnoop files 2012-12-17 23:52:51 +01:00