Professional Documents
Culture Documents
Assignment 01
Assignment 01
(Faculty of IT&CS)
Information Security
Assignment No 1 Date: 29 Mar 2023
Total Marks: 100 Due Date: 07 Apr 2023
Programming Assignment
A general purpose packet sniffer in Unix C environment can be developed using “libpcap”
packet capture library. Consult the class lecture notes, libpcap programming guide provided in class, as
well as the web, and develop an understanding of the use/syntax of the various library functions used
for packet capturing, such as pcap_lookupdev( ), pcap_open_live( ), pcap_loop( ) or pcap_next(),
etc.
Then write the code to capture packets and process their headers to display major header field
values at data link layer, network layer, and transport layer.
While parsing protocol headers, the program will first need to determine the upper layer
protocol type, and then proceed to process/display the requisite protocol header fields.
Assignment Guidelines:
Program should not have been copied verbatim from any source, and should have only the required
functionality.
Code will also be submitted in hard copy; it should be in small font for good readability and indented/
well commented.
Demo of running code will be given by individual groups. A viva will be conducted in class on Friday.