1

I want to build a C++ application that stores the arrival time of ethernet frames in an SQLite database. I'd appreciate any advice on the best libraries or GitHub projects to use. I've already come across libtins.

  • Welcome to Software Recommendations! What's "best" is always subjective: one man's trash is another man's treasure. Better describe what would make this software fitting best for you – which then enables us to give fitting recommendations. See What is required for a question to contain "enough information"? for more hints. – Izzy Jan 4 '18 at 17:34
  • For instance, do you value accuracy of timestamp over perhaps losing a few packets? And, could you use Wireshark to capture, and export the logs? It already has a few decades of industry standard usage, and has some well written code to do exactly this (plus lots more). If you must code your own, then you can get the source code and modify it accordingly. – Mawg Jan 5 '18 at 11:59
0

I'm not sure what you mean by "best libraries to use" but I can also recommend PcapPlusPlus. It does deep analysis of network packets including ethernet frames arrival time

0

Wireshark will already capture packet timestamps. I believe it uses PCAP internally for the low-level work.

See https://github.com/the-tcpdump-group/libpcap

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.