TMA·Lab·Done

Libpcap exercise

Due Fri 23 Oct 2026

Notes

Implement a C program that uses libpcap to collect live traffic from a network interface in your computer. The program has to collect only traffic with destination port 80 or 443. For each collected packet, the program has to show in the screen its timestamp (i.e., time when it was received), its source IP address, its destination IP address and the length of the packet in the wire. The snaplen should be configured to the minimum value that allows you to get the required information. You can test the program by running it while opening a web page in your browser. The packets generated by the web browser should be printed in the screen. You have to deliver the .c file only.

Tasks (0 open)

All done for today :)

Nothing left on this list.

Done