Crates.io | btsnoop |
lib.rs | btsnoop |
version | 0.2.1 |
source | src |
created_at | 2023-01-28 08:14:15.579502 |
updated_at | 2023-10-03 03:48:57.81044 |
description | This library provides parsing capabilities for btsnoop logs |
homepage | |
repository | https://github.com/mauricelam/btsnoop-rs/ |
max_upload_size | |
id | 770247 |
size | 28,134 |
This library provides parsing capaibilities for btsnoop logs.
[dependencies]
btsnoop = "0.2.1"
use btsnoop::parse_btsnoop_file;
let btsnoop_bytes: &[u8] = include_bytes!("btsnoop_hci.log");
let file: btsnoop::File = parse_btsnoop_file(btsnoop_bytes).unwrap();
for packet in file.packets {
println!("Packet={:x?}", packet.packet_data);
}
btsnoop
can parse files generated by Android and btmon
.btsnoop-extcap
for a Wireshark extcap plugin that can stream the HCI logs
live from a rooted Android device.