]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add two TFTP tests
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 10 Mar 2019 15:05:26 +0000 (16:05 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 10 Mar 2019 15:17:03 +0000 (16:17 +0100)
There is one pcap file with two outputs, with/without the '-T tftp' option.

tests/TESTLIST
tests/tftp-T.out [new file with mode: 0644]
tests/tftp.out [new file with mode: 0644]
tests/tftp.pcap [new file with mode: 0644]

index ef7e282024cf89372c76b18e98f41655e5a9cd44..00fbe4473370005c816b7652d56c2d2bef333379 100644 (file)
@@ -394,6 +394,10 @@ resp_1 resp_1_benchmark.pcap resp_1.out
 resp_2 resp_2_inline.pcap    resp_2.out
 resp_3 resp_3_malicious.pcap resp_3.out
 
+# TFTP tests
+tftp   tftp.pcap tftp.out
+tftp-T tftp.pcap tftp-T.out -T tftp
+
 # WHOIS tests
 whois                  whois.pcap              whois.out
 whois-v                whois.pcap              whois-v.out     -v
diff --git a/tests/tftp-T.out b/tests/tftp-T.out
new file mode 100644 (file)
index 0000000..7687c89
--- /dev/null
@@ -0,0 +1,7 @@
+    1  12:31:53.718074 IP 192.168.1.2.44935 > 192.168.1.1.69: TFTP, length 14, RRQ "file1" octet
+    2  12:31:53.732442 IP 192.168.1.1.59557 > 192.168.1.2.44935: TFTP, length 516, DATA block 1
+    3  12:31:53.732956 IP 192.168.1.2.44935 > 192.168.1.1.59557: TFTP, length 4, ACK block 1
+    4  12:31:53.733217 IP 192.168.1.1.59557 > 192.168.1.2.44935: TFTP, length 516, DATA block 2
+    5  12:31:53.733497 IP 192.168.1.2.44935 > 192.168.1.1.59557: TFTP, length 4, ACK block 2
+    6  12:31:53.733527 IP 192.168.1.1.59557 > 192.168.1.2.44935: TFTP, length 109, DATA block 3
+    7  12:31:53.733706 IP 192.168.1.2.44935 > 192.168.1.1.59557: TFTP, length 4, ACK block 3
diff --git a/tests/tftp.out b/tests/tftp.out
new file mode 100644 (file)
index 0000000..d3cf3f4
--- /dev/null
@@ -0,0 +1,7 @@
+    1  12:31:53.718074 IP 192.168.1.2.44935 > 192.168.1.1.69: TFTP, length 14, RRQ "file1" octet
+    2  12:31:53.732442 IP 192.168.1.1.59557 > 192.168.1.2.44935: UDP, length 516
+    3  12:31:53.732956 IP 192.168.1.2.44935 > 192.168.1.1.59557: UDP, length 4
+    4  12:31:53.733217 IP 192.168.1.1.59557 > 192.168.1.2.44935: UDP, length 516
+    5  12:31:53.733497 IP 192.168.1.2.44935 > 192.168.1.1.59557: UDP, length 4
+    6  12:31:53.733527 IP 192.168.1.1.59557 > 192.168.1.2.44935: UDP, length 109
+    7  12:31:53.733706 IP 192.168.1.2.44935 > 192.168.1.1.59557: UDP, length 4
diff --git a/tests/tftp.pcap b/tests/tftp.pcap
new file mode 100644 (file)
index 0000000..9df3544
Binary files /dev/null and b/tests/tftp.pcap differ