0 15 31
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Header ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
... |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| IP Header (Packet 2) ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
...
The testing of your tool takes the form used by tcpdump. An example is the following.
- IP.port -> IP.port Proto TCPFlags Datalen
- 192.168.0.39.22 -> 192.168.0.28.7462 TCP S 40
- 192.168.0.28.7462 -> 192.168.0.39.22 TCP S,A 40
- . . .
-s argument specifying the Source IP address to look
for and the -d argument specifying the
Destination IP address to look for. e.g.
$ pfilter -s 192.168.0.0/24 filename
might only display information for IP packets that have
a source IP address that falls in the 192.168.0.0/24 subnet.
Both the Source IP address and Destination IP address may be given
or just one of them may be given.
-S argument specifying the Source port number to look
for and the -D argument specifying the
Destination port number to look for.
Both the Source port and Destination port may be given
or just one of them may be given.
-p.
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.