]> The Tcpdump Group git mirrors - tcpdump/log
tcpdump
2 years agoUpdate some references to README files. [skip ci]
Denis Ovsienko [Sat, 24 Sep 2022 11:43:56 +0000 (12:43 +0100)] 
Update some references to README files. [skip ci]

2 years agodoc: Add a README file for NetBSD.
Denis Ovsienko [Sat, 24 Sep 2022 11:33:58 +0000 (12:33 +0100)] 
doc: Add a README file for NetBSD.

[skip ci]

2 years agoCHANGES: add a change backported to 4.99. [skip ci]
Guy Harris [Mon, 19 Sep 2022 07:37:22 +0000 (00:37 -0700)] 
CHANGES: add a change backported to 4.99.  [skip ci]

2 years agoconfigure.ac: fix configure tests broken with Clang 15 (implicit function declarations)
Sam James [Mon, 12 Sep 2022 16:28:58 +0000 (17:28 +0100)] 
configure.ac: fix configure tests broken with Clang 15 (implicit function declarations)

Clang 15 makes implicit function declarations fatal by default which
leads to some of tcpdump's configure tests silently failing/returning
the wrong result.

This adds the needed #includes to various tests for the functions used,
resolving the following errors:
```
net-analyzer/tcpdump-4.99.1/clang15.log:47:error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
net-analyzer/tcpdump-4.99.1/clang15.log:51:error: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
net-analyzer/tcpdump-4.99.1/clang15.log:55:error: call to undeclared library function 'sscanf' with type 'int (const char *restrict, const char *restrict, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
net-analyzer/tcpdump-4.99.1/clang15.log:68:error: call to undeclared library function 'memset' with type 'void *(void *, int, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
net-analyzer/tcpdump-4.99.1/clang15.log:112:error: call to undeclared function 'ether_ntohost'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
net-analyzer/tcpdump-4.99.1/clang15.log:115:error: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
```

Signed-off-by: Sam James <[email protected]>
2 years agoCHANGES: Add a change backported to 4.99
Francois-Xavier Le Bail [Tue, 13 Sep 2022 06:37:08 +0000 (08:37 +0200)] 
CHANGES: Add a change backported to 4.99

[skip ci]

2 years agoICMPv6: Fix the Node Information flags
Nicholas Reilly [Wed, 31 Aug 2022 21:01:08 +0000 (17:01 -0400)] 
ICMPv6: Fix the Node Information flags

Don't use htons() when defining the constants because the flags
field is already eventually swapped by fetching with GET_BE_U_2().
Remove unused flags NI_SUPTYPE_FLAG_COMPRESS and NI_FQDN_FLAG_VALIDTTL.
Add a test file with various NI_NODEADDR_FLAG* flags.

2 years agoCHANGES: Add some main-only changes
Francois-Xavier Le Bail [Mon, 12 Sep 2022 16:10:12 +0000 (18:10 +0200)] 
CHANGES: Add some main-only changes

[skip ci]

2 years agoCHANGES: Add some main-only changes
Francois-Xavier Le Bail [Sun, 11 Sep 2022 18:50:17 +0000 (20:50 +0200)] 
CHANGES: Add some main-only changes

[skip ci]

2 years agoCHANGES: Add some changes backported to 4.99
Francois-Xavier Le Bail [Sun, 11 Sep 2022 18:42:36 +0000 (20:42 +0200)] 
CHANGES: Add some changes backported to 4.99

[skip ci]

2 years agoCHANGES: Add a change backported to 4.99
Francois-Xavier Le Bail [Sun, 11 Sep 2022 13:38:00 +0000 (15:38 +0200)] 
CHANGES: Add a change backported to 4.99

[skip ci]

2 years agoICMPv6: Fix output for Router Renumbering messages
Francois-Xavier Le Bail [Sun, 11 Sep 2022 13:08:49 +0000 (15:08 +0200)] 
ICMPv6: Fix output for Router Renumbering messages

In icmp6_rrenum_print() function.

From:
    router renumberingrouter renum: command
To:
    router renumbering, command

Add a test file from the Wireshark menagerie (5691-icmpv6-RFC2894-RR.pcap).

2 years agoRename the suffix of a pcapng test file to .pcapng
Francois-Xavier Le Bail [Fri, 9 Sep 2022 14:43:01 +0000 (16:43 +0200)] 
Rename the suffix of a pcapng test file to .pcapng

2 years agobgp: Handle ORF in Route-Refresh messages
Donatas Abraitis [Tue, 30 Aug 2022 15:41:20 +0000 (18:41 +0300)] 
bgp: Handle ORF in Route-Refresh messages

Signed-off-by: Donatas Abraitis <[email protected]>
2 years agoCHANGES: Add a change that has been backported to 4.99.2
Francois-Xavier Le Bail [Tue, 6 Sep 2022 08:51:41 +0000 (10:51 +0200)] 
CHANGES: Add a change that has been backported to 4.99.2

[skip ci]

2 years agoGeoNet: Update a test to use the current Ethertype
Francois-Xavier Le Bail [Sun, 4 Sep 2022 20:27:36 +0000 (22:27 +0200)] 
GeoNet: Update a test to use the current Ethertype

From 0x0707 (ETHERTYPE_GEONET_OLD) to 0x8947 (ETHERTYPE_GEONET).

(Use -e option to see the changes)

2 years agoGeoNet: Rename a test to specify the version
Francois-Xavier Le Bail [Sun, 4 Sep 2022 17:56:08 +0000 (19:56 +0200)] 
GeoNet: Rename a test to specify the version

'geonet_v0_and_calm_fast' for GeoNetworking version 0.

[skip ci]

2 years agoCONTRIBUTING.md: Document the use of "protocol: " in a commit summary
Francois-Xavier Le Bail [Sat, 3 Sep 2022 18:31:23 +0000 (20:31 +0200)] 
CONTRIBUTING.md: Document the use of "protocol: " in a commit summary

If the commit concerns a protocol, the summary line must start with
"protocol: ".

2 years agoBGP: Use a 'struct tok' for the flags
Francois-Xavier Le Bail [Fri, 2 Sep 2022 06:52:13 +0000 (08:52 +0200)] 
BGP: Use a 'struct tok' for the flags

2 years agoFix a typo
Francois-Xavier Le Bail [Sun, 28 Aug 2022 19:28:24 +0000 (21:28 +0200)] 
Fix a typo

[skip ci]

2 years agoBGP: Remove a useless variable
Francois-Xavier Le Bail [Sat, 27 Aug 2022 16:47:48 +0000 (18:47 +0200)] 
BGP: Remove a useless variable

2 years agoAdd support for Hard Reset notification and GR N flag
Bill Fenner [Fri, 25 Mar 2022 13:40:15 +0000 (06:40 -0700)] 
Add support for Hard Reset notification and GR N flag

Add support for the Hard Reset notifications and the corresponding
N flag in Graceful Restart capability advertisement, per RFC8538.

2 years agoAdd support for BFD cease subcode 1003/head
Bill Fenner [Fri, 25 Mar 2022 13:40:15 +0000 (06:40 -0700)] 
Add support for BFD cease subcode

Add the BFD cease notification subcode assigned by IANA.
This value is an early assignment for an in-progress standard.

2 years agoIPv6: Add a check for the Jumbo Payload Hop-by-Hop option
Francois-Xavier Le Bail [Mon, 22 Aug 2022 15:56:18 +0000 (17:56 +0200)] 
IPv6: Add a check for the Jumbo Payload Hop-by-Hop option

2 years agoCirrus CI: Copy FreeBSD and Linux updates. [skip appveyor]
Denis Ovsienko [Sat, 20 Aug 2022 12:54:17 +0000 (13:54 +0100)] 
Cirrus CI: Copy FreeBSD and Linux updates. [skip appveyor]

Also do not split the Linux task into two anymore: 20-40 minutes per
OS+arch is a good build time on the current fleet.

2 years agoRIP: Print an error message for an invalid version
Francois-Xavier Le Bail [Mon, 15 Aug 2022 08:43:08 +0000 (10:43 +0200)] 
RIP: Print an error message for an invalid version

Moreover:
RIP: Print the protocol name even in truncation case or invalid length.

2 years agoIPv6: Add a Jumbogram test file
Francois-Xavier Le Bail [Sat, 13 Aug 2022 18:56:22 +0000 (20:56 +0200)] 
IPv6: Add a Jumbogram test file

2 years agoIPv6: Add some checks for the Hop-by-Hop Options header
Francois-Xavier Le Bail [Sat, 13 Aug 2022 16:12:10 +0000 (18:12 +0200)] 
IPv6: Add some checks for the Hop-by-Hop Options header

The Hop-by-Hop Options header, when present, must immediately follow
the IPv6 header (RFC 8200).

2 years agoESP: Add a workaround to a "use-of-uninitialized-value"
Francois-Xavier Le Bail [Fri, 12 Aug 2022 14:43:41 +0000 (16:43 +0200)] 
ESP: Add a workaround to a "use-of-uninitialized-value"

Found with clang, CFLAGS=-fsanitize=memory.

Fix GitHub issues #848 and #849.

The problem is that for some unknown reason the pt buffer is not
initialized after EVP_DecryptUpdate() call, no error, in:

print-esp.c:260:        if (!EVP_DecryptUpdate(ctx, pt, &len, ct, ctlen)) {

2 years agoCHDLC: Modernize packet parsing
Francois-Xavier Le Bail [Wed, 10 Aug 2022 13:02:33 +0000 (15:02 +0200)] 
CHDLC: Modernize packet parsing

Enable ND_LONGJMP_FROM_TCHECK and remove the "trunc" labels.
Use ND_ICHECK_U() for length checks and add standard "invalid" sections.
Remove a ndo_ll_hdr_len increment in a truncation case.
Update chdlc_print() to a void function.
Remove a now useless variable.

2 years agoFix some typos
Francois-Xavier Le Bail [Mon, 1 Aug 2022 15:18:25 +0000 (17:18 +0200)] 
Fix some typos

2 years agovsock: Use ND_TCHECK_LEN() for a bounds check
Francois-Xavier Le Bail [Fri, 20 Nov 2020 14:13:52 +0000 (15:13 +0100)] 
vsock: Use ND_TCHECK_LEN() for a bounds check

Moreover:
Define ND_LONGJMP_FROM_TCHECK.
Remove a ndo_ll_hdr_len increment in a truncation case.
Remove a useless variable.

2 years agoman: Update tcpdump(1) about "-i any". [skip ci]
Denis Ovsienko [Sat, 30 Jul 2022 14:40:16 +0000 (15:40 +0100)] 
man: Update tcpdump(1) about "-i any". [skip ci]

Call it consistently a "pseudo-interface" and mention other OSes that
seem to support it, as far as reports on the interwebs go.

2 years agoCopy build_common.h from libpcap. [skip ci]
Denis Ovsienko [Sat, 30 Jul 2022 13:44:01 +0000 (14:44 +0100)] 
Copy build_common.h from libpcap. [skip ci]

2 years agojuniper: don't treat known DLT_ types as "Unknown".
Guy Harris [Tue, 26 Jul 2022 23:06:40 +0000 (16:06 -0700)] 
juniper: don't treat known DLT_ types as "Unknown".

A bunch of DLT_JUNIPER_ values were not being handled in the "DLT_
specific parsing" switch statement; add (empty) cases for them.

2 years agojuniper: don't do bounds checking for fields in the cookie.
Guy Harris [Thu, 21 Jul 2022 08:32:44 +0000 (01:32 -0700)] 
juniper: don't do bounds checking for fields in the cookie.

l2info.cookie is not inside the packet - it's a copy of data from the
packet, with the copy doing the necessary bounds checking - so we
shouldn't use NT_TCHECK or GET macros on it.

2 years agojuniper: make the cookie-processing code a little clearer.
Guy Harris [Thu, 21 Jul 2022 06:00:22 +0000 (23:00 -0700)] 
juniper: make the cookie-processing code a little clearer.

In the loop searching through the cookie table, just search for a
matching entry and, if we find one, save the entry and break out of the
loop.

If we found a matching entry, process the cookie using that entry.

That way, the cookie processing isn't buried in a loop.

2 years agodoc: Tell CPU arch. for AIX and Solaris. [skip ci]
Denis Ovsienko [Mon, 18 Jul 2022 21:41:37 +0000 (22:41 +0100)] 
doc: Tell CPU arch. for AIX and Solaris. [skip ci]

2 years agoINSTALL.md: Add doc/README.*
Francois-Xavier Le Bail [Mon, 18 Jul 2022 12:06:59 +0000 (14:06 +0200)] 
INSTALL.md: Add doc/README.*

[skip ci]

2 years agoINSTALL.md: Delete the deleted win32 directory
Francois-Xavier Le Bail [Mon, 18 Jul 2022 11:48:34 +0000 (13:48 +0200)] 
INSTALL.md: Delete the deleted win32 directory

2 years agopflog: use nd_ipv4 and nd_ipv6 for addresses in the header.
Guy Harris [Sun, 17 Jul 2022 17:56:05 +0000 (10:56 -0700)] 
pflog: use nd_ipv4 and nd_ipv6 for addresses in the header.

We should be using nd_ types in structures that are overlaid on packets,
so that we control the field offsets (as independently of the compiler
as possible) and to make it more difficult to fetch data fromt he packet
without using packet data accessor routines (to force bounds checking
and conversion from the appropriate byte order to host byte order as
necessary).

2 years agoCHANGES: move some backported changes to the 4.99.2 section. [skip ci]
Guy Harris [Sun, 17 Jul 2022 07:46:27 +0000 (00:46 -0700)] 
CHANGES: move some backported changes to the 4.99.2 section. [skip ci]

2 years agosFlow: add a length check for IPv4 matching the one for IPv6.
Guy Harris [Sun, 17 Jul 2022 06:37:47 +0000 (23:37 -0700)] 
sFlow: add a length check for IPv4 matching the one for IPv6.

2 years agoSet SA_RESTART on non-lethal signals (REQ_INFO, FLUSH_PCAP) to avoid corrupting binar...
Alexandre Ferrieux [Sat, 16 Jul 2022 19:34:39 +0000 (21:34 +0200)] 
Set SA_RESTART on non-lethal signals (REQ_INFO, FLUSH_PCAP) to avoid corrupting binary pcap output

2 years agoForCES: Remove an unnecessary ND_TCHECK_*()
Francois-Xavier Le Bail [Tue, 12 Jul 2022 14:15:15 +0000 (16:15 +0200)] 
ForCES: Remove an unnecessary ND_TCHECK_*()

Use more ND_ICHECK_U()/ND_ICHECK_ZU().

2 years agoIPX: Remove some unnecessary ND_TCHECK_*()
Francois-Xavier Le Bail [Tue, 12 Jul 2022 14:03:07 +0000 (16:03 +0200)] 
IPX: Remove some unnecessary ND_TCHECK_*()

Use more ND_ICHECK_U().
Check invalid before truncated.

2 years agoFix a typo
Francois-Xavier Le Bail [Sun, 10 Jul 2022 14:46:57 +0000 (16:46 +0200)] 
Fix a typo

[skip ci]

2 years agobuild.sh: Clean up better before CMake. [skip ci]
Denis Ovsienko [Sat, 9 Jul 2022 11:09:12 +0000 (12:09 +0100)] 
build.sh: Clean up better before CMake. [skip ci]

2 years agoRemove awk code from mkdep. [skip appveyor]
Denis Ovsienko [Fri, 8 Jul 2022 19:22:52 +0000 (20:22 +0100)] 
Remove awk code from mkdep. [skip appveyor]

It seems possible that some old make implementations could have low
limits on the number and line length of Makefile rules, which would
explain the need for the awk code in mkdep in 1988.

That said, many still-used copies and derivatives of mkdep do not have
the awk code, which hints that either the problem no longer exists or
the workarounds have since settled elsewhere: most compilers that
Autoconf cares to use for dependency generation (GCC, Clang and XL C
16.1) produce dependency rules with long lines already nicely wrapped,
and even though SunStudio 11 produces plenty of short lines, the result
does not affect make on Solaris 9.

Since the only practical effect of the awk code seems to be a bug that
sometimes manifests in edge cases as explained in GH pull request #651,
instead of using a more complicated awk script (as in OpenLDAP) drop it
altogether (as in GCC) and presume the only practical effect to be
elimination of the bug unless proven otherwise.

2 years agoIn README.solaris.md discuss Oracle too. [skip ci]
Denis Ovsienko [Fri, 8 Jul 2022 13:27:02 +0000 (14:27 +0100)] 
In README.solaris.md discuss Oracle too. [skip ci]

2 years agoFix some typos
Francois-Xavier Le Bail [Mon, 4 Jul 2022 09:58:59 +0000 (11:58 +0200)] 
Fix some typos

[skip ci]

2 years agoPPP: Don't process further if protocol is unknown (-e option)
Francois-Xavier Le Bail [Sun, 3 Jul 2022 14:05:38 +0000 (16:05 +0200)] 
PPP: Don't process further if protocol is unknown (-e option)

2 years agoRemove trailing spaces
Francois-Xavier Le Bail [Sun, 3 Jul 2022 13:09:51 +0000 (15:09 +0200)] 
Remove trailing spaces

2 years agoAdd a vendor document URL to print-arista.c. [skip ci]
Denis Ovsienko [Tue, 21 Jun 2022 21:48:26 +0000 (22:48 +0100)] 
Add a vendor document URL to print-arista.c. [skip ci]

2 years agoUpdate AIX and Solaris-related specifics.
Denis Ovsienko [Wed, 15 Jun 2022 10:04:58 +0000 (11:04 +0100)] 
Update AIX and Solaris-related specifics.

2 years agoFix building on AIX/POWER with XL C.
Denis Ovsienko [Wed, 15 Jun 2022 09:47:01 +0000 (10:47 +0100)] 
Fix building on AIX/POWER with XL C.

"./netdissect.h", line 283.1: 1506-277 (S) Syntax error: possible
  missing ';' or ','?
make: 1254-004 The error code from the last command is 1.

2 years agoSay CONTRIBUTING.md in Makefile.in too. [skip ci]
Denis Ovsienko [Tue, 14 Jun 2022 23:08:18 +0000 (00:08 +0100)] 
Say CONTRIBUTING.md in Makefile.in too. [skip ci]

2 years agoImprove error detection in "make releasetar". [skip ci]
Denis Ovsienko [Tue, 14 Jun 2022 23:02:41 +0000 (00:02 +0100)] 
Improve error detection in "make releasetar". [skip ci]

(Same as in libpcap commit d62ed0c.)

Before:

$ make releasetar
tar: CONTRIBUTING: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
Cleaning...
$ make distclean

After:

$ make releasetar
tar: CONTRIBUTING: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
make: *** [Makefile:475: releasetar] Error 2

2 years agoMention illumos properly in README.md. [skip ci]
Denis Ovsienko [Mon, 13 Jun 2022 09:13:09 +0000 (10:13 +0100)] 
Mention illumos properly in README.md. [skip ci]

2 years agoConvert CONTRIBUTING to Markdown. [skip ci]
Denis Ovsienko [Thu, 9 Jun 2022 09:14:26 +0000 (10:14 +0100)] 
Convert CONTRIBUTING to Markdown. [skip ci]

2 years agoPPP: Add tests to avoid incorrectly re-entering ppp_hdlc()
Francois-Xavier Le Bail [Mon, 6 Jun 2022 14:36:57 +0000 (16:36 +0200)] 
PPP: Add tests to avoid incorrectly re-entering ppp_hdlc()

2 years agoNFS: Rename a printer
Francois-Xavier Le Bail [Sun, 22 May 2022 13:37:18 +0000 (15:37 +0200)] 
NFS: Rename a printer

Rename print_nfsaddr() to nfsaddr_print, with _print suffix
like in most similar cases.

3 years agoArista: Refine the output format and print HwInfo.
Denis Ovsienko [Thu, 14 Apr 2022 14:49:11 +0000 (15:49 +0100)] 
Arista: Refine the output format and print HwInfo.

See pull request GH#955.

Add a comment with the Timestamp packet diagram.  Define
ARISTA_SUBTYPE_TIMESTAMP as a two-byte integer, same as it is on the
wire.  Break the version field into three fields and add printing of
HwInfo.  Lose an unused variable and a few named constants.  When
carrying whole seconds over from nanoseconds, use a large enough type
for seconds and do not forget to correct nanoseconds afterwards.  Print
all fields using tok2str() and DHCP-like format.  Update the associated
tests.

3 years agoAdd some const qualifiers
Francois-Xavier Le Bail [Fri, 8 Apr 2022 13:34:17 +0000 (15:34 +0200)] 
Add some const qualifiers

Moreover:
Fix indentation.

3 years agoBGP: Remove a misplaced and unneeded test file
Francois-Xavier Le Bail [Thu, 7 Apr 2022 11:09:50 +0000 (13:09 +0200)] 
BGP: Remove a misplaced and unneeded test file

There is already the test file: tests/bgp-enhanced-route-refresh.pcapng.

3 years agoAdd pcap file to exercise corner cases for BGP shutdown message printer
Bill Fenner [Tue, 5 Apr 2022 01:24:14 +0000 (18:24 -0700)] 
Add pcap file to exercise corner cases for BGP shutdown message printer

This pcap file contains 3 corner cases:
1. A packet with more data than the length provides for
2. A packet that has a shutdown message with zero data
3. A packet whose shutdown message length is longer than the remaining data
   in the notification

3 years agoRemove a trailing space
Francois-Xavier Le Bail [Sun, 3 Apr 2022 11:27:56 +0000 (13:27 +0200)] 
Remove a trailing space

3 years agoGeneve: update format_opt_class
Dror Eiger [Thu, 10 Feb 2022 13:12:49 +0000 (15:12 +0200)] 
Geneve: update format_opt_class

Per https://www.iana.org/assignments/nvo3/nvo3.xhtml
Also add test for GCP

3 years agoAdd some const qualifiers
Francois-Xavier Le Bail [Sat, 2 Apr 2022 11:21:29 +0000 (13:21 +0200)] 
Add some const qualifiers

3 years agoFix a typo
Francois-Xavier Le Bail [Sat, 2 Apr 2022 11:01:28 +0000 (13:01 +0200)] 
Fix a typo

Moreover:
Fix indentation.

[skip ci]

3 years agoFail if nd_push_buffer() or nd_push_snaplen() fails.
Guy Harris [Fri, 1 Apr 2022 22:28:33 +0000 (15:28 -0700)] 
Fail if nd_push_buffer() or nd_push_snaplen() fails.

Always call ndo->ndo_error with a memory-allocation error if they fail.

Add WARN_UNUSED_RESULT for compilers that support it, and use it for
those routines, so that any future code that doesn't check for failure
gets a warning.

3 years agoCHANGES: add another change in the main and 4.99 branches. [skip ci]
Guy Harris [Thu, 31 Mar 2022 18:58:16 +0000 (11:58 -0700)] 
CHANGES: add another change in the main and 4.99 branches. [skip ci]

3 years agoHave routines that set the snapend take a buffer pointer and length as args.
Guy Harris [Thu, 31 Mar 2022 09:29:19 +0000 (02:29 -0700)] 
Have routines that set the snapend take a buffer pointer and length as args.

Have nd_push_buffer() take a snapshot length, not a snapshot end, as
its last argument.

Replace nd_push_snapend() and nd_change_snapend() with nd_push_snaplen()
and nd_change_snaplen(), both of which take a pointer into the packet
buffer and snapshot length relative to that pointer as arguments.  Have
those routines check the snapshot length to make sure it's not bigger
than the number of bytes in the packet past the pointer, and silently
ignore the requst if it is.

Using a length rather than a pointer avoids the possibility of the
calculation of the snapshot end overflowing and resulting in a snapshot
end *before* the point in the buffer.

Add a test for this, with a capture file containing an IPv6 packet with
an extremely large "jumbo" packet size.

Revert the "Make sure we don't set the snapend before the beginning of
the packet." changes, as they no longer apply with this change (which
also makes sure we don't set the snapend before the beginning of the
packet).

3 years agoRemove four test files
Francois-Xavier Le Bail [Wed, 30 Mar 2022 15:05:05 +0000 (17:05 +0200)] 
Remove four test files

These pcap(ng) files were not tcpdump test files but libpcap test files.
They are now in the libpcap tests directory.

3 years agoMake sure we don't set the snapend before the beginning of the packet.
Guy Harris [Tue, 29 Mar 2022 07:51:21 +0000 (00:51 -0700)] 
Make sure we don't set the snapend before the beginning of the packet.

If a caller attempts to set it after the current snapend, just silently
ignore the attempt.

If they try to set it before the beginning of the packet, report it as a
bug and quit dissection.  Add a new setjmp() return value meaning "bug"
rather than "truncated packet", add an "nd_bug_longjmp()" routine for
reporting bugs where we should quit dissecting, and use that in this
case.

3 years agoMove nd_trunc_longjmp() to netdissect.h with the other nd_ functions.
Guy Harris [Mon, 28 Mar 2022 19:44:50 +0000 (12:44 -0700)] 
Move nd_trunc_longjmp() to netdissect.h with the other nd_ functions.

It's not particularly tied to the data-extraction functions; this makes
it available elsewhere.

3 years agoKerberos: Print the protocol name
Francois-Xavier Le Bail [Fri, 25 Mar 2022 13:15:43 +0000 (14:15 +0100)] 
Kerberos: Print the protocol name

Update the output of three tests accordingly.

3 years agoKerberos: Remove a redundant bounds check
Francois-Xavier Le Bail [Fri, 25 Mar 2022 08:08:59 +0000 (09:08 +0100)] 
Kerberos: Remove a redundant bounds check

3 years agoCHANGES: Add more changes that has been backported to 4.99.2
Francois-Xavier Le Bail [Sun, 20 Mar 2022 21:45:00 +0000 (22:45 +0100)] 
CHANGES: Add more changes that has been backported to 4.99.2

3 years agoCHANGES: About optional unit suffix on -C file size [skip ci]
Francois-Xavier Le Bail [Sun, 20 Mar 2022 20:17:00 +0000 (21:17 +0100)] 
CHANGES: About optional unit suffix on -C file size  [skip ci]

3 years agoCHANGES: Add more changes that has been backported to 4.99.2
Francois-Xavier Le Bail [Sun, 20 Mar 2022 20:05:29 +0000 (21:05 +0100)] 
CHANGES: Add more changes that has been backported to 4.99.2

3 years agoCHANGES: move a change that has been backported to 4.99.2. [skip ci]
Guy Harris [Sun, 20 Mar 2022 19:13:17 +0000 (12:13 -0700)] 
CHANGES: move a change that has been backported to 4.99.2. [skip ci]

3 years agoCHANGES: add more OpenFlow fixes to the list. [skip ci]
Guy Harris [Sun, 20 Mar 2022 19:07:28 +0000 (12:07 -0700)] 
CHANGES: add more OpenFlow fixes to the list. [skip ci]

3 years agoCHANGES: Add change about config.{guess,sub} update now in 4.99.2 [skip ci]
Francois-Xavier Le Bail [Sun, 20 Mar 2022 17:25:45 +0000 (18:25 +0100)] 
CHANGES: Add change about config.{guess,sub} update now in 4.99.2 [skip ci]

3 years agoCHANGES: Add changes about outputs of -J/-L to stdout
Francois-Xavier Le Bail [Sun, 20 Mar 2022 16:05:22 +0000 (17:05 +0100)] 
CHANGES: Add changes about outputs of -J/-L to stdout

3 years agoCHANGES: Add change about new configure option to help debugging
Francois-Xavier Le Bail [Sun, 20 Mar 2022 13:30:07 +0000 (14:30 +0100)] 
CHANGES: Add change about new configure option to help debugging

3 years agoCHANGES: add a main-only change. [skip ci]
Guy Harris [Sun, 20 Mar 2022 07:44:23 +0000 (00:44 -0700)] 
CHANGES: add a main-only change. [skip ci]

3 years agoCHANGES: remove from the main-only list a change now in 4.99.2. [skip ci]
Guy Harris [Sun, 20 Mar 2022 06:04:28 +0000 (23:04 -0700)] 
CHANGES: remove from the main-only list a change now in 4.99.2. [skip ci]

3 years agoCREDITS: add author of a change backported to 4.99.2. [skip ci]
Guy Harris [Sun, 20 Mar 2022 06:02:41 +0000 (23:02 -0700)] 
CREDITS: add author of a change backported to 4.99.2. [skip ci]

3 years agoCHANGES: add another change backported to 4.99.2. [skip ci]
Guy Harris [Sun, 20 Mar 2022 06:02:14 +0000 (23:02 -0700)] 
CHANGES: add another change backported to 4.99.2. [skip ci]

3 years agoCHANGES: add another change that's now in 4.99.2. [skip ci]
Guy Harris [Sun, 20 Mar 2022 05:47:24 +0000 (22:47 -0700)] 
CHANGES: add another change that's now in 4.99.2. [skip ci]

3 years agoicmp: clean up the extension code and comments.
Guy Harris [Sun, 20 Mar 2022 05:17:43 +0000 (22:17 -0700)] 
icmp: clean up the extension code and comments.

Remove remaining references to them as being MPLS-related;
draft-bonica-icmp-mpls-02 referred to them as "ICMP Extensions for
MultiProtocol Label Switching", but draft-bonica-internet-icmp-00
redefined it as a general extension mechanism, not MPLS-related, and
that draft eventually became RFC 4884.

draft-bonica-icmp-mpls-02 also defined class 2 objects as objects
containing the remaining packet information past the first 128 bytes;
that never became part of an RFC and class 2 was redefined as an
"Interface Information Object" in RFC 5837.

Give some of these details in comments, and move some
extension-related definitions among the rest of the extension stuff.

3 years agoCHANGES: add some main-only changes. [skip ci]
Guy Harris [Sun, 20 Mar 2022 05:10:45 +0000 (22:10 -0700)] 
CHANGES: add some main-only changes. [skip ci]

3 years agoCHANGES: add some more changes now in 4.99.2. [skip ci]
Guy Harris [Sun, 20 Mar 2022 01:58:36 +0000 (18:58 -0700)] 
CHANGES: add some more changes now in 4.99.2. [skip ci]

3 years agoCHANGES: move a change now in 4.99.2 to its section. [skip ci]
Guy Harris [Sun, 20 Mar 2022 00:35:11 +0000 (17:35 -0700)] 
CHANGES: move a change now in 4.99.2 to its section.  [skip ci]

3 years agoCHANGES: add some more changes now in 4.99.2. [skip ci]
Guy Harris [Sun, 20 Mar 2022 00:25:36 +0000 (17:25 -0700)] 
CHANGES: add some more changes now in 4.99.2. [skip ci]

3 years agoCHANGES: move a change that's now in 4.99.2. [skip ci]
Guy Harris [Sat, 19 Mar 2022 23:51:26 +0000 (16:51 -0700)] 
CHANGES: move a change that's now in 4.99.2. [skip ci]

3 years agoCREDITS: remove some no-longer-active contributors that got added back. [skip ci]
Guy Harris [Sat, 19 Mar 2022 23:23:02 +0000 (16:23 -0700)] 
CREDITS: remove some no-longer-active contributors that got added back. [skip ci]

To quote a comment from a 2003 commit that removed them the first time:

        removed people who shouldn't be bugged since they aren't
        actively committing code now.

3 years agoCREDITS: add some names found by scanning the Git logs. [skip ci]
Guy Harris [Sat, 19 Mar 2022 23:16:45 +0000 (16:16 -0700)] 
CREDITS: add some names found by scanning the Git logs. [skip ci]

Update Bill Fenner's email address in the "Past maintainers" list.

3 years agoCHANGES: some more fixes backported to 4.99.2. [skip ci]
Guy Harris [Sat, 19 Mar 2022 21:29:50 +0000 (14:29 -0700)] 
CHANGES: some more fixes backported to 4.99.2. [skip ci]

3 years agoCHANGES: add another change backported to 4.99.2. [skip ci]
Guy Harris [Sat, 19 Mar 2022 21:21:13 +0000 (14:21 -0700)] 
CHANGES: add another change backported to 4.99.2. [skip ci]