Commit Graph

7114 Commits

Author SHA1 Message Date
Denis Ovsienko
0d397bff47 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.
2023-01-31 12:38:49 +00:00
Guy Harris
1e9b9807f9 CHANGES: add a change backported to 4.99.x [skip ci] 2023-01-30 15:06:21 -08:00
Guy Harris
af51eea290 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.
2023-01-30 12:46:44 -08:00
Francois-Xavier Le Bail
ce5f51e082 CHANGES: Add a change backported to 4.99
[skip ci]
2023-01-28 12:12:00 +01:00
Francois-Xavier Le Bail
5caf421126 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.
2023-01-28 11:48:42 +01:00
Denis Ovsienko
40eeb0f3d4 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.
2023-01-27 18:42:47 +00:00
Denis Ovsienko
718227289a configure: Apply autoupdate 2.69. [skip appveyor]
Among other things this squelches many warnings from Autoconf 2.71.
2023-01-25 22:33:52 +00:00
Denis Ovsienko
43670fb635 Lose LBL_LIBS and various pfopen() entourage.
tcpdump does not call pfopen().
2023-01-24 08:57:11 +00:00
David Karoly
0c2b05b735 build_common: fix missing ldd on Haiku 2023-01-22 18:05:02 +01:00
Guy Harris
2fd3048cbf CHANGES: add a commit that will be backported to 4.99. [skip ci] 2023-01-20 18:15:26 -08:00
Guy Harris
386ee9a722 configure: boost the minimum autoconf version to 2.69.
We get an error with 2.64; jump to 2.69.
2023-01-20 18:01:37 -08:00
Denis Ovsienko
7cc28450d9 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.
2023-01-20 19:35:04 +00:00
Denis Ovsienko
f7f6d6ff5f 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.
2023-01-19 21:26:39 +00:00
Denis Ovsienko
cee234c5e5 Spell INSTALL.md in Autoconf messages. [skip ci] 2023-01-17 22:57:31 +00:00
Francois-Xavier Le Bail
2cfd1f51b9 CHANGES: Add a change backported to 4.99
[skip ci]
2023-01-16 21:17:56 +01:00
Francois-Xavier Le Bail
98145e4ca7 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.
2023-01-16 20:12:53 +01:00
Denis Ovsienko
d6e3ebf92c Fixup a comment in CMakeLists.txt. [skip ci] 2023-01-15 22:48:59 +00:00
Denis Ovsienko
94f232c1ab 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
2023-01-14 22:55:27 +00:00
David Karoly
bdece165ac CMake: search for gethostbyaddr() in libnetwork 2023-01-14 13:24:12 -08:00
Jerome Duval
13b7faac2c autoconf: search for gethostbyaddr() in libnetwork
This is needed for building on Haiku.
2023-01-14 13:22:31 -08:00
Guy Harris
b1ccc20ccc 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.
2023-01-14 03:22:44 -08:00
Francois-Xavier Le Bail
83231f5561 CHANGES: Do section headers for 4.99.3, 4.99.4 and main
[skip ci]
2023-01-13 10:37:01 +01:00
Francois-Xavier Le Bail
258df5c65f Makefile.in: Get rid of a remain of gnuc.h
gnuc.h was removed in commit fcf0144ed2.

[skip ci]
2023-01-10 13:21:44 +01:00
Guy Harris
3e536b6312 CHANGES: add another change backported to the 4.99 branch. [skip ci] 2023-01-09 04:03:57 -08:00
Guy Harris
ed6d4f3054 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.
2023-01-09 03:57:42 -08:00
Denis Ovsienko
737308bc0f Remove version.c from .gitignore. [skip ci]
The file does not exist since commit 4943adf.
2023-01-07 22:09:41 +00:00
Denis Ovsienko
861ff29b1c CHANGES: Add an entry for the previous commit. [skip ci] 2023-01-06 21:10:24 +00:00
Bill Fenner
399c9c7a72 arista: update test pcap with hwinfo values 2023-01-04 05:21:31 -08:00
Francois-Xavier Le Bail
85f876ba89 Fix some typos in comments
[skip ci]
2023-01-03 13:11:22 +01:00
Francois-Xavier Le Bail
3a348eca7b CHANGES: Add a change backported to 4.99
[skip ci]
2023-01-03 12:48:33 +01:00
Francois-Xavier Le Bail
0c7aadc5c6 CHANGES: Add some changes backported to 4.99 2023-01-02 20:12:30 +01:00
Francois-Xavier Le Bail
a653ca0748 CHANGES: Add a change backported to 4.99
[skip ci]
2023-01-02 19:31:22 +01:00
Francois-Xavier Le Bail
6cdcda2848 PTP: Print un-allocated values for the message field as "Reserved"
instead of "none".
2023-01-02 19:14:37 +01:00
David Mirabito
b044e5ec32 PTP: use the proper values for the control field 2023-01-02 18:06:30 +00:00
Francois-Xavier Le Bail
1815384b2c CHANGES: Move "Source code" section before "Building and testing" one
[skip ci]
2023-01-01 20:23:55 +01:00
Ege Çetin
ab17cb4764 smbutil.c: Replace obsolete function call (asctime) 2023-01-01 19:08:42 +00:00
Denis Ovsienko
d74c65c5a7 CMake: Fix a typo in a comment. [skip ci] 2023-01-01 17:12:39 +00:00
Francois-Xavier Le Bail
f39c83011b CHANGES: Move some changes backported to 4.99 2023-01-01 12:27:12 +01:00
Francois-Xavier Le Bail
e6d119663f CHANGES: Update after the 4.99.2 release
Add the 4.99.3 section.
2023-01-01 10:36:18 +01:00
Denis Ovsienko
94fb0cdaf1 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).
2022-12-31 03:15:22 +00:00
Francois-Xavier Le Bail
86cd6215d6 Cirrus CI: Run the "make whitespacecheck" command in the Linux task
There is no need to add this command in all tasks.
2022-12-19 21:23:01 +01:00
Francois-Xavier Le Bail
ef280660f2 Makefile.in: Add the whitespacecheck target
Display errors when there are trailing space(s)/tab(s).

[skip ci]
2022-12-19 21:04:18 +01:00
Francois-Xavier Le Bail
47e88c01d4 TESTLIST: Update some comments (.sh -> .tests) 2022-12-19 11:03:47 +01:00
Denis Ovsienko
eaaa2f168a 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
2022-12-18 21:38:58 +00:00
Francois-Xavier Le Bail
baee15d316 PTP: Replace some ' ,' with ', ' (style)
[skip ci]
2022-12-12 14:53:28 +01:00
Francois-Xavier Le Bail
d8b6f680b4 PTP: Remove an unused macro
Moreover:
Remove extra blank lines.

[skip ci]
2022-12-12 14:36:30 +01:00
Francois-Xavier Le Bail
e4b31af5a5 Fix a typo
[skip ci]
2022-12-11 20:04:47 +01:00
Francois-Xavier Le Bail
02a09dc8d3 Makefile.in: Add "make -s install" in the releasecheck target 2022-12-11 19:03:19 +01:00
Denis Ovsienko
d98b1777c7 Cirrus CI: Switch macOS to AArch64. [skip appveyor]
Same as in tcpslice and libpcap.
2022-12-10 16:11:58 +00:00
Francois-Xavier Le Bail
6037720bd5 CHANGES: Add a main-only change
[skip ci]
2022-12-08 14:41:42 +01:00