History log of /iperf/src/iperf_api.h (Results 1 – 25 of 195)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 11fadc3f 29-Mar-2022 WatcherOfTheSkies <[email protected]>

Added bind_port (--cport option) getter/setter.


# 515b6e9e 25-Mar-2022 WatcherOfTheSkies <[email protected]>

Added mss getter and setter.

The mss getter and setter was missing.


# 7bdd5b0e 20-Feb-2022 David Bar-On <[email protected]>

Fix for issue 1215 - add TCP option


Revision tags: 3.11
# 76bd67f6 28-Jan-2022 Sarah Larsen <[email protected]>

iperf-3.11 release engineering tasks.

Bump version number, update release notes, rename release notes and tweak
markup. Update copyright year.


# a071a8c8 09-Nov-2021 Bruce A. Mah <[email protected]>

Fix: Avoid spamming stdout (and JSON output) with a warning.

Fixes #1223.


# 85bf6a17 18-Sep-2021 Matt Johnson <[email protected]>

Add get/set test_unit_format function declarations to iperf_api.h

The functions were added in f2c4e2b5bd343e06635613e87463b4cabfe98b27 and
implicitly declared in iperf_api.c, but were never actually

Add get/set test_unit_format function declarations to iperf_api.h

The functions were added in f2c4e2b5bd343e06635613e87463b4cabfe98b27 and
implicitly declared in iperf_api.c, but were never actually declared in
the api header file! External users of the api need access to the
declaration in the header file to use the function from the library.

show more ...


# e919e8c2 03-Sep-2021 a1346054 <[email protected]>

trim excess whitespace


# f54b6b4b 05-Jul-2021 David Bar-On <[email protected]>

Fix issue #1157 (partial) - support bind device using


Revision tags: 3.10.1, 3.10
# 47985d7f 19-May-2021 Shuo Chen <[email protected]>

Add tcp_info.snd_wnd to JSON output.

tcp_info.snd_wnd is available on FreeBSD and NetBSD since TCP_INFO was
added. It was added to Linux 5.4 in late 2019 and becomes available
in Ubuntu 20.04 and D

Add tcp_info.snd_wnd to JSON output.

tcp_info.snd_wnd is available on FreeBSD and NetBSD since TCP_INFO was
added. It was added to Linux 5.4 in late 2019 and becomes available
in Ubuntu 20.04 and Debian 11.

Tested on:
* Debian 11 running on x86-64 with this field.
* Debian 10 armv7 running on Raspberry Pi 2 without this field.
* NetBSD 9.2 armv7 running on Raspberry Pi 3 with this field.
* FreeBSD 13 aarch64 running on Raspberry Pi 4 with this field.

show more ...


# 8ffe72e2 26-Feb-2021 David Bar-On <[email protected]>

enh: Add --rcv-timeout option (#1125)

Enhancement to PR #1101 - add --rcv-timeout option to allow setting the timeout for receiving packet from the sender in a running test, instead of the constant

enh: Add --rcv-timeout option (#1125)

Enhancement to PR #1101 - add --rcv-timeout option to allow setting the timeout for receiving packet from the sender in a running test, instead of the constant 120 seconds set in #1101. This is to allow short timeout, so the server will not be "busy" for long time doing nothing. Also, the resolution is set to ms (with minimum of 100ms), as at least in fast networks that may be required.

Since both the server and the client can be a sender, the option is allowed for both. The server setting is for all tests - the client is not sending its --rcv-timeout setting to the server.

While changing the help message, few printf constants from other help lines were changed to parameters.

show more ...


# 49a5771a 16-Feb-2021 David Bar-On <[email protected]>

IP don't fragment support (#1119)

Adds an --dont-fragment flag that sets the DF flag in the header for UDP/IPv4 tests.

Co-authored-by: root <[email protected]>
Co-authored-by: Bru

IP don't fragment support (#1119)

Adds an --dont-fragment flag that sets the DF flag in the header for UDP/IPv4 tests.

Co-authored-by: root <[email protected]>
Co-authored-by: Bruce A. Mah <[email protected]>

show more ...


# 4e526a1a 04-Feb-2021 Hamid Anvari <[email protected]>

API interface for setting/getting congestion control (#1036) (#1112)

Same restrictions/compatibility applies as
the CLI -C/--congestion options.
(Linux and FreeBSD only)

Fixes #1036


# be66b575 02-Feb-2021 David Bar-On <[email protected]>

Server select timeout to prevent server to get stuck because of client or network errors (#1101)


# 21581a72 22-Dec-2020 Bruce A. Mah <[email protected]>

enh: Support SO_BINDTODEVICE (#1097)

This lets iperf work better with multi-homed machines and
VRF.

Fixes #1089.

Based on a patch by Ben Greear <[email protected]> via PR #817.

Co-au

enh: Support SO_BINDTODEVICE (#1097)

This lets iperf work better with multi-homed machines and
VRF.

Fixes #1089.

Based on a patch by Ben Greear <[email protected]> via PR #817.

Co-authored-by: Ben Greear <[email protected]>

show more ...


# bd143779 12-Nov-2020 ralcini <[email protected]>

Configurable value for time drift between client/server for authentication request issue1065 (#1070)

* Issue 1065

* feat: Allow to configure a custom value for time drift between client/server fo

Configurable value for time drift between client/server for authentication request issue1065 (#1070)

* Issue 1065

* feat: Allow to configure a custom value for time drift between client/server for authentication

The use case is to support scenarios where it's not possible to enforce sync between client and server times.

* enh: drift redefined with skew

Co-authored-by: Francesco Marino <[email protected]>

show more ...


Revision tags: 3.9
# 70c85f62 14-Aug-2020 Bruce A. Mah <[email protected]>

fix: Unbreak build on CentOS 6. (#1040)

The fix eliminates a duplicate definition of the iperf_size_t datatype
when both iperf.h and iperf_api.h are included.

Fixes #1039.


# 1a908ce1 23-Jul-2020 Bruce A. Mah <[email protected]>

feat: Add a --timestamps flag to prepend a timestamp per output line. (#1028)

This flag takes an optional argument, which is a format specification to strftime(3)...this allows for custom timestamp

feat: Add a --timestamps flag to prepend a timestamp per output line. (#1028)

This flag takes an optional argument, which is a format specification to strftime(3)...this allows for custom timestamp formats. Based on a suggested implementation by @davidBar-On. Towards #909.

show more ...


# a0c6f0ec 10-Jul-2020 David Bar-On <[email protected]>

feat: Issue #937 - Add a server option to limit total allowed throughput (#999)


# 3888e044 12-Jun-2020 David Bar-On <[email protected]>

chore: Change applicable function arguments from 'char *' to 'const char *' (#1006)

Fixes #946. Should not present any functional changes.


Revision tags: 3.8.1, 3.8
# de848cff 19-May-2020 Bruce A. Mah <[email protected]>

feat(api): Provide API access to --commit-timeout. (#1001)

Fixes #1000. Part of #595.


# a0af1e68 16-Nov-2019 Xiang Xiao <[email protected]>

change some file mode from 100755 to 100644

Part of #935.

Change-Id: I5c563ad0cffce1a75b6a8039aa9a2e1543763880
Signed-off-by: Xiang Xiao <[email protected]>
(cherry picked from commit d7e30bea79

change some file mode from 100755 to 100644

Part of #935.

Change-Id: I5c563ad0cffce1a75b6a8039aa9a2e1543763880
Signed-off-by: Xiang Xiao <[email protected]>
(cherry picked from commit d7e30bea791e7bcd28eebf1ca6fe39e4f00ddc3c)
Signed-off-by: Bruce A. Mah <[email protected]>

show more ...


# 79e1cd35 20-Dec-2019 Bruce A. Mah <[email protected]>

fix: Make prototype for iperf_set_test_extra_data() match its definition.

Fixes #938.


# 22da02dc 01-Oct-2019 Allen Flickinger <[email protected]>

enh: Add server authentication API functions (#911)


Revision tags: 3.7
# 6c783462 14-Jun-2019 Bruce A. Mah <[email protected]>

Fix: Don't allow --port 0 or other invalid values. (#885)

* Fix: Don't allow --port or --cport to take 0 or other invalid values.

Fixes #884.


# 255a9c71 05-Jun-2019 srgnk <[email protected]>

enh: Introduce iperf_set_test_logfile API function (#871)

To be able to set the test->outfile to a different file other than default
if using libiperf API.

Since logfile is now opened in iperf_p

enh: Introduce iperf_set_test_logfile API function (#871)

To be able to set the test->outfile to a different file other than default
if using libiperf API.

Since logfile is now opened in iperf_parse_arguments() and this function
may not be used if running iperf using API, define a dedicated function
iperf_open_logfile() and move the opening of logfile into
iperf_run_client() and iperf_run_server() to make sure logfile will be
opened if iperf_parse_arguments() was not called.

show more ...


12345678