From: Francois-Xavier Le Bail Date: Tue, 22 Oct 2019 09:29:55 +0000 (+0200) Subject: VRRP: Add a test capture file X-Git-Tag: tcpdump-4.99-bp~640 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/b934ecef8c02be75f3e3d226f8dc8befb732221d VRRP: Add a test capture file 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. --- diff --git a/tests/TESTLIST b/tests/TESTLIST index 68e8039d..79a56dc6 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -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 index 00000000..ae4a907e --- /dev/null +++ b/tests/vrrp-vrrp_print-oobr.out @@ -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 index 00000000..6cc6f98c Binary files /dev/null and b/tests/vrrp-vrrp_print-oobr.pcap differ