Up to [cvs.NetBSD.org] / pkgsrc / net / iperf3
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
iperf3: updated to 3.22 3.22 Security notes Thanks to Claude and Ada Logics for finding and reporting two potential security vulnerabilities. One is a remote use-after-free in iperf_server_api.c (ANT-2026-E5BA80X9 / CVE-2026-101283) and the other is a heap buffer overflow in iperf_auth.c (ANT-2026-FXH14FHV / CVE-2026-101276). Thanks to Justin Stitt for reporting and fixing a heap-buffer overflow was fixed in iperf_auth.c. Thanks to Ravindu Lakmina Munaweera (Github: @Ravi-lk) for reporting and fixing a DOS infinite-loop (CVE-2026-102253). Thanks to Dirk Müller for finding and reporting an issue with test parameters (CVE-2026-71217). The iperf-3.18 release notes were updated to reflect that a code change in that version addresses CVE-2026-71218. Notable user-visible changes Attempting to set zero parallel streams is no longer allowed. Zerocopy and rx-copy are now allowed in the case of reverse direction tests and the server (sending side) supports these features but the client (receiving side) does not. The limit on GSO_MAX_DG_IN_BF was fixed to limit the number of segments to the maximum allowed GSO for small message sizes. Notable developer-visible changes In iperf_auth.c, in addition to fixing the heap buffer overflow, the return value of several functions is checked. Several file descriptor leaks have been fixed. In iperf_tcp, connections now timeout to prevent a race condition in accepting new connections to avoid a deadlock Periodic timers are now cancelled at the end of a test DSCP/TOS is now correctly set in the first UDP/TCP stream packet
iperf3: updated to 3.21 iperf-3.21 includes support for GSO and GRO under Linux, improves feature parity for macOS, and adds a number of minor bugs and enhancements. More details on the changes can be found in the release notes.
iperf3: updated to 3.20
iperf-3.20 2025-11-14
NOTE: iperf-3.20 incorporates all of the changes in prior iperf3
releases, including iperf-3.19.1.
* Notable user-visible changes
* Millisecond-resolution representations have been added to JSON
timestamps.
* The reorder_seen metric, where available, is now available in
the JSON output.
* A division by zero error has been fixed.
* Some command-line options were not properly restricted to the
client or server; this problem has been fixed.
* The combination of `--udp` and `--file` is now explicitly
disallowed.
* It is now possible to get both the full JSON result object as
well as streaming intermediate JSON result objects. This
functionality is enabled by using the new `--json-stream-full`
command-line flag, in addition to the existing `--json-stream`
flag
* Sends with `--zerocopy` are now properly seeded with data
instead of being all-zeroes.
* The `--time` flag is now allowed on the iperf3 server to impose
a maximum duration on timed tests.
* The `--rcv-timeout` flag is now ignored for `--bidir`
tests. This change prevents premature termination of
bidirectional tests.
* Several errors in the authentication code were uncovered when
building with OpenSSL 3.5.3 and later versions. These were
fixed.
* Various issues in the iperf3 manual page were fixed up.
* Notable developer-visible changes
* A build failure with uClibc has been fixed.
* It is now possible to use the API to load RSA keys from a file.
* Some calls to sprintf() were replaced with calls to
snprintf(). There were no hazards in the code as written, but
this change might help silence some compiler warnings and
potentially prevent future vulnerabilities.
* Proper error handling has been added to the `unit_atoX()`
functions.
* Some memory handling errors in `t_auth` were fixed.
* Minor enhancements and fixes to GitHub Actions workflows
iperf3: updated to 3.19.1 3.19.1 Notable user-visible changes SECURITY NOTE: Thanks to Han Lee with Apple Information Security for finding and reporting several memory errors including a buffer overflow within the --skip-rx-copy option, and two memory errors within authentication, including a heap overflow in the plaintext password and an assert. An off-by-one heap overflow has been fixed in authentication. (CVE-2025-54349, ESNET-SECADV-2025-0003) An assert in authentication has been removed. (CVE-2025-54350, ESNET-SECADV-2025-0002) A buffer overflow in the --skip-rx-copy option for zerocopy has been fixed. (CVE-2025-54351, ESNET-SECADV-2025-0001)
iperf3: updated to 3.19 iperf-3.19 includes support for MP-TCPv1 under Linux, keepalives on the control connection, support for the MSG_TRUNC receive option, and a number of minor bug fixes. The release notes contain more information on the changes.
iperf3: updated to 3.18
iperf-3.18 2024-12-13
* Notable user-visible changes
* SECURITY NOTE: Thanks to Leonid Krolle Bi.Zone for discovering a
JSON type security vulnerability that caused a
segmentation fault in the
server. (CVE-2024-53580) This has now been
fixed.
* UDP packets per second now reports the correct number of
packets, by reporting NET_SOFTERROR if there's a EAGAIN/EINTR
errno if no data was sent
* Several segmentation faults related to threading were fixed. One
where `pthread_cancel` was called on an improperly initialized
thread handling signals
* A segmentation fault from calling `freeaddrinfo` with `NULL` was
fixed
* Some JSON options were fixed, including checking the size for
`json_read`
received server output
* A rcv-timeout error has been fixed. The Nread timeout was
hardcoded and timed out before the `--rcv-timeout` option
* There is no longer a limit on the omit time period
* Fixed an output crash under 32-bit big-endian systems
* An issue was fixed where CPU utilization was unexpectedly high
during limited baud rate tests. The `--pacing-timer` option was
removed, but it is still available in the library
* Add SCTP information to `--json` output and fixed compile error
when SCTP is not supported
* `--fq-rate` was changed from a uint to a uint64 to allow pacing above
32G. Not yet tested on big-endian systems
* Notable developer-visible changes
* Clang compilation failure on Android were fixed
* `iperf_time_add()` was optimizated to improve performance
* Debug messages were added when the state changes
* To increase performance, the old UDP `prot_listener` is cleared
and removed after each test
* A file descriptor leak was closed
iperf3: updated to 3.17.1 iperf-3.17.1 2024-05-13 ----------------------- * Notable user-visible changes * Version number has been corrected. * Notable developer-visible changes * No longer signing tags.
iperf3: updated to 3.17 iperf 3.17 contains a fix for a minor security vulnerability related to iperf3’s authentication feature and its use of RSA-encrypted credentials. The release notes contain more details on this breaking change, and how to revert to older, less secure behavior if needed for backward compatibility with older versions of iperf3. This version also contains a new streaming JSON output format (enabled with the –json-stream) option, and a number of other bug fixes.
net/iperf3: Needs atomic64
iperf3: updated to 3.16
iperf-3.16 2023-11-30
---------------------
* Notable user-visible changes
* Multiple test streams started with -P/--parallel will now be
serviced by different threads. This allows iperf3 to take
advantage of multiple CPU cores on modern processors, and will
generally result in significant throughput increases.
* OpenSSL 3 is now detected at build time. If OpenSSL 3 is found,
various older, deprecated, APIs will not be used. iperf3 will
continue to work with OpenSSL 1.1.1. OpenSSL is used as a part
of the iperf3 authentication functionality.
* The authorized users file used by the authentication functionality
is now checked for accessibility much earlier during the program
startup, as opposed to being checked near the start of a
tes.
* Developer-visible changes
* BREAKING CHANGE: iperf3 now requires pthreads and C atomic
variables to compile and run.
*: bump for openssl 3
iperf3: updated to 3.15
iperf-3.15 2023-09-14
---------------------
* Notable user-visible changes
* Several bugs that could allow the iperf3 server to hang waiting
for input on the control connection has been fixed. ESnet thanks
Jorge Sancho Larraz from Canonical for reporting this issue. For
more information, see:
https://downloads.es.net/pub/iperf/esnet-secadv-2023-0002.txt.asc
* A bug that caused garbled output with UDP tests on 32-bit hosts
has been fixed.
* A bug in counting UDP messages has been fixed
iperf3: updated to 3.14
iperf-3.14 2023-07-07
---------------------
* Notable user-visible changes
* A memory allocation hazard was fixed. For
more information see:
https://downloads.es.net/pub/iperf/esnet-secadv-2023-0001.txt.asc
* JSON output was improved, such as print JSON numbers as signed,
the exit code when doing JSON output was
fixed, and client_api was fixed so that it still
returns an error code when JSON is enabled. Also,
duplicate fields when using multiple streams was removed from the
JSON output.
* Prevent UDP packet count and operations overflow.
* Statistics are fixed when --omit is used.
* Developer-visible changes
* CI builds and tests using GitHub actions have been added
* A fix for Android "unable to create a new stream error" was added
* Support for Voice Admit DSCP code point from RFC 5865 was added
* A fix for preventing a crash when RSA public key path doesn't
exist was fixed
iperf3: updated to 3.13
iperf-3.13 2023-02-16
---------------------
* Notable user-visible changes
* fq-rate, and bidirectional flag were added to the JSON output.
* Added support for OpenBSD including cleaning up endian handling
and support for TCP_INFO on systems where it was implemented.
* Fixed bug in how TOS is set in mapped v4.
* Corrected documentation, such as updating binary download links and text,
updating version on iperf3 websites, and fixing an incorrect error message.
* Fixed crash on rcv-timeout with JSON logfile.
* Fixed a bug that prevented TOS/DSCP from getting set correctly for reverse
tests.
* Developer-visible changes
* Getter and setter are now available for bind_dev.
* Added missing getter for bidirectional tests.
* Added minor changes to clean up .gitignore and error messages.
* Made sure configure scripts are runnable with /bin/sh.
* Cleaned up RPM spec, such as adding missing RPM build dependencies, dropping
EL5 and removing outdated %changelog to make.
* Added a fix for a resource leak bug in function iperf_create_pidfile.
iperf3: updated to 3.12
iperf-3.12 2022-09-30
---------------------
* Notable user-visible changes
* cJSON has been updated to version 1.7.15
* The --bind <host>%<dev> option syntax now works properly
* A server-side file descriptor leak with the --logfile option has
been fixed
* A bug that caused some large values from TCP_INFO to be misprinted
as negative numbers has been fixed
* Using the -k or -n flags with --reverse no longer leak into future
tests
* There are now various debug level options available with the
--debug option. These can be used to adjust the amount of
debugging output
* A new --snd-timeout option has been added to set a termination
timeout for idle TCP connections
* iperf3 is slightly more robust to out-of-order packets during UDP
connection setup in --reverse mode
* iperf3 will now use different ports for each direction when the
--cport and --bdir options are set
* The iperf3 server will now exit if it can't open its log file
* Various help message and output fixes have been made
* Various compiler warnings have been fixed
* Developer-visible changes
* Operation of bootstrap.sh has been fixed and simplified
* Flow label support / compatibility under Linux has been improved
* Various minor memory leaks have been fixed
* A getter/setter has been added for the bind_port parameter
(--cport option).
* Various internal documentation improvements
iperf3: updated to 3.11 iperf-3.11 ---------- * Notable user-visible changes * Update links to Discussions in documentation * Fix DSCP so that TOS = DSCP * 4 * Fix --bind-dev for TCP streams * Fix interface specification so doesn't overlap with IPv6 link-local addresses for -c and -B * Add get/set test_unit_format function declaration to iperf_api.h * Auto adjustment of test-end condition for file transfers (-F), if no end condition is set, it will automatically adjust it to file size in bytes * Exit if idle time expires waiting for a connection in one-off mode * Support zerocopy by reverse mode * Update help and manpage text for 1157, support bind device * Consistently print target_bandwidth in JSON start section * Test bitrate added to JSON output * Remove fsync call after every write to receiving --file * Update documentation for -w * Fix for 952, different JSON object names for bidir reverse channel
iperf3: updated to 3.10.1
iperf-3.10.1 2021-06-03
-----------------------
* Notable user-visible changes
* Fixed a problem with autoconf scripts that made builds fail in
some environments.
* Developer-visible changes
* GNU autoconf 2.71 or newer is now required to regenerate iperf3's
configure scripts.
iperf3: updated to 3.10
iperf 3.10 2021-05-26
---------------------
* Notable user-visible changes
* Fix a bug where some --reverse tests didn't terminate.
* Responsiveness of control connections is slightly improved.
* The allowable clock skew when doing authentication between client
and server is now configurable with the new --time-skew-threshold.
* Bitrate throttling using the -b option now works when a burst size
is specified.
* A bug with calculating CPU utilization has been fixed.
* A --bind-dev option to support binding sockets to a given network
interface has been added to make iperf3 work better with
multi-homed machines and/or VRFs.
* --pidfile now works with --client mode.
* The server is now less likely to get stuck due to network errors
controlled by the new --rcv-timeout option.
* Fixed a few bugs in termination conditions for byte or
block-limited tests.
* Added tcp_info.snd_wnd to JSON output.
* Some bugs with garbled JSON output have been fixed.
* Support for setting the IPv4 don't-fragment (DF) bit has been
added with the new --dont-fragment option.
* A failure with not being able to read the congestion control
algorithm under WSL1 has been fixed.
* Error handling and error messages now make more sense in cases
where sockets were not successfully opened.
* Some buffer overflow hazards were fixed.
* Notable developer-visible changes
* It is now possible to use the API to set/get the congestion
control algorithm.
iperf3: updated to 3.9
iperf 3.9
* Notable user-visible changes
* A --timestamps flag has been added, which prepends a timestamp to
each output line. An optional argument to this flag, which is a
format specification to strftime(3), allows for custom timestamp
formats.
* A --server-bitrate-limit flag has been added as a server-side
command-line argument. It allows a server to enforce a maximum
throughput rate; client connections that specify a higher bitrate
or exceed this bitrate during a test will be terminated. The
bitrate is expressed in bits per second, with an optional trailing
slash and integer count that specifies an averaging interval over
which to enforce the limit.
* A bug that caused increased CPU usage with the --bidir option has
been fixed.
* Notable developer-visible changes
* Fixed various minor memory leaks.
iperf3: updated to 3.8.1
iperf 3.8.1 2020-06-10
----------------------
* Notable user-visible changes
* A regression with "make install", where the libiperf shared
library files were not getting installed, has been fixed.
iperf 3.8 2020-06-08
--------------------
* Notable user-visible changes
* Profiled libraries and binaries are no longer built by default.
* A minimal Dockerfile has been added.
* A bug with burst mode and unlimited rate has been fixed
* Configuring with the --enable-static-bin flag will now cause
a statically-linked iperf3 binary to be built.
* Configuring with the --without-sctp flag will now prevent SCTP
from being auto-detected. This flag allows building a
static binary (see above item) on a CentOS system with SCTP
installed, because no static SCTP libraries are available.
* Clock skew between the iperf3 client and server will no longer
skew the computation of jitter during UDP tests.
* A possible buffer overflow in the authentication feature has been
fixed. This was only relevant when configuration authentication
using the libiperf3 API, and did not affect command-line usage.
Various other improvements and fixes in this area were also made.
* Notable developer-visible changes
* The embedded version of cJSON has been updated to 1.3.17.
* Some server authentication functions have been added to the API.
* API access has been added to the connection timeout parameter.
* Tests for some authentication functions have been added.
* Various compiler errors and warnings have been fixed.
all: migrate homepages from http to https pkglint -r --network --only "migrate" As a side-effect of migrating the homepages, pkglint also fixed a few indentations in unrelated lines. These and the new homepages have been checked manually.
*: Recursive revision bump for openssl 1.1.1.
iperf3: updated to 3.7 3.7: iperf 3.6 adds the --bidir flag for bidirectional tests, includes some minor enhancements, and fixes a number of bugs. More details can be found in the release notes. Note: Documentation for the --bidir flag was inadvertently omitted from the manual page. This will be fixed in a future release. 3.6: iperf 3.6 adds the --extra-data and --repeating-payload options and fixes some minor bugs. 3.5: iperf 3.5 fixes a bug that could over-count data transfers (and hence measured bitrate). 3.4: iperf 3.4 fixes a number of minor bugs and adds a few enhancements. 3.3: New minor release of iperf 3.3, fixing a number of minor bugs. 3.2: New minor release of iperf 3.2, with new features, bugfixes, and enhancements.
Pullup ticket #5386 - requested by sevan
net/iperf3: build fix
Revisions pulled up:
- net/iperf3/Makefile 1.5
---
Module Name: pkgsrc
Committed By: jperkin
Date: Fri Apr 28 14:12:14 UTC 2017
Modified Files:
pkgsrc/net/iperf3: Makefile
Log Message:
Requires C99 for some math functions.
Requires C99 for some math functions.
The release notes for iperf 3.1.6 describe changes, including bug
fixes and new functionality, made since iperf 3.1.5.
* User-visible changes
* Specifying --fq-rate or --no-fq-socket-pacing on a system where
these options are not supported now generate an error instead of a
warning. This change makes diagnosing issues related to pacing
more apparent.
* Fixed a bug where two recently-added diagnostic messages spammed
the JSON output on UDP tests.
link network libs on SunOS
If NetBSD has TCP_INFO, display number of retransmits and the congestion window on each test interval. Also fix the FreeBSD version to do the same (wrong variable in the tcp_info struct was used...). Bump PKGREVISION.
Add iperf3 as version 3.0.11. Iperf3 is a tool for active measurements of the maximum achievable bandwidth on IP networks. It supports tuning of various parameters related to timing, protocols, and buffers. For each test it reports the bandwidth, loss, and other parameters. This version, sometimes referred to as iperf3, is a redesign of an original version developed at NLANR/DAST. iperf3 is a new implementation from scratch, with the goal of a smaller, simpler code base, and a library version of the functionality that can be used in other programs. Iperf3 also has a number of features found in other tools such as nuttcp and netperf, but were missing from the original iperf. These include, for example, a zero-copy mode and optional JSON output. Note that iperf3 is NOT backwards compatible with the original iperf.