A header-file-only modern C++ encapsulation of libpcap. It contains 3 main classes:
a) pcap_capturer: live capturing;
b) pcap_parser: parse pcap files;
c) pcap_dumper: dump pcap files.
Just add pcap_cpp folder into the header file search path, and include pcap_cpp.h. E.g.:
#include "pcap_cpp/pcap_cpp.h"