0 15 31
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Second |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Microsecond |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Header ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Second (Packet 2) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Microsecond (Packet 2) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Capture Length (Packet 2) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Header (Packet 2) ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
...
The capture second and capture microsecond is the time that the IP
packet was captured from the network. Capture seconds are measured
since the epoch on January 1, 1970. Microseconds is the number of
microseconds within that second. This is the standard C timeval
structure configuration. Capture Length is the length of the IP
packet in bytes (this length may less than the IP header packet
length as not all of the packet may have been captured).
UDP: 192.168.0.45.3478 <--> 10.17.4.25.53
Start: Mon Oct 17 14:40:41 EDT 2005
Bytes of data sent to 10.17.4.25.53: 138
Bytes of data sent to 192.168.0.45.3478: 203
End: Mon Oct 17 14:40:41 EDT 2005
TCP: 192.168.0.45.7345 <--> 10.17.4.42.80
Start: Mon Oct 17 14:40:41 EDT 2005
Bytes of data sent to 10.17.4.42.80: 34
Bytes of data sent to 192.168.0.45.7345: 237549
End: Mon Oct 24 14:40:42 EDT 2005
. . .
The above shows a UDP exchange and a TCP connection and the relevant
information that should be displayed.
-v) to display each packet in the capture file.
It should display all fields for the IP, TCP, and UDP headers. It should
not display the data of the packet.
-n.
-a addr command line argument should be used for this.
-p # command line argument should be used for this.
Notes: Your submissions must at least compile before any credit will be given. Submissions that do not compile will not be graded. Submissions submitted after the due date will not be graded. All work must be your own original work. To get partial credit for parts of the assignment, you must demonstrate that those pieces work by themselves. If you share code with others, you will be given a 0 for the assignment. This assignment set is worth 25% of your total grade.