]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ICMP6 RPL: Add a test capture file
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 24 Oct 2019 09:13:16 +0000 (09:13 +0000)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 24 Oct 2019 09:13:16 +0000 (09:13 +0000)
This capture file triggered a buffer over-read with the 4.9.2 release
fixed in the 4.9.3 release.

With the new GET_ macros, the problem no longer exists.
Thus no fix needed.

The pcap file was updated to avoid pcap_loop() error messages.
It was rename from pcapng to pcap because it is.

Update the output of the test accordingly.

Partial update from d7505276842e85bfd067fa21cdb32b8a2dc3c5e4
in 4.9 branch.

tests/TESTLIST
tests/rpl-dao-oobr.out [new file with mode: 0644]
tests/rpl-dao-oobr.pcap [new file with mode: 0644]

index b86e5b30d12d229b4a3273f0cb44b449b39a9443..edcd02f4add3f06a430d9b94f1dbd8591db3d80e 100644 (file)
@@ -650,6 +650,7 @@ rx_ubik-oobr                rx_ubik-oobr.pcap               rx_ubik-oobr.out -c1
 
 # bad packets from Junjie Wang
 ospf6_print_lshdr-oobr ospf6_print_lshdr-oobr.pcap ospf6_print_lshdr-oobr.out -vv
+rpl-dao-oobr rpl-dao-oobr.pcap rpl-dao-oobr.out -vv
 
 # RTP tests
 # fuzzed pcap
diff --git a/tests/rpl-dao-oobr.out b/tests/rpl-dao-oobr.out
new file mode 100644 (file)
index 0000000..c123a6d
--- /dev/null
@@ -0,0 +1 @@
+    1  00:04:16.851768 IP6 (hlim 64, next-header ICMPv6 (58) payload length: 56) fe80::216:3eff:fe11:3424 > fe80::216:3eff:fe11:3424: ICMP6, RPL, (CLR)Destination Advertisement Object [dagid:<elided>,seq:0,instance:42,00] opt:subopt:13 len:2  opt:subopt:128 len:15  opt:subopt:13 len:15  [|icmp6]
diff --git a/tests/rpl-dao-oobr.pcap b/tests/rpl-dao-oobr.pcap
new file mode 100644 (file)
index 0000000..514e9b3
Binary files /dev/null and b/tests/rpl-dao-oobr.pcap differ