C++ framework for network packet sniffing, parsing and crafting
C++ network sniffing, packet parsing and crafting framework
pcapplusplus
$ pcapplusplus -i eth0 -c 10
$ pcapplusplus -f capture.pcap -c 50
$ pcapplusplus -i eth0 -f 'tcp' -c 20