libpcap-225x225

Develop a Packet Sniffer with libpcap

Libpcap is an open source C library that provides an API for capturing packets directly from the datalink layer of Unix derived operating systems. It is used by popular packet capture applications such as tcpdump and snort that enables them to run on just about any flavor of Unix. Here’s an example of a simple packet sniffer application based on…