]> The Tcpdump Group git mirrors - tcpdump/log
tcpdump
2 years agoMakefile.in: don't remove configure and config.h.in in make distclean. 1034/head
Guy Harris [Sun, 5 Feb 2023 21:23:57 +0000 (13:23 -0800)] 
Makefile.in: don't remove configure and config.h.in in make distclean.

In the GNU makefile standards, "make distclean" removes everything
that's not part of the source distribution; this does *not* include the
configure script or the config.h.in file, as those are in the release
tarball, so that building from a source tarball doesn't require having
autoconf.  This allows somebody building from the source tarball to do a
"make distclean" and then reconfigure.

Do, however, remove any release tarball in make distclean, by having
distclean depend on clean.

2 years agotcpdump: plug a memory leak.
Guy Harris [Sun, 5 Feb 2023 20:12:22 +0000 (12:12 -0800)] 
tcpdump: plug a memory leak.

If the -V flag is used, and not all files in the -V file have the same
link-layer type, when the filter is recompiled for a new link-layer
type, the old filter program is leaked.  Free the old filter before
compiling the new filter.

2 years agoHave a common routine for converting dates and times to strings. 1032/head
Guy Harris [Tue, 31 Jan 2023 07:03:16 +0000 (23:03 -0800)] 
Have a common routine for converting dates and times to strings.

Have a routine that takes a buffer, a strftime format, and a struct tm *
as arguments, and:

* checks whether the struct tm * is null and, if so, returns a string
indicating that the date and time couldn't be converted;

* otherwise, passes it to strftime(), along with the buffer and the
format argument and, if strftime() returns 0, meaning the string didn't
fit into the buffer and thus that the buffer's contents are undefined,
returns a string indicating that the date and time didn't fit into the
buffer;

* otherwise, returns a pointer to the buffer.

Call that routine instead of directly calling strftime() in printers;
that prevents printing a buffer with undefined data if the buffer isn't
big enough for the string.

Also, when generating file names using an strftime format, check the
return value of strftime() to make sure the buffer didn't overflow.

2 years agoCirrus CI: Switch FreeBSD from 12.3 to 12.4. [skip appveyor]
Denis Ovsienko [Wed, 1 Feb 2023 21:58:18 +0000 (21:58 +0000)] 
Cirrus CI: Switch FreeBSD from 12.3 to 12.4. [skip appveyor]

(same as in tcpslice and libpcap)

2 years agoautoconf: Lose AC_LBL_CHECK_64BIT_FORMAT. [skip ci]
Denis Ovsienko [Fri, 27 Jan 2023 23:59:48 +0000 (23:59 +0000)] 
autoconf: Lose AC_LBL_CHECK_64BIT_FORMAT. [skip ci]

This macro has been unused since commit 14c81f0 in 2017.

2 years agoautoconf: Add autogen.sh, remove configure and config.h.in
Francois-Xavier Le Bail [Tue, 31 Jan 2023 10:11:12 +0000 (11:11 +0100)] 
autoconf: Add autogen.sh, remove configure and config.h.in

Put autoconf-generated files in the release tarball.

The minimum required version of autoconf is currently 2.69.

If version 2.69 or later is already installed and there is no
autoconf default, it may be necessary to set the AUTORECONF
environment variable to enable the one to use, like:
AUTORECONF=autoreconf-2.69 ./autogen.sh
or
AUTORECONF=autoreconf-2.71 ./autogen.sh

2 years agoRemove unused missing/snprintf.c. [skip ci]
Denis Ovsienko [Tue, 31 Jan 2023 12:38:49 +0000 (12:38 +0000)] 
Remove unused missing/snprintf.c. [skip ci]

The file could be compiled on demand using "make snprintf.o", although
with many warnings, but tcpdump build would never use the file
regardless of the variety of the build.

Some of the code there has been commented out since commit 45aef49 in
2001, and the rest became unused after commit 1ed63b5 in 2019.

2 years agoCHANGES: add a change backported to 4.99.x [skip ci]
Guy Harris [Mon, 30 Jan 2023 23:06:21 +0000 (15:06 -0800)] 
CHANGES: add a change backported to 4.99.x [skip ci]

2 years agoconfigure, CMakeLists.txt: don't check for snprintf().
Guy Harris [Mon, 30 Jan 2023 20:46:44 +0000 (12:46 -0800)] 
configure, CMakeLists.txt: don't check for snprintf().

It's specified by the C90 standard (and, as I remember, by the C89
standard, although I no longer have my paper copy); no need to worry
about ancient environments that lack it, and we have some cases where we
call it in code not protected by #ifdef HAVE_STRFTIME/#endif and haven't
seen any reports of problems.

2 years agoCHANGES: Add a change backported to 4.99
Francois-Xavier Le Bail [Sat, 28 Jan 2023 11:10:55 +0000 (12:10 +0100)] 
CHANGES: Add a change backported to 4.99

[skip ci]

2 years agosmbutil.c: Fix the strftime buffer size
Francois-Xavier Le Bail [Sat, 28 Jan 2023 10:42:56 +0000 (11:42 +0100)] 
smbutil.c: Fix the strftime buffer size

tm_year is an int, thus 'yyyy' for '%Y' is not enough.

This avoids a stack buffer overflow in some cases.

2 years agoconfigure: Modernize AC_CONFIG_HEADER. [skip appveyor]
Denis Ovsienko [Fri, 27 Jan 2023 18:42:47 +0000 (18:42 +0000)] 
configure: Modernize AC_CONFIG_HEADER. [skip appveyor]

This works with Autoconf 2.69 and squelches another warning from
Autoconf 2.71.  Lose an empty optional arument to AC_CONFIG_COMMANDS
while at it.

2 years agoconfigure: Apply autoupdate 2.69. [skip appveyor]
Denis Ovsienko [Wed, 25 Jan 2023 22:28:44 +0000 (22:28 +0000)] 
configure: Apply autoupdate 2.69. [skip appveyor]

Among other things this squelches many warnings from Autoconf 2.71.

2 years agoLose LBL_LIBS and various pfopen() entourage.
Denis Ovsienko [Tue, 24 Jan 2023 08:40:41 +0000 (08:40 +0000)] 
Lose LBL_LIBS and various pfopen() entourage.

tcpdump does not call pfopen().

2 years agobuild_common: fix missing ldd on Haiku 1030/head
David Karoly [Sun, 22 Jan 2023 14:22:51 +0000 (15:22 +0100)] 
build_common: fix missing ldd on Haiku

2 years agoCHANGES: add a commit that will be backported to 4.99. [skip ci]
Guy Harris [Sat, 21 Jan 2023 02:15:07 +0000 (18:15 -0800)] 
CHANGES: add a commit that will be backported to 4.99. [skip ci]

2 years agoconfigure: boost the minimum autoconf version to 2.69.
Guy Harris [Sat, 21 Jan 2023 02:01:37 +0000 (18:01 -0800)] 
configure: boost the minimum autoconf version to 2.69.

We get an error with 2.64; jump to 2.69.

2 years agoReduce aclocal.m4 a little bit more. [skip ci]
Denis Ovsienko [Fri, 20 Jan 2023 19:35:04 +0000 (19:35 +0000)] 
Reduce aclocal.m4 a little bit more. [skip ci]

Remove a copyright boilerplate that stood for IPv6 macros added via
commit c9d84d1 in 1999 and removed via commit 11f73ad in 2015.  Remove
AC_LBL_SSLEAY, which is unused and obsolete.  This change does not
result in any changes in any other files.

2 years agoRemove some unused declarations from aclocal.m4. [skip ci]
Denis Ovsienko [Thu, 19 Jan 2023 21:26:39 +0000 (21:26 +0000)] 
Remove some unused declarations from aclocal.m4. [skip ci]

AC_LBL_FIXINCLUDES, AC_LBL_UNION_WAIT and AC_LBL_HAVE_RUN_PATH have no
purpose in this source tree.  AC_LBL_SHLIBS_INIT does not exist.  This
change does not introduce meaningful changes in any other files.

2 years agoSpell INSTALL.md in Autoconf messages. [skip ci]
Denis Ovsienko [Tue, 17 Jan 2023 22:57:31 +0000 (22:57 +0000)] 
Spell INSTALL.md in Autoconf messages. [skip ci]

2 years agoCHANGES: Add a change backported to 4.99
Francois-Xavier Le Bail [Mon, 16 Jan 2023 20:17:01 +0000 (21:17 +0100)] 
CHANGES: Add a change backported to 4.99

[skip ci]

2 years agoLSP ping: Fix "Unused value" warnings from Coverity
Francois-Xavier Le Bail [Mon, 16 Jan 2023 19:05:20 +0000 (20:05 +0100)] 
LSP ping: Fix "Unused value" warnings from Coverity

This change should fix the following Coverity Scan issues:

CID 1397795 (#1 of 1): Unused value (UNUSED_VALUE)
assigned_pointer: Assigning value from tlv_tptr + 4UL to tlv_tptr here,
but that stored value is overwritten before it can be used.

CID 1397796 (#1 of 1): Unused value (UNUSED_VALUE)
assigned_value: Assigning value from tlv_tlen - 4UL to tlv_tlen here,
but that stored value is overwritten before it can be used.

2 years agoFixup a comment in CMakeLists.txt. [skip ci]
Denis Ovsienko [Sun, 15 Jan 2023 22:48:59 +0000 (22:48 +0000)] 
Fixup a comment in CMakeLists.txt. [skip ci]

2 years agoRemove init_crc10_table() and the entourage.
Denis Ovsienko [Sat, 14 Jan 2023 22:25:18 +0000 (22:25 +0000)] 
Remove init_crc10_table() and the entourage.

As Guy Harris points out in bug report GH #1022, the function has been a
busy no-op since commit e6c39e6 in 2010.  While at it, fixup the Python
code to work on Python 3:

    for i in range(len(crc_table)/8):
TypeError: 'float' object cannot be interpreted as an integer

2 years agoCMake: search for gethostbyaddr() in libnetwork
David Karoly [Sat, 14 Jan 2023 12:57:50 +0000 (13:57 +0100)] 
CMake: search for gethostbyaddr() in libnetwork

2 years agoautoconf: search for gethostbyaddr() in libnetwork
Jerome Duval [Tue, 28 Apr 2015 20:22:20 +0000 (20:22 +0000)] 
autoconf: search for gethostbyaddr() in libnetwork

This is needed for building on Haiku.

2 years agoconfigure: check for gethostbyaddr(), not gethostbyname().
Guy Harris [Sat, 14 Jan 2023 11:21:06 +0000 (03:21 -0800)] 
configure: check for gethostbyaddr(), not gethostbyname().

We use gethostbyaddr() to translate IP addresses in packets to names; we
don't use gethostbyname() to translate names to IP addresses (libpcap
does the latter when compiling filters, so we leave that up to it, and
nothing's left for us to do).

This probably has the same effect as checking for gethostbyname(), but
it makes it a bit clearer why we'd check for it.

2 years agoCHANGES: Do section headers for 4.99.3, 4.99.4 and main
Francois-Xavier Le Bail [Fri, 13 Jan 2023 09:36:55 +0000 (10:36 +0100)] 
CHANGES: Do section headers for 4.99.3, 4.99.4 and main

[skip ci]

2 years agoMakefile.in: Get rid of a remain of gnuc.h
Francois-Xavier Le Bail [Tue, 10 Jan 2023 12:14:21 +0000 (13:14 +0100)] 
Makefile.in: Get rid of a remain of gnuc.h

gnuc.h was removed in commit fcf0144ed224f770c906866a42a9ffa1d707c429.

[skip ci]

2 years agoCHANGES: add another change backported to the 4.99 branch. [skip ci]
Guy Harris [Mon, 9 Jan 2023 12:03:57 +0000 (04:03 -0800)] 
CHANGES: add another change backported to the 4.99 branch. [skip ci]

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).