]> The Tcpdump Group git mirrors - tcpdump/commit
tests: Fix some tests with invalid microsecond packet timestamps
authorFrancois-Xavier Le Bail <[email protected]>
Fri, 20 Dec 2024 19:37:09 +0000 (20:37 +0100)
committerfxlb <[email protected]>
Sun, 22 Dec 2024 09:26:48 +0000 (09:26 +0000)
commit7e68ce3fa8ab1e7edd71c5653b3ca7908a35a14f
treebdfa63fe9ed3b87c81ecadce4686069bbaf21c9e
parentd45c1a87ca9c70696ae7ba195b7e78973ba99cf4
tests: Fix some tests with invalid microsecond packet timestamps

If the timestamp for packets are given in seconds and microseconds,
a microsecond value > 999999 is invalid. Set it to 999999.
298 files changed:
tests/aarp-heapoverflow-1.out
tests/aarp-heapoverflow-1.pcap
tests/aarp-heapoverflow-2.out
tests/aarp-heapoverflow-2.pcap
tests/aoe-oobr-1.out
tests/aoe-oobr-1.pcap
tests/atm-heapoverflow.out
tests/atm-heapoverflow.pcap
tests/atm-oam-heapoverflow.out
tests/atm-oam-heapoverflow.pcap
tests/babel_update_oobr.out
tests/babel_update_oobr.pcap
tests/bad-ipv4-version-pgm-heapoverflow.out
tests/bad-ipv4-version-pgm-heapoverflow.pcap
tests/beep-oobr.out
tests/beep-oobr.pcap
tests/bgp-bgp_capabilities_print-oobr-1.out
tests/bgp-bgp_capabilities_print-oobr-1.pcap
tests/bgp-bgp_capabilities_print-oobr-2.out
tests/bgp-bgp_capabilities_print-oobr-2.pcap
tests/bgp_mp_reach_nlri-oobr.out
tests/bgp_mp_reach_nlri-oobr.pcap
tests/bgp_mvpn_6_and_7_oobr.out
tests/bgp_mvpn_6_and_7_oobr.pcap
tests/bgp_pmsi_tunnel-oobr.out
tests/bgp_pmsi_tunnel-oobr.pcap
tests/calm-fast-mac-lookup-heapoverflow.out
tests/calm-fast-mac-lookup-heapoverflow.pcap
tests/cfm_sender_id-oobr.out
tests/cfm_sender_id-oobr.pcap
tests/cve2015-0261-crash.out
tests/cve2015-0261-crash.pcap
tests/decnet-oobr.out
tests/decnet-oobr.pcap
tests/decnet-shorthdr-oobr.out
tests/decnet-shorthdr-oobr.pcap
tests/dhcp6_reconf_asan.out
tests/dhcp6_reconf_asan.pcap
tests/eap_extract_read2_asan.out
tests/eap_extract_read2_asan.pcap
tests/esis_opt_prot-oobr.out
tests/esis_opt_prot-oobr.pcap
tests/esis_snpa_asan-2.out
tests/esis_snpa_asan-2.pcap
tests/esis_snpa_asan-3.out
tests/esis_snpa_asan-3.pcap
tests/esis_snpa_asan-4.out
tests/esis_snpa_asan-4.pcap
tests/esis_snpa_asan-5.out
tests/esis_snpa_asan-5.pcap
tests/esis_snpa_asan.out
tests/esis_snpa_asan.pcap
tests/extract_read2_asan.out
tests/extract_read2_asan.pcap
tests/frf15-heapoverflow.out
tests/frf15-heapoverflow.pcap
tests/geonet-mac-lookup-heapoverflow.out
tests/geonet-mac-lookup-heapoverflow.pcap
tests/getname_2_read4_asan.out
tests/getname_2_read4_asan.pcap
tests/gre-heapoverflow-1.out
tests/gre-heapoverflow-1.pcap
tests/gre-heapoverflow-2.out
tests/gre-heapoverflow-2.pcap
tests/heap-overflow-1.out
tests/heap-overflow-1.pcap
tests/heap-overflow-2.out
tests/heap-overflow-2.pcap
tests/heapoverflow-atalk_2.out
tests/heapoverflow-atalk_2.pcap
tests/heapoverflow-atalk_print.out
tests/heapoverflow-atalk_print.pcap
tests/heapoverflow-in_checksum.out
tests/heapoverflow-in_checksum.pcap
tests/heapoverflow-ip_demux_print.out
tests/heapoverflow-ip_demux_print.pcap
tests/heapoverflow-ppp_hdlc_if_print.out
tests/heapoverflow-ppp_hdlc_if_print.pcap
tests/heapoverflow-q933_printq.out
tests/heapoverflow-q933_printq.pcap
tests/heapoverflow-sl_if_print.out
tests/heapoverflow-sl_if_print.pcap
tests/heapoverflow-tcp_print.out
tests/heapoverflow-tcp_print.pcap
tests/hoobr_aodv_extension.out
tests/hoobr_aodv_extension.pcap
tests/hoobr_bfd_print.out
tests/hoobr_bfd_print.pcap
tests/hoobr_chdlc_print.out
tests/hoobr_chdlc_print.pcap
tests/hoobr_juniper.out
tests/hoobr_juniper.pcap
tests/hoobr_juniper2.out
tests/hoobr_juniper2.pcap
tests/hoobr_juniper3.out
tests/hoobr_juniper3.pcap
tests/hoobr_juniper4.out
tests/hoobr_juniper4.pcap
tests/hoobr_lookup_nsap.out
tests/hoobr_lookup_nsap.pcap
tests/hoobr_nfs_printfh.out
tests/hoobr_nfs_printfh.pcap
tests/hoobr_nfs_xid_map_enter.out
tests/hoobr_nfs_xid_map_enter.pcap
tests/hoobr_pimv1.out
tests/hoobr_pimv1.pcap
tests/hoobr_ripng_print.out
tests/hoobr_ripng_print.pcap
tests/hoobr_rt6_print.out
tests/hoobr_rt6_print.pcap
tests/hoobr_safeputs.out
tests/hoobr_safeputs.pcap
tests/hoobr_zephyr_parse_field.out
tests/hoobr_zephyr_parse_field.pcap
tests/icmp-icmp_print-oobr-1.out
tests/icmp-icmp_print-oobr-1.pcap
tests/icmp-icmp_print-oobr-2.out
tests/icmp-icmp_print-oobr-2.pcap
tests/icmp6_mobileprefix_asan.out
tests/icmp6_mobileprefix_asan.pcap
tests/icmp_inft_name_length_zero.out
tests/icmp_inft_name_length_zero.pcap
tests/ieee802.11_meshhdr-oobr.out
tests/ieee802.11_meshhdr-oobr.pcap
tests/ieee802.11_parse_elements_oobr.out
tests/ieee802.11_parse_elements_oobr.pcap
tests/ieee802.11_rates_oobr.out
tests/ieee802.11_rates_oobr.pcap
tests/ieee802.11_tim_ie_oobr.out
tests/ieee802.11_tim_ie_oobr.pcap
tests/igrp-oobr.out
tests/igrp-oobr.pcap
tests/ikev1_id_ipv6_addr_subnet-oobr.out
tests/ikev1_id_ipv6_addr_subnet-oobr.pcap
tests/ipcomp-heapoverflow.out
tests/ipcomp-heapoverflow.pcap
tests/ipv6-mobility-header-oobr.out
tests/ipv6-mobility-header-oobr.pcap
tests/ipv6-next-header-oobr-1.out
tests/ipv6-next-header-oobr-1.pcap
tests/ipv6-next-header-oobr-2.out
tests/ipv6-next-header-oobr-2.pcap
tests/ipv6-rthdr-oobr.out
tests/ipv6-rthdr-oobr.pcap
tests/ipv6-srh-tlv-pad1-padn-5-trunc.out
tests/ipv6-srh-tlv-pad1-padn-5-trunc.pcap
tests/ipv6hdr-heapoverflow-v.out
tests/ipv6hdr-heapoverflow.out
tests/ipv6hdr-heapoverflow.pcap
tests/isakmp-3948-oobr-2.out
tests/isakmp-3948-oobr-2.pcap
tests/isakmp-rfc3948-oobr.out
tests/isakmp-rfc3948-oobr.pcap
tests/isakmpv1-attr-oobr.out
tests/isakmpv1-attr-oobr.pcap
tests/isis-extd-isreach-oobr.out
tests/isis-extd-isreach-oobr.pcap
tests/isoclns-heapoverflow-2.out
tests/isoclns-heapoverflow-2.pcap
tests/isoclns-heapoverflow-3.out
tests/isoclns-heapoverflow-3.pcap
tests/isoclns-heapoverflow.out
tests/isoclns-heapoverflow.pcap
tests/isoclns-oobr.out
tests/isoclns-oobr.pcap
tests/juniper_atm1_oobr.out
tests/juniper_atm1_oobr.pcap
tests/juniper_es_oobr.out
tests/juniper_es_oobr.pcap
tests/kday4.out
tests/kday4.pcap
tests/kday7.out
tests/kday7.pcap
tests/kh-timed-001-oobr.out
tests/kh-timed-001-oobr.pcap
tests/kh-timed-002-oobr.out
tests/kh-timed-002-oobr.pcap
tests/kh-timed-004-oobr.out
tests/kh-timed-004-oobr.pcap
tests/l2tp-avp-overflow.out
tests/l2tp-avp-overflow.pcap
tests/ldp_tlv_print-oobr.out
tests/ldp_tlv_print-oobr.pcap
tests/llc-xid-heapoverflow.out
tests/llc-xid-heapoverflow.pcap
tests/lldp_8023_mtu-oobr.out
tests/lldp_8023_mtu-oobr.pcap
tests/lldp_asan.out
tests/lldp_asan.pcap
tests/lldp_mgmt_addr_tlv_asan.out
tests/lldp_mgmt_addr_tlv_asan.pcap
tests/lmp-lmp_print_data_link_subobjs-oobr.out
tests/lmp-lmp_print_data_link_subobjs-oobr.pcap
tests/mlppp-oobr.out
tests/mlppp-oobr.pcap
tests/mobility_opt_asan.out
tests/mobility_opt_asan.pcap
tests/mobility_opt_asan_2.out
tests/mobility_opt_asan_2.pcap
tests/mobility_opt_asan_3.out
tests/mobility_opt_asan_3.pcap
tests/mobility_opt_asan_4.out
tests/mobility_opt_asan_4.pcap
tests/mobility_opt_asan_5.out
tests/mobility_opt_asan_5.pcap
tests/mobility_opt_asan_6.out
tests/mobility_opt_asan_6.pcap
tests/mobility_opt_asan_7.out
tests/mobility_opt_asan_7.pcap
tests/mobility_opt_asan_8.out
tests/mobility_opt_asan_8.pcap
tests/mpls-label-heapoverflow.out
tests/mpls-label-heapoverflow.pcap
tests/nfs-attr-oobr.out
tests/nfs-attr-oobr.pcap
tests/nfs_large_credentials_length.out
tests/nfs_large_credentials_length.pcap
tests/of10_inv_QUEUE_GET_CONFIG_REPLY-vv.out
tests/of10_inv_QUEUE_GET_CONFIG_REPLY.pcap
tests/olsr-oobr-1.out
tests/olsr-oobr-1.pcap
tests/olsr-oobr-2.out
tests/olsr-oobr-2.pcap
tests/ospf6_decode_v3_asan.out
tests/ospf6_decode_v3_asan.pcap
tests/ospf6_print_lshdr-oobr.out
tests/ospf6_print_lshdr-oobr.pcap
tests/pb_nhrp_1.out
tests/pb_nhrp_1.pcap
tests/pgm_opts_asan.out
tests/pgm_opts_asan.pcap
tests/pgm_opts_asan_2.out
tests/pgm_opts_asan_2.pcap
tests/pgm_opts_asan_3.out
tests/pgm_opts_asan_3.pcap
tests/pim_header_asan-2.out
tests/pim_header_asan-2.pcap
tests/pim_header_asan-3.out
tests/pim_header_asan-3.pcap
tests/pim_header_asan-4.out
tests/pim_header_asan-4.pcap
tests/pim_header_asan.out
tests/pim_header_asan.pcap
tests/pktap-heap-overflow.out
tests/pktap-heap-overflow.pcap
tests/ppp-invalid-lengths.out
tests/ppp-invalid-lengths.pcap
tests/ppp_ccp_config_deflate_option_asan.out
tests/ppp_ccp_config_deflate_option_asan.pcap
tests/quic_32_bit_pointer_overflow.out
tests/quic_32_bit_pointer_overflow.pcap
tests/radiotap-heapoverflow.out
tests/radiotap-heapoverflow.pcap
tests/radius_attr_asan.out
tests/radius_attr_asan.pcap
tests/rpki-rtr-oobr-vv.out
tests/rpki-rtr-oobr.out
tests/rpki-rtr-oobr.pcap
tests/rsvp-rsvp_obj_print-oobr.out
tests/rsvp-rsvp_obj_print-oobr.pcap
tests/rsvp_uni-oobr-1.out
tests/rsvp_uni-oobr-1.pcap
tests/rsvp_uni-oobr-2.out
tests/rsvp_uni-oobr-2.pcap
tests/rsvp_uni-oobr-3.out
tests/rsvp_uni-oobr-3.pcap
tests/slip-compressed_sl_print-oobr.out
tests/slip-compressed_sl_print-oobr.pcap
tests/slip-sliplink_print-oobr.out
tests/slip-sliplink_print-oobr.pcap
tests/snmp-heapoverflow-1.out
tests/snmp-heapoverflow-1.pcap
tests/snmp-heapoverflow-2.out
tests/snmp-heapoverflow-2.pcap
tests/stp-heapoverflow-1.out
tests/stp-heapoverflow-1.pcap
tests/stp-heapoverflow-2.out
tests/stp-heapoverflow-2.pcap
tests/stp-heapoverflow-3.out
tests/stp-heapoverflow-3.pcap
tests/stp-heapoverflow-4.out
tests/stp-heapoverflow-4.pcap
tests/tcp-auth-heapoverflow.out
tests/tcp-auth-heapoverflow.pcap
tests/tcp_header_heapoverflow.out
tests/tcp_header_heapoverflow.pcap
tests/udp-length-heapoverflow.out
tests/udp-length-heapoverflow.pcap
tests/vrrp-vrrp_print-oobr.out
tests/vrrp-vrrp_print-oobr.pcap
tests/vtp_asan-2.out
tests/vtp_asan-2.pcap
tests/vtp_asan-3.out
tests/vtp_asan-3.pcap
tests/vtp_asan.out
tests/vtp_asan.pcap
tests/wb-oobr.out
tests/wb-oobr.pcap