In this chapter, we will cover:
Adding libpcap to your project
Retrieving network device information
Capturing packets
Decoding Ethernet headers
Decoding IP headers
Decoding ARP headers
Decoding TCP headers
Decoding UDP headers
Decoding ICMP headers
Filtering packets
Saving a capture file
Creating a simple port scanner using libnet and libpcap together