seladb / PcapPlusPlus

PcapPlusPlus is a multiplatform C++ library for capturing, parsing and crafting of network packets. It is designed to be efficient, powerful and easy to use. It provides C++ wrappers for the most popular packet processing engines such as libpcap, Npcap, WinPcap, DPDK, AF_XDP and PF_RING.
https://pcapplusplus.github.io/
The Unlicense
2.75k stars 674 forks source link

Bluetooth HCI packet trace support #1179

Open dhruvkakadiya opened 1 year ago

dhruvkakadiya commented 1 year ago

Hello,

I can't find documentation if this library supports capturing/parsing Bluetooth HCI packets, so it would be great to add support for the same if possible. If it supports that already, then can someone point me to the right direction?

Thank you!

seladb commented 1 year ago

Hi @dhruvkakadiya ! Bluetooth HCI is not currently supported in PcapPlusPlus. I'm not even sure what is the format of such packets... can you attached an example pcap file? Can you also share a link to the RFC or some info about the packet structure?

dhruvkakadiya commented 1 year ago

Thank you, @seladb for quick response!

Reference Links: Wireshark Bluetooth, RFC, Bluetooth specifications

seladb commented 1 year ago

Thank you @dhruvkakadiya ! From briefly going over some of these links, it looks like HCI is a suite of protocols, not just one. Would you be interested in implementing them (or some of them)?