How to Perform Packet Sniffing Using Libpcap with C Example Code
thegeekstuff.com