3 unstable releases
0.2.1 | Oct 3, 2023 |
---|---|
0.2.0 | Feb 10, 2023 |
0.1.0 | Jan 28, 2023 |
#2469 in Parser implementations
Used in btsnoop-extcap
14KB
171 lines
Btsnoop parser library for Rust
This library provides parsing capaibilities for btsnoop logs.
[dependencies]
btsnoop = "0.2.1"
Example
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);
}
File sources
btsnoop
can parse files generated by Android andbtmon
.- See the subproject
btsnoop-extcap
for a Wireshark extcap plugin that can stream the HCI logs live from a rooted Android device.
References
Dependencies
~3MB
~59K SLoC