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.– IzzyCommented Jan 4, 2018 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.– MawgCommented Jan 5, 2018 at 11:59
Add a comment
|
2 Answers
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
Wireshark will already capture packet timestamps. I believe it uses PCAP internally for the low-level work.