Libpcap is a portable packet capture library which is used in many packet sniffers, including Tcpdump.