head	1.1;
branch	1.1.1;
access;
symbols
	perseant-exfatfs:1.1.1.1.0.2
	perseant-exfatfs-base-20261102:1.1.1.1
	tcpdump-4-99-6:1.1.1.1
	TCPDUMP:1.1.1;
locks; strict;
comment	@# @;


1.1
date	2026.03.19.00.00.51;	author christos;	state Exp;
branches
	1.1.1.1;
next	;
commitid	eaFgVHJVXxuJ3wyG;

1.1.1.1
date	2026.03.19.00.00.51;	author christos;	state Exp;
branches
	1.1.1.1.2.1;
next	;
commitid	eaFgVHJVXxuJ3wyG;

1.1.1.1.2.1
date	2026.03.19.00.00.51;	author perseant;	state dead;
branches;
next	1.1.1.1.2.2;
commitid	3QTNojfCEH9lUb2H;

1.1.1.1.2.2
date	2026.11.04.22.40.10;	author perseant;	state Exp;
branches;
next	;
commitid	3QTNojfCEH9lUb2H;


desc
@@


1.1
log
@Initial revision
@
text
@# -*- perl -*-

# The packet time when > 2038-01-19T03:14:07Z cannot be correctly printed
# if time_t size is 32 bits (overflow).
# Some tests are run only if HAVE_TIME_T_64 is set. it depends on the
# output of "./tcpdump --time-t-size" (32 or 64).

# A 32-bit unsigned time_t goes until 2106-02-07T06:28:15Z.
# All values above require a pcapng file.

$testlist = [
    {
        name => 'time_2038',
        input => 'time_2038.pcap',
        output => 'time_2038.out',
        args   => '-q'
    },
    {
        name => 'time_2038_max',
        input => 'time_2038_max.pcap',
        output => 'time_2038_max.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2038_overflow',
        input => 'time_2038_overflow.pcap',
        output => 'time_2038_overflow.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2039',
        input => 'time_2039.pcap',
        output => 'time_2039.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106',
        input => 'time_2106.pcap',
        output => 'time_2106.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106_max',
        input => 'time_2106_max.pcap',
        output => 'time_2106_max.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106_overflow',
        input => 'time_2106_overflow.pcapng',
        output => 'time_2106_overflow.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2107',
        input => 'time_2107.pcapng',
        output => 'time_2107.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106_overflow-tt',
        input => 'time_2106_overflow.pcapng',
        output => 'time_2106_overflow-tt.out',
        args   => '-tt -q SPECIAL_t'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2107-tt',
        input => 'time_2107.pcapng',
        output => 'time_2107-tt.out',
        args   => '-tt -q SPECIAL_t'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-ldp-v',
        input => 'lspping-fec-ldp.pcap',
        output => 'lspping-fec-ldp-v.out',
        args => '-v'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-ldp-vv',
        input => 'lspping-fec-ldp.pcap',
        output => 'lspping-fec-ldp-vv.out',
        args => '-vv'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-rsvp-v',
        input => 'lspping-fec-rsvp.pcap',
        output => 'lspping-fec-rsvp-v.out',
        args => '-v'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-rsvp-vv',
        input => 'lspping-fec-rsvp.pcap',
        output => 'lspping-fec-rsvp-vv.out',
        args => '-vv'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'ntp-v',
        input => 'ntp.pcap',
        output => 'ntp-v.out',
        args => '-v'
    },
];

1;
@


1.1.1.1
log
@Import tcpdump 4.99.6 (previous was 4.99.5)

Tuesday, December 30, 2025 / The Tcpdump Group
  Summary for 4.99.6 tcpdump release
    Remove protocol decoding for:
      OTV (draft-hasmit-otv-04, this Internet-Draft is no longer active).
    Refine protocol decoding for:
      DNS: Use ND_TCHECK_LEN() instead of a custom bounds check.
      IPv6: Add a missing comma and remove a colon in the output.
      TCP: Note if the Urgent Pointer is non-zero while URG flag not set,
           if the verbose level is > 1 (option -vv and more).
      TCP: Note if the Acknowledgment Number is non-zero while ACK flag not set,
           if the verbose level is > 1 (option -vv and more).
      TCP: Fix Reset segment processing.
      IP, IPv6: Fix setting the snapshot length for the payload.
      IP: Use ND_TTEST_LEN() instead of a custom bounds check.
      frag6: Add a bounds check in non-verbose mode.
      PTP: Remove spaces before colons in output.
      PTP: Fix management packet fields.
      ISO: Avoid undefined behavior and integer overflow in the Fletcher
           checksum calculation.
      NFS: Delete dead code.
      BOOTP: Use an uint16_t variable to get the result of a GET_BE_U_2().
      ZEP: use the existing NTP time formatting code.
      NTP: Fix p_ntp_time_fmt() using epoch 1/epoch 2 convention (RFC 4330).
      NTP: Update a field name with the RFC 5905 name (Origin Timestamp).
      IPv6 mobility: Modernize packet parsing and make fixes.
      IP6OPTS: Modernize packet parsing and make fixes.
      VXLAN: Add UDP port 8472 used by Linux as the default port.
      EGP: Replace custom code with tok2str(); Modernize packet parsing and
        fix printing with -v option.
    User interface:
      Add optional unit suffix on -C file size.
      Improve the handling of size suffixes for -C.
      Print errors for options -A, -x[x] and -X[X] (mutually exclusive).
      Print errors about -C, -G and -z options usage.
      For PCAP_ERROR_CAPTURE_NOTSUP, show the error message provided
        by libpcap for that error if it's non-empty.
      Update the -z option processing. Print "invalid option -- z" when it is.
      Add the -g option, causing IPv4 output in verbose mode to be on one line.
    Other:
      Avoid race condition when receiving signal during shutdown.
      Always show the interface name in error messages when the
        interface can't be opened.
      Clean up the message shown if a -i flag is specified with an
        interface index that's too large.
    Source code:
      Fix '-tt' option printing when time > 2106-02-07T06:28:15Z.
      Add sub-second packet timestamp checks for invalid micro/nano.
      Remove unused missing/snprintf.c.
      Fix incompatible pointer types with time functions calls on Windows.
      Use C99 macros to define 64-bit constants and maximum 64-bit values.
    Windows:
      Fixed to find wpcap.dll if WinPcap isn't installed and Npcap was
        installed without the WinPcap API compatibility option. (GitHub
        issue #1226).
    Building and testing:
      Makefile.in: Use a local libpcap in the releasecheck target.
      CMake: Fix build with CMake 3.31.
      autotools, CMake: don't separately test whether snprintf(3) is
        available and whether it's suitable - the test for whether it's
        suitable also fails if it's unavailable.
      CMake: Skip snprintf(3) tests when cross-compiling.
      autotools, CMake: fix issues with snprintf test and sanitizers.
      CMake: check whether check_c_source_runs() works, treat the build
        as a cross-compile if it doesn't work.
      Autoconf: Use AC_SYS_YEAR2038_RECOMMENDED when possible if the
        environment variable BUILD_YEAR2038 = yes (via autogen.sh).
      Autoconf: Avoid incorrectly include the libpcap's config.h.
      Autoconf: Refine reporting of os-proto.h.
      Require config.h to be from the tcpdump build.
      AppVeyor: Update Npcap SDK to 1.15.
      autogen.sh: Allow to configure Autoconf warnings.
      autogen.sh: Delete all trailing blank lines at end of configure.
@
text
@@


1.1.1.1.2.1
log
@file time.tests was added on branch perseant-exfatfs on 2026-11-04 22:40:10 +0000
@
text
@d1 117
@


1.1.1.1.2.2
log
@Sync with HEAD
@
text
@a0 117
# -*- perl -*-

# The packet time when > 2038-01-19T03:14:07Z cannot be correctly printed
# if time_t size is 32 bits (overflow).
# Some tests are run only if HAVE_TIME_T_64 is set. it depends on the
# output of "./tcpdump --time-t-size" (32 or 64).

# A 32-bit unsigned time_t goes until 2106-02-07T06:28:15Z.
# All values above require a pcapng file.

$testlist = [
    {
        name => 'time_2038',
        input => 'time_2038.pcap',
        output => 'time_2038.out',
        args   => '-q'
    },
    {
        name => 'time_2038_max',
        input => 'time_2038_max.pcap',
        output => 'time_2038_max.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2038_overflow',
        input => 'time_2038_overflow.pcap',
        output => 'time_2038_overflow.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2039',
        input => 'time_2039.pcap',
        output => 'time_2039.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106',
        input => 'time_2106.pcap',
        output => 'time_2106.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106_max',
        input => 'time_2106_max.pcap',
        output => 'time_2106_max.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106_overflow',
        input => 'time_2106_overflow.pcapng',
        output => 'time_2106_overflow.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2107',
        input => 'time_2107.pcapng',
        output => 'time_2107.out',
        args   => '-q'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2106_overflow-tt',
        input => 'time_2106_overflow.pcapng',
        output => 'time_2106_overflow-tt.out',
        args   => '-tt -q SPECIAL_t'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'time_2107-tt',
        input => 'time_2107.pcapng',
        output => 'time_2107-tt.out',
        args   => '-tt -q SPECIAL_t'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-ldp-v',
        input => 'lspping-fec-ldp.pcap',
        output => 'lspping-fec-ldp-v.out',
        args => '-v'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-ldp-vv',
        input => 'lspping-fec-ldp.pcap',
        output => 'lspping-fec-ldp-vv.out',
        args => '-vv'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-rsvp-v',
        input => 'lspping-fec-rsvp.pcap',
        output => 'lspping-fec-rsvp-v.out',
        args => '-v'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'lspping-fec-rsvp-vv',
        input => 'lspping-fec-rsvp.pcap',
        output => 'lspping-fec-rsvp-vv.out',
        args => '-vv'
    },
    {
        config_set => 'HAVE_TIME_T_64',
        name => 'ntp-v',
        input => 'ntp.pcap',
        output => 'ntp-v.out',
        args => '-v'
    },
];

1;
@


