Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71eb4da4 authored by Bill Schilit's avatar Bill Schilit Committed by Automerger Merge Worker
Browse files

Merge "Allow toggling pcap logging on/off" am: aa8d3aed am: 1a1741d5 am:...

Merge "Allow toggling pcap logging on/off" am: aa8d3aed am: 1a1741d5 am: 1f2653c2 am: 5d6e79e9 am: b8ca4f06

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2151553



Change-Id: I1bb6c81d2f2d20d3e6a6fd3094c6bcb663fc3008
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7bd53f7b b8ca4f06
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -39,6 +39,9 @@ void HciSniffer::SetOutputStream(std::shared_ptr<std::ostream> outputStream) {
void HciSniffer::AppendRecord(PacketDirection packet_direction,
                              PacketType packet_type,
                              const std::vector<uint8_t>& packet) {
  if (output_ == nullptr) {
    return;
  }
  pcap::WriteRecordHeader(*output_, 4 + 1 + packet.size());

  // http://www.tcpdump.org/linktypes.html LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR