Some simple cases to learn libpcap by myself From libpcap tutorial, Programming with pacap and Programming with Libpcap - Sniffing the Network From Our Own Application