]> The Tcpdump Group git mirrors - tcpdump/log
tcpdump
2 years agoCMake: set man page section numbers.
Guy Harris [Mon, 9 Jan 2023 11:57:42 +0000 (03:57 -0800)] 
CMake: set man page section numbers.

We use both MAN_FILE_FORMATS and MAN_MISC_INFO in tcpdump.1; set them

Also set _SUN on AIX, as we do with the configure script.

2 years agoRemove version.c from .gitignore. [skip ci]
Denis Ovsienko [Sat, 7 Jan 2023 22:09:41 +0000 (22:09 +0000)] 
Remove version.c from .gitignore. [skip ci]

The file does not exist since commit 4943adf.

2 years agoCHANGES: Add an entry for the previous commit. [skip ci]
Denis Ovsienko [Fri, 6 Jan 2023 21:08:41 +0000 (21:08 +0000)] 
CHANGES: Add an entry for the previous commit. [skip ci]

2 years agoarista: update test pcap with hwinfo values 1027/head
Bill Fenner [Wed, 4 Jan 2023 13:21:31 +0000 (05:21 -0800)] 
arista: update test pcap with hwinfo values

2 years agoFix some typos in comments
Francois-Xavier Le Bail [Tue, 3 Jan 2023 12:11:22 +0000 (13:11 +0100)] 
Fix some typos in comments

[skip ci]

2 years agoCHANGES: Add a change backported to 4.99
Francois-Xavier Le Bail [Tue, 3 Jan 2023 11:48:33 +0000 (12:48 +0100)] 
CHANGES: Add a change backported to 4.99

[skip ci]

2 years agoCHANGES: Add some changes backported to 4.99
Francois-Xavier Le Bail [Mon, 2 Jan 2023 19:12:30 +0000 (20:12 +0100)] 
CHANGES: Add some changes backported to 4.99

2 years agoCHANGES: Add a change backported to 4.99
Francois-Xavier Le Bail [Mon, 2 Jan 2023 18:28:07 +0000 (19:28 +0100)] 
CHANGES: Add a change backported to 4.99

[skip ci]

2 years agoPTP: Print un-allocated values for the message field as "Reserved"
Francois-Xavier Le Bail [Mon, 2 Jan 2023 18:14:16 +0000 (19:14 +0100)] 
PTP: Print un-allocated values for the message field as "Reserved"

instead of "none".

2 years agoPTP: use the proper values for the control field
David Mirabito [Fri, 9 Dec 2022 22:24:50 +0000 (14:24 -0800)] 
PTP: use the proper values for the control field

2 years agoCHANGES: Move "Source code" section before "Building and testing" one
Francois-Xavier Le Bail [Sun, 1 Jan 2023 19:21:28 +0000 (20:21 +0100)] 
CHANGES: Move "Source code" section before "Building and testing" one

[skip ci]

2 years agosmbutil.c: Replace obsolete function call (asctime)
Ege Çetin [Sun, 1 Jan 2023 12:29:03 +0000 (12:29 +0000)] 
smbutil.c: Replace obsolete function call (asctime)

2 years agoCMake: Fix a typo in a comment. [skip ci]
Denis Ovsienko [Sun, 1 Jan 2023 17:12:39 +0000 (17:12 +0000)] 
CMake: Fix a typo in a comment. [skip ci]

2 years agoCHANGES: Move some changes backported to 4.99
Francois-Xavier Le Bail [Sun, 1 Jan 2023 11:27:12 +0000 (12:27 +0100)] 
CHANGES: Move some changes backported to 4.99

2 years agoCHANGES: Update after the 4.99.2 release
Francois-Xavier Le Bail [Sun, 1 Jan 2023 09:34:23 +0000 (10:34 +0100)] 
CHANGES: Update after the 4.99.2 release

Add the 4.99.3 section.

2 years agoCHANGES: Refine the 4.99.2 section. [skip ci]
Denis Ovsienko [Sat, 31 Dec 2022 03:04:58 +0000 (03:04 +0000)] 
CHANGES: Refine the 4.99.2 section. [skip ci]

List user-visible changes that have been made but did not appear in the
change log.  Remove entries that are duplicate (including EIGRP from
4.99.1) or have been superseded by later changes (make releasetar).

2 years agoCirrus CI: Run the "make whitespacecheck" command in the Linux task
Francois-Xavier Le Bail [Mon, 19 Dec 2022 20:21:02 +0000 (21:21 +0100)] 
Cirrus CI: Run the "make whitespacecheck" command in the Linux task

There is no need to add this command in all tasks.

2 years agoMakefile.in: Add the whitespacecheck target
Francois-Xavier Le Bail [Mon, 19 Dec 2022 19:52:33 +0000 (20:52 +0100)] 
Makefile.in: Add the whitespacecheck target

Display errors when there are trailing space(s)/tab(s).

[skip ci]

2 years agoTESTLIST: Update some comments (.sh -> .tests)
Francois-Xavier Le Bail [Mon, 19 Dec 2022 10:03:47 +0000 (11:03 +0100)] 
TESTLIST: Update some comments (.sh -> .tests)

2 years agoLose an unused variable in print-snmp.c.
Denis Ovsienko [Sun, 18 Dec 2022 21:38:58 +0000 (21:38 +0000)] 
Lose an unused variable in print-snmp.c.

./print-snmp.c:1200:17: warning: variable 'ind' set but not used
  [-Wunused-but-set-variable]

clang version 15.0.1
Target: aarch64-portbld-freebsd13.1

2 years agoPTP: Replace some ' ,' with ', ' (style)
Francois-Xavier Le Bail [Mon, 12 Dec 2022 13:52:07 +0000 (14:52 +0100)] 
PTP: Replace some ' ,' with ', ' (style)

[skip ci]

2 years agoPTP: Remove an unused macro
Francois-Xavier Le Bail [Mon, 12 Dec 2022 13:31:09 +0000 (14:31 +0100)] 
PTP: Remove an unused macro

Moreover:
Remove extra blank lines.

[skip ci]

2 years agoFix a typo
Francois-Xavier Le Bail [Sun, 11 Dec 2022 19:04:47 +0000 (20:04 +0100)] 
Fix a typo

[skip ci]

2 years agoMakefile.in: Add "make -s install" in the releasecheck target
Francois-Xavier Le Bail [Sun, 11 Dec 2022 17:58:31 +0000 (18:58 +0100)] 
Makefile.in: Add "make -s install" in the releasecheck target

2 years agoCirrus CI: Switch macOS to AArch64. [skip appveyor]
Denis Ovsienko [Sat, 10 Dec 2022 16:11:58 +0000 (16:11 +0000)] 
Cirrus CI: Switch macOS to AArch64. [skip appveyor]

Same as in tcpslice and libpcap.

2 years agoCHANGES: Add a main-only change
Francois-Xavier Le Bail [Thu, 8 Dec 2022 13:41:42 +0000 (14:41 +0100)] 
CHANGES: Add a main-only change

[skip ci]

2 years agobgp: Add support for BGP Role capabilty and OTC attribute
Donatas Abraitis [Thu, 17 Nov 2022 19:45:27 +0000 (21:45 +0200)] 
bgp: Add support for BGP Role capabilty and OTC attribute

Signed-off-by: Donatas Abraitis <[email protected]>
2 years agoCHANGES: Add a main-only change
Francois-Xavier Le Bail [Wed, 30 Nov 2022 12:42:50 +0000 (13:42 +0100)] 
CHANGES: Add a main-only change

2 years agoCI: Introduce and use TCPDUMP_CMAKE_TAINTED
Francois-Xavier Le Bail [Wed, 30 Nov 2022 11:05:07 +0000 (12:05 +0100)] 
CI: Introduce and use TCPDUMP_CMAKE_TAINTED

The new environment variable provides means to declare all or some libpcap
cmake run of a specific environment (CI or a working copy) as tainted.
Add explicit conditions to exempt the cmake run that emit warnings
now and request the compiler to treat warnings as errors *iff* the cmake
run is not tainted. This way if a cmake run that is warning-free now
degrades later, CI will fail it.

The treat warnings as errors cmake option used is:
-Werror=dev
       Make developer warnings errors.

       Make  warnings  that  are  meant  for  the  author of the CMake-
       Lists.txt files errors. By default this will also turn on depre-
       cated warnings as errors.

2 years agoCirrus CI: Add the "make releasecheck" command in the Linux task
Francois-Xavier Le Bail [Sat, 19 Nov 2022 14:49:51 +0000 (15:49 +0100)] 
Cirrus CI: Add the "make releasecheck" command in the Linux task

There is no need to add this command in all tasks.

2 years agoMakefile.in: Add the releasecheck target
Francois-Xavier Le Bail [Sat, 19 Nov 2022 14:41:46 +0000 (15:41 +0100)] 
Makefile.in: Add the releasecheck target

This change do, in a fresh directory from a release archive:
1) a "configure --enable-smb" and build,
2) a "cmake -DENABLE_SMB=yes" and build.

It may allow to find some necessary files missing in the release archive.

Define CMAKE_MESSAGE_LOG_LEVEL=NOTICE to minimize the cmake output.
Define CMAKE_RULE_MESSAGES=OFF to minimize the make output in cmake case.

[skip ci]

2 years agocmake: Update the minimum required version to 2.8.12 (except Windows)
Francois-Xavier Le Bail [Fri, 25 Nov 2022 14:49:52 +0000 (15:49 +0100)] 
cmake: Update the minimum required version to 2.8.12 (except Windows)

Windows minimum required is already 3.12.

This change avoids this warning:
CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

(Same as in libpcap.)

2 years agoCREDITS: Add authors of changes backported to 4.99.2
Francois-Xavier Le Bail [Mon, 21 Nov 2022 20:54:06 +0000 (21:54 +0100)] 
CREDITS: Add authors of changes backported to 4.99.2

[skip ci]

2 years agoCHANGES: Add more changes backported to 4.99.2
Francois-Xavier Le Bail [Mon, 7 Nov 2022 08:35:17 +0000 (09:35 +0100)] 
CHANGES: Add more changes backported to 4.99.2

[skip ci]

2 years agoCHANGES: Move a change backported to 4.99
Francois-Xavier Le Bail [Sat, 5 Nov 2022 12:27:29 +0000 (13:27 +0100)] 
CHANGES: Move a change backported to 4.99

[skip ci]

2 years agoCHANGES: Add a change backported to 4.99
Francois-Xavier Le Bail [Wed, 2 Nov 2022 20:48:58 +0000 (21:48 +0100)] 
CHANGES: Add a change backported to 4.99

2 years agoRemove the release candidate rcX targets
Francois-Xavier Le Bail [Mon, 31 Oct 2022 16:20:18 +0000 (17:20 +0100)] 
Remove the release candidate rcX targets

These tricky targets used "autoreconf -f" (via "make releasetar") and
they changed the VERSION and configure files locally.

If building a release candidate tar archive is needed, it's better to:
Update VERSION with rcX suffix and configure via "autoreconf -f",
commit them, add a tag and build the archive via "make releasetar".
It should display: Archive build from tag tcpdump-...rcX.

Note: the "autoreconf -f" command changes the configure file in an
uncontrolled way (runstatedir, #define LARGE_OFF_T, etc.) depending on
the autoconf version.
It is necessary to choose the parts that will be added in the commit
with "git add -i".

This is a follow-up to c378c2a04cdb3c8ec35341ca503cf1a2889a77d5.

[skip ci]

2 years agoRefine the change log. [skip ci]
Denis Ovsienko [Sun, 30 Oct 2022 23:17:08 +0000 (23:17 +0000)] 
Refine the change log. [skip ci]

In the 4.99.2 section fix a typo and move changes that are not specific
to a particular protocol to the "source code" sub-section.

2 years agoAdd a change log entry for CMake RPATH bug fix. [skip ci]
Denis Ovsienko [Sun, 30 Oct 2022 13:44:24 +0000 (13:44 +0000)] 
Add a change log entry for CMake RPATH bug fix. [skip ci]

2 years agodoc: Update README.NetBSD.md after commit dcfed11. [skip ci]
Denis Ovsienko [Sun, 30 Oct 2022 12:36:18 +0000 (12:36 +0000)] 
doc: Update README.NetBSD.md after commit dcfed11. [skip ci]

2 years agoUse "git archive" for the "make releasetar" process
Francois-Xavier Le Bail [Fri, 28 Oct 2022 16:34:55 +0000 (18:34 +0200)] 
Use "git archive" for the "make releasetar" process

Use the release tag if it exists or use HEAD.

Remove the "autoreconf -f" command, because it changes the configure file
locally in an uncontrolled way (runstatedir, #define LARGE_OFF_T, etc.)
depending on the autoconf version. This command is run in the release
process before a commit and we can choose the parts that will be added
in the commit.

Note:
The following target (rcX) must be updated ou removed in a next step
because it was using "autoreconf -f" (via "make releasetar") and it
changes the VERSION and configure files locally.

This change
1) Ensures that we only release files from tag/HEAD, not locally
   modified ones.
2) Avoids disclosing personal data such as the username/group of the
   local user.
3) Puts by default a umask of 0002, which turns off the world write bit
   on files in the archive.
4) Avoids problems on some OSes (no more tar, Git builtin tar.gz
   handling).

2 years agoman: Lose an excess newline in tcpdump(1).
Denis Ovsienko [Wed, 19 Oct 2022 20:34:22 +0000 (21:34 +0100)] 
man: Lose an excess newline in tcpdump(1).

This improves the derived HTML version and has no effect on the plain
text version, as far as I can tell.

[skip ci]

2 years agoCONTRIBUTING: Add some tags
Francois-Xavier Le Bail [Mon, 17 Oct 2022 12:51:30 +0000 (14:51 +0200)] 
CONTRIBUTING: Add some tags

2 years agoCONTRIBUTING.md: Add information about the instrumentation of functions
Francois-Xavier Le Bail [Mon, 17 Oct 2022 12:03:44 +0000 (14:03 +0200)] 
CONTRIBUTING.md: Add information about the instrumentation of functions

2 years agoRename the suffix of a pcapng test file to .pcapng
Francois-Xavier Le Bail [Sun, 16 Oct 2022 05:55:42 +0000 (07:55 +0200)] 
Rename the suffix of a pcapng test file to .pcapng

2 years agoCHANGES: Add a change backported to 4.99
Francois-Xavier Le Bail [Fri, 14 Oct 2022 04:34:22 +0000 (06:34 +0200)] 
CHANGES: Add a change backported to 4.99

2 years agoPTP: fix printing of the correction fields
Charles (Chas) Williams [Wed, 5 Oct 2022 11:58:01 +0000 (07:58 -0400)] 
PTP: fix printing of the correction fields

The nanosecond part of the correction field is 48 bits and the
sub-nanosecond part is 16 bits.

2 years agoCHANGES: Add a change backported to 4.99
Francois-Xavier Le Bail [Wed, 12 Oct 2022 06:30:22 +0000 (08:30 +0200)] 
CHANGES: Add a change backported to 4.99

[skip ci]

2 years agoNFS: Fix the format for printing an unsigned int
Francois-Xavier Le Bail [Mon, 10 Oct 2022 07:41:59 +0000 (09:41 +0200)] 
NFS: Fix the format for printing an unsigned int

2 years agoCHANGES: Add a main-only change
Francois-Xavier Le Bail [Fri, 7 Oct 2022 12:08:34 +0000 (14:08 +0200)] 
CHANGES: Add a main-only change

2 years agobgp: Add Origin Validation State extended community
Donatas Abraitis [Tue, 4 Oct 2022 09:02:00 +0000 (12:02 +0300)] 
bgp: Add Origin Validation State extended community

Signed-off-by: Donatas Abraitis <[email protected]>
2 years agoBGP: Update an error message
Francois-Xavier Le Bail [Thu, 6 Oct 2022 16:49:27 +0000 (18:49 +0200)] 
BGP: Update an error message

From:
    [invalid total segments len 7]
To:
    [total segments length 7 != N x 6] (invalid)

2 years agoCHANGES: Add a main-only change
Francois-Xavier Le Bail [Wed, 5 Oct 2022 16:28:57 +0000 (18:28 +0200)] 
CHANGES: Add a main-only change

2 years agoBGP: add dissector for BGPsec capability and path
Colin Sames [Sun, 26 Sep 2021 14:03:42 +0000 (16:03 +0200)] 
BGP: add dissector for BGPsec capability and path

BGPsec is specified in RFC8205. It adds a path attribute to BGP update
messages and a capability to BGP open messages.

tests: add pcap for BGPsec test

2 years agoconfigure: use pcap-config --static-pcap-only if available.
Guy Harris [Fri, 30 Sep 2022 23:29:34 +0000 (16:29 -0700)] 
configure: use pcap-config --static-pcap-only if available.

If we're linking with a libpcap in ../libpcap*, it's static, but we only
need to link with the libraries on wich it immediately depends, we don't
need to link with the libraries on which those libraries depend, etc..

So, if ../libpcap*/pcap-config supports --static-pcap-only, use that.

2 years agoRemove a trailing space
Francois-Xavier Le Bail [Fri, 30 Sep 2022 06:53:20 +0000 (08:53 +0200)] 
Remove a trailing space

[skip ci]

2 years agoUpdate config.{guess,sub}, timestamps 2022-08-01
Francois-Xavier Le Bail [Mon, 26 Sep 2022 12:59:25 +0000 (14:59 +0200)] 
Update config.{guess,sub}, timestamps 2022-08-01

From repository git://git.savannah.gnu.org/config.git

2 years agocmake: expand a comment. [skip ci]
Guy Harris [Mon, 26 Sep 2022 07:40:50 +0000 (00:40 -0700)] 
cmake: expand a comment. [skip ci]

The requirement for setting the run-time path in an executable is not
unique to NetBSD; it also appears in the other BSDs, Linux, and Solaris.

2 years agocmake: prevent stripping of the rpath on installation.
Guy Harris [Sun, 25 Sep 2022 21:35:38 +0000 (14:35 -0700)] 
cmake: prevent stripping of the rpath on installation.

This should fix issue #1008.

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]