https://www.tcpdump.org/pcap.html
It abstracts all the hard work, gives you a handle that you can poll on, and then handles giving you a stream of packets to process.
https://www.tcpdump.org/pcap.html
It abstracts all the hard work, gives you a handle that you can poll on, and then handles giving you a stream of packets to process.