diff options
Diffstat (limited to 'monitor/packet.c')
-rw-r--r-- | monitor/packet.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/monitor/packet.c b/monitor/packet.c index a445bd70..356e0a30 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -41,6 +41,7 @@ #include <bluetooth/hci_lib.h> #include "control.h" +#include "btsnoop.h" #include "packet.h" static unsigned long filter_mask = 0; @@ -570,6 +571,8 @@ void packet_hci_command(struct timeval *tv, uint16_t index, uint16_t ogf = cmd_opcode_ogf(opcode); uint16_t ocf = cmd_opcode_ocf(opcode); + btsnoop_write(tv, index, 0x02, data, size); + print_header(tv, index); if (size < HCI_COMMAND_HDR_SIZE) { @@ -591,6 +594,8 @@ void packet_hci_event(struct timeval *tv, uint16_t index, { const hci_event_hdr *hdr = data; + btsnoop_write(tv, index, 0x03, data, size); + print_header(tv, index); if (size < HCI_EVENT_HDR_SIZE) { @@ -615,6 +620,8 @@ void packet_hci_acldata(struct timeval *tv, uint16_t index, bool in, uint16_t dlen = btohs(hdr->dlen); uint8_t flags = acl_flags(handle); + btsnoop_write(tv, index, in ? 0x01 : 0x00, data, size); + print_header(tv, index); if (size < HCI_ACL_HDR_SIZE) { |