Commit Graph

7071 Commits

Author SHA1 Message Date
Francois-Xavier Le Bail
b089a7ac5d 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).
2022-09-11 15:15:33 +02:00
Francois-Xavier Le Bail
d305a3a603 Rename the suffix of a pcapng test file to .pcapng 2022-09-09 16:49:14 +02:00
Donatas Abraitis
9a9d3941e2 bgp: Handle ORF in Route-Refresh messages
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2022-09-07 20:00:36 +00:00
Francois-Xavier Le Bail
fa6d49af9a CHANGES: Add a change that has been backported to 4.99.2
[skip ci]
2022-09-06 10:52:09 +02:00
Francois-Xavier Le Bail
6a8ca2474b 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)
2022-09-04 22:38:56 +02:00
Francois-Xavier Le Bail
9037cb585b GeoNet: Rename a test to specify the version
'geonet_v0_and_calm_fast' for GeoNetworking version 0.

[skip ci]
2022-09-04 20:25:01 +02:00
Francois-Xavier Le Bail
91d3ed4dfb CONTRIBUTING.md: Document the use of "protocol: " in a commit summary
If the commit concerns a protocol, the summary line must start with
"protocol: ".
2022-09-03 20:46:15 +02:00
Francois-Xavier Le Bail
188080f7d7 BGP: Use a 'struct tok' for the flags 2022-09-02 08:54:35 +02:00
Francois-Xavier Le Bail
699711dfb3 Fix a typo
[skip ci]
2022-08-28 21:29:50 +02:00
Francois-Xavier Le Bail
1fc4888a82 BGP: Remove a useless variable 2022-08-27 16:56:14 +00:00
Bill Fenner
fb1bbd495a 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.
2022-08-27 16:56:14 +00:00
Bill Fenner
192e2e1ad0 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.
2022-08-22 21:23:38 +01:00
Francois-Xavier Le Bail
bbcd77cdee IPv6: Add a check for the Jumbo Payload Hop-by-Hop option 2022-08-22 18:04:09 +02:00
Denis Ovsienko
c2c275f9f1 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.
2022-08-20 13:54:17 +01:00
Francois-Xavier Le Bail
ba54739579 RIP: Print an error message for an invalid version
Moreover:
RIP: Print the protocol name even in truncation case or invalid length.
2022-08-15 10:54:54 +02:00
Francois-Xavier Le Bail
da0c0cb6e3 IPv6: Add a Jumbogram test file 2022-08-13 20:59:00 +02:00
Francois-Xavier Le Bail
c3e79e8c4c 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).
2022-08-13 18:27:12 +02:00
Francois-Xavier Le Bail
47a7e20a48 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)) {
2022-08-12 16:54:37 +02:00
Francois-Xavier Le Bail
835bf2c11c 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.
2022-08-10 16:32:25 +02:00
Francois-Xavier Le Bail
b780f21e62 Fix some typos 2022-08-01 17:18:25 +02:00
Francois-Xavier Le Bail
85b72a1f30 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.
2022-07-31 16:16:29 +02:00
Denis Ovsienko
de27d59e78 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.
2022-07-30 15:46:44 +01:00
Denis Ovsienko
e08e6a8e38 Copy build_common.h from libpcap. [skip ci] 2022-07-30 14:44:01 +01:00
Guy Harris
6fa52fef9b 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.
2022-07-26 16:06:40 -07:00
Guy Harris
707241029c 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.
2022-07-21 01:32:44 -07:00
Guy Harris
57be4eb7ed 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.
2022-07-20 23:00:22 -07:00
Denis Ovsienko
d2ea910cf5 doc: Tell CPU arch. for AIX and Solaris. [skip ci] 2022-07-18 22:45:18 +01:00
Francois-Xavier Le Bail
ed64d299a3 INSTALL.md: Add doc/README.*
[skip ci]
2022-07-18 14:07:16 +02:00
Francois-Xavier Le Bail
b510ee0457 INSTALL.md: Delete the deleted win32 directory 2022-07-18 13:49:56 +02:00
Guy Harris
71da7b139e 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).
2022-07-17 10:56:05 -07:00
Guy Harris
e03b398acc CHANGES: move some backported changes to the 4.99.2 section. [skip ci] 2022-07-17 00:46:27 -07:00
Guy Harris
f378a729c3 sFlow: add a length check for IPv4 matching the one for IPv6. 2022-07-16 23:37:47 -07:00
Alexandre Ferrieux
8a28e07f3b Set SA_RESTART on non-lethal signals (REQ_INFO, FLUSH_PCAP) to avoid corrupting binary pcap output 2022-07-16 14:26:58 -07:00
Francois-Xavier Le Bail
5182a25a2a ForCES: Remove an unnecessary ND_TCHECK_*()
Use more ND_ICHECK_U()/ND_ICHECK_ZU().
2022-07-12 16:20:19 +02:00
Francois-Xavier Le Bail
85e566a577 IPX: Remove some unnecessary ND_TCHECK_*()
Use more ND_ICHECK_U().
Check invalid before truncated.
2022-07-12 16:04:01 +02:00
Francois-Xavier Le Bail
f3af2bebb3 Fix a typo
[skip ci]
2022-07-10 16:46:57 +02:00
Denis Ovsienko
83322579a9 build.sh: Clean up better before CMake. [skip ci] 2022-07-09 12:09:12 +01:00
Denis Ovsienko
8238d6c139 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.
2022-07-08 20:22:52 +01:00
Denis Ovsienko
b11779b5ae In README.solaris.md discuss Oracle too. [skip ci] 2022-07-08 14:31:30 +01:00
Francois-Xavier Le Bail
7d2bc7fcb5 Fix some typos
[skip ci]
2022-07-04 14:03:15 +02:00
Francois-Xavier Le Bail
12cded8329 PPP: Don't process further if protocol is unknown (-e option) 2022-07-03 16:07:07 +02:00
Francois-Xavier Le Bail
a0b5d87b67 Remove trailing spaces 2022-07-03 15:09:51 +02:00
Denis Ovsienko
67c3191b49 Add a vendor document URL to print-arista.c. [skip ci] 2022-06-21 22:48:26 +01:00
Denis Ovsienko
daad3ca54b Update AIX and Solaris-related specifics. 2022-06-15 11:04:58 +01:00
Denis Ovsienko
dceb3b47e5 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.
2022-06-15 10:47:01 +01:00
Denis Ovsienko
b50d074de3 Say CONTRIBUTING.md in Makefile.in too. [skip ci] 2022-06-15 00:11:45 +01:00
Denis Ovsienko
9a0d013dfc 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
2022-06-15 00:11:45 +01:00
Denis Ovsienko
c7ab3c6320 Mention illumos properly in README.md. [skip ci] 2022-06-13 10:13:09 +01:00
Denis Ovsienko
af98bb4776 Convert CONTRIBUTING to Markdown. [skip ci] 2022-06-09 10:16:26 +01:00
Francois-Xavier Le Bail
26231dad8b PPP: Add tests to avoid incorrectly re-entering ppp_hdlc() 2022-06-06 17:15:26 +02:00