]> The Tcpdump Group git mirrors - tcpdump/commitdiff
VRRP: Add a test capture file
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 22 Oct 2019 09:29:55 +0000 (11:29 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 22 Oct 2019 09:29:55 +0000 (11:29 +0200)
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.

Update the output of the test accordingly.

Partial update from 3de07c772166b7e8e8bb4b9d1d078f1d901b570b
in 4.9 branch.

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

index 68e8039d8f1942b290cac814f57dc2c4285c8b5e..79a56dc68116a5c6f8f41195ab5d1471fb6284af 100644 (file)
@@ -609,6 +609,7 @@ ldp-ldp_tlv_print-oobr ldp-ldp_tlv_print-oobr.pcap ldp-ldp_tlv_print-oobr.out -v
 icmp-icmp_print-oobr-1 icmp-icmp_print-oobr-1.pcap icmp-icmp_print-oobr-1.out -v
 icmp-icmp_print-oobr-2 icmp-icmp_print-oobr-2.pcap icmp-icmp_print-oobr-2.out -v
 rsvp-rsvp_obj_print-oobr rsvp-rsvp_obj_print-oobr.pcap rsvp-rsvp_obj_print-oobr.out -v
+vrrp-vrrp_print-oobr vrrp-vrrp_print-oobr.pcap vrrp-vrrp_print-oobr.out -v
 # The .pcap file is truncated after the 1st packet.
 hncp_dhcpv6data-oobr   hncp_dhcpv6data-oobr.pcap       hncp_dhcpv6data-oobr.out -v -c1
 hncp_dhcpv4data-oobr   hncp_dhcpv4data-oobr.pcap       hncp_dhcpv4data-oobr.out -v -c1
diff --git a/tests/vrrp-vrrp_print-oobr.out b/tests/vrrp-vrrp_print-oobr.out
new file mode 100644 (file)
index 0000000..ae4a907
--- /dev/null
@@ -0,0 +1,6 @@
+    1  05:50:05.908918788 IP (tos 0x7f,CE, ttl 254, id 40208, offset 0, flags [none], proto VRRP (112), length 34, options (unknown 69 [bad length 83]), bad cksum 8e15 (->bc96)!)
+    250.219.91.20 > 209.150.251.64: VRRPv2, Advertisement, (ttl 254), vrid 2, prio 0, authtype simple, intvl 255s, length 6 [|vrrp]
+    2  05:50:05.908918788 IP (tos 0x7f,CE, ttl 254, id 40208, offset 0, flags [none], proto VRRP (112), length 40, options (unknown 69 [bad length 83]), bad cksum 8e15 (->b790)!)
+    250.219.91.20 > 209.150.251.64: VRRPv2, Advertisement, (ttl 254), vrid 2, prio 0, authtype simple, intvl 255s, length 12, addrs: [|vrrp]
+    3  20:09:34.908975098 IP (tos 0x7f,CE, ttl 254, id 40208, offset 0, flags [none], proto VRRP (112), length 40, options (unknown 69 [bad length 83]), bad cksum 8e15 (->bc90)!)
+    250.219.91.20 > 209.150.251.64: VRRPv2, Advertisement, (ttl 254), vrid 2, prio 0, authtype simple, intvl 255s, length 12, addrs: [|vrrp]
diff --git a/tests/vrrp-vrrp_print-oobr.pcap b/tests/vrrp-vrrp_print-oobr.pcap
new file mode 100644 (file)
index 0000000..6cc6f98
Binary files /dev/null and b/tests/vrrp-vrrp_print-oobr.pcap differ