]> The Tcpdump Group git mirrors - tcpdump/commitdiff
PGM: Add another test.
authorGuy Harris <[email protected]>
Wed, 22 Mar 2017 22:03:51 +0000 (15:03 -0700)
committerDenis Ovsienko <[email protected]>
Wed, 13 Sep 2017 11:25:44 +0000 (12:25 +0100)
Add a test using the capture file supplied by Bhargava Shastry, modified
so the capture file won't be rejected as an invalid capture.

tests/TESTLIST
tests/pgm_opts_asan_3.out [new file with mode: 0644]
tests/pgm_opts_asan_3.pcap [new file with mode: 0644]

index 8e88e93ea70041531db44aca0e4de8070c0825b3..9cb2bdb6bb167ab9a2596b5e0143c98d1104f569 100644 (file)
@@ -521,6 +521,7 @@ esis_snpa_asan-5    esis_snpa_asan-5.pcap           esis_snpa_asan-5.out    -v
 dhcp6_reconf_asan      dhcp6_reconf_asan.pcap          dhcp6_reconf_asan.out   -v
 pgm_opts_asan          pgm_opts_asan.pcap              pgm_opts_asan.out       -v
 pgm_opts_asan_2                pgm_opts_asan_2.pcap            pgm_opts_asan_2.out     -v
+pgm_opts_asan_3                pgm_opts_asan_3.pcap            pgm_opts_asan_3.out     -v
 vtp_asan               vtp_asan.pcap                   vtp_asan.out    -v
 icmp6_mobileprefix_asan        icmp6_mobileprefix_asan.pcap    icmp6_mobileprefix_asan.out     -v
 ip_printroute_asan     ip_printroute_asan.pcap         ip_printroute_asan.out  -v
diff --git a/tests/pgm_opts_asan_3.out b/tests/pgm_opts_asan_3.out
new file mode 100644 (file)
index 0000000..8a6bffd
--- /dev/null
@@ -0,0 +1,2 @@
+IP (tos 0x41,ECT(1), id 0, offset 0, flags [none], proto PGM (113), length 32639, options (unknown 89 [bad length 232]), bad cksum 5959 (->f814)!)
+    128.121.89.16 > 0.89.16.63: 128.121.89.16.4 > 0.89.16.63.225: PGM, length 0 0x3414eb1f0022 UNKNOWN type 0x1f OPTS LEN 225 OPT_1F [13]  OPT_06 [26] [Bad OPT_REDIRECT option, length 4 < 8]
diff --git a/tests/pgm_opts_asan_3.pcap b/tests/pgm_opts_asan_3.pcap
new file mode 100644 (file)
index 0000000..bbe3b54
Binary files /dev/null and b/tests/pgm_opts_asan_3.pcap differ