PcapPlusPlus
Multiplatform C++ library for parsing and crafting of network packets
...It is designed to be efficient, powerful, and easy to use. PcapPlusPlus enables capturing and sending network packets through easy-to-use C++ wrappers for the most popular packet processing engines such as libpcap, WinPcap, NPcap, DPDK and PF_RING. PcapPlusPlus enables decoding and forging capabilities for a large variety of network protocols. PcapPlusPlus is designed to be efficient and lightweight. It enables amazingly fast packet processing with minimum overhead. PcapPlusPlus is fully supported on Windows, MacOS, Linux, Android and FreeBSD. ...