History log of /iperf/src/main.c (Results 1 – 25 of 84)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
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.


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

trim excess whitespace


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

fix spelling


Revision tags: 3.10.1, 3.10
# 25f50c23 08-Feb-2021 Bruce A. Mah <[email protected]>

Issue 1118 (#1121)

* fix: Correctly emit JSON for --server --json.

Put extra error diagnostic information behind --verbose, to avoid putting
extra "error" members in JSON output.

Fixes #1118.


# fab96c1d 04-Feb-2021 Wojciech Jowsa <[email protected]>

Enable writing to pidfile in client mode (#1110)


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


Revision tags: 3.9, 3.8.1, 3.8
# 120b7efe 17-Mar-2020 Tamir Duberstein <[email protected]>

fix: include iperf_util.h in main.c (#954)

73b02f9 implemented `daemon(3)` for systems that don't have it, but the
function prototype was never included in `main.c` where it is
referenced.


Revision tags: 3.7
# fd46367f 05-Jun-2019 Bruce A. Mah <[email protected]>

feat: Authentication failure doesn't count for --one-off. (#877)

Fixes #864.


Revision tags: 3.6, 3.5, 3.4
# 73b02f98 11-Nov-2017 Bruce A. Mah <[email protected]>

Implement daemon(3) for systems that don't have it.

Fixes (and based on a patch in) #369, with some reworking by @bmah888 and @pprindeville.


Revision tags: 3.3, 3.2, 3.2rc1
# 5ab2132c 20-Apr-2017 Gabriel Ganne <[email protected]>

warning fixes (#551)

* fix Wstrict-prototypes warnings found by clang

also fix usage_long() call

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wunreachable-code-break warnings

warning fixes (#551)

* fix Wstrict-prototypes warnings found by clang

also fix usage_long() call

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wunreachable-code-break warnings found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wshadow warnings found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wmissing-noreturn warning found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* ix memory leak found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix Wmisleading-indentation warnings raised by gcc-6

Signed-off-by: Gabriel Ganne <[email protected]>

* fix warning: Value stored to 'ptr' during its initialization is never read found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix warning: The left operand of '>' is a garbage value found by clang

Signed-off-by: Gabriel Ganne <[email protected]>

* fix memory leak in global cleanup

Signed-off-by: Gabriel Ganne <[email protected]>

show more ...


# 6f414a04 11-Apr-2017 Bruce A. Mah <[email protected]>

Ignore SIGPIPE signals to simplify error handling.

This is an attempt to avoid server-side crashes/exits when the
client abruptly closes its control connection, as found in some
testing for #549.

F

Ignore SIGPIPE signals to simplify error handling.

This is an attempt to avoid server-side crashes/exits when the
client abruptly closes its control connection, as found in some
testing for #549.

Fixes #550.

show more ...


# a8ee9c65 22-Mar-2017 f1rebird <[email protected]>

Fix header includes and build failures on musl (#518)

* Include stdint.h in files where its types are used

Signed-off-by: Moritz Kick <[email protected]>

* Fix type of len para

Fix header includes and build failures on musl (#518)

* Include stdint.h in files where its types are used

Signed-off-by: Moritz Kick <[email protected]>

* Fix type of len parameter passed to getsockopt

getsockopt expects socklen_t instead of int as its fifth argument

Signed-off-by: Moritz Kick <[email protected]>

* Remove unnecassary includes of netinet/tcp.h

also cleanup the second include of stdint.h in main.c

This commit fixes #331 and is a replacement for #344.

Signed-off-by: Moritz Kick <[email protected]>

show more ...


Revision tags: 3.1.7, 3.1.6, 3.1.5, 3.1.4, 3.0.12, 3.1.3
# b7ab2b4b 03-Jun-2016 Bruce A. Mah <[email protected]>

Make the server more tolerant of most types of errors encountered
during tests.

We used to exit if 5 consecutive errors were encountered. Instead,
only exit if certain types of fatal errors happen.


Revision tags: 3.1.2, 3.1.1
# 956d1158 18-Nov-2015 Bruce A. Mah <[email protected]>

Improve command error handling.

Exit with non-zero exit code if server mode has too many errors.

Properly detect complain about non-numeric arguments to -A, -L, and -S.

Implement range checks for

Improve command error handling.

Exit with non-zero exit code if server mode has too many errors.

Properly detect complain about non-numeric arguments to -A, -L, and -S.

Implement range checks for argument to -S.

Fixes #316.

show more ...


Revision tags: 3.1, 3.1b3, 3.1b2, 3.1b1
# 9293ec2c 31-Mar-2015 Manoj Joseph <[email protected]>

257 Segfault in the signal handler


Revision tags: 3.0.11
# dba611db 22-Dec-2014 Bruce A. Mah <[email protected]>

Add one-off mode, where the server serves exactly one request.

Primarily useful for bwctl integration, this is enabled with the -1
and/or --one-off flags.

Fixes #230, based on a patch by @i2aaron.

Add one-off mode, where the server serves exactly one request.

Primarily useful for bwctl integration, this is enabled with the -1
and/or --one-off flags.

Fixes #230, based on a patch by @i2aaron.

Signed-off-by: Bruce A. Mah <[email protected]>

show more ...


Revision tags: 3.0.10, 3.0.9, 3.0.8
# da9f046f 29-Sep-2014 Bruce A. Mah <[email protected]>

Update license and copyright text to conform to LBNL standards.

Note that the license remains a 3-clause BSD license; the only
license changes were to add the name of the program and to add
some pun

Update license and copyright text to conform to LBNL standards.

Note that the license remains a 3-clause BSD license; the only
license changes were to add the name of the program and to add
some punctuation.

show more ...


# a1861d5f 15-Sep-2014 Bruce A. Mah <[email protected]>

Rename locale.{c,h} to iperf_locale.{c,h} to avoid filename collision
with system header <locale.h>.

This apparently fixes problems on an ARM build, but this was generally
broken anyway. It's sligh

Rename locale.{c,h} to iperf_locale.{c,h} to avoid filename collision
with system header <locale.h>.

This apparently fixes problems on an ARM build, but this was generally
broken anyway. It's slightly amazing this didn't cause problems before;
perhaps we never used <locale.h> before?

Addresses #203.

show more ...


Revision tags: 3.0.7, 3.0.6, 3.0.5, 3.0.4
# 426221a3 19-May-2014 Bruce A. Mah <[email protected]>

Check HAVE_STDINT_H before trying to include <stdint.h>.

Partial fix for compilation on some Solaris versions. Fixes #175.

Submitted by: @marksolaris


# 081ba8e4 16-Apr-2014 Bruce A. Mah <[email protected]>

Commit a version of the patch for #125 for testing.

Originally submitted by: @i2aaron


# 40050b7b 14-Apr-2014 Bruce A. Mah <[email protected]>

Fix breakage due to iperf.h depending on the autoconf config.h file but
not including it.

To fix this required us to change config.h to iperf_config.h (to
avoid potential filename collisions with th

Fix breakage due to iperf.h depending on the autoconf config.h file but
not including it.

To fix this required us to change config.h to iperf_config.h (to
avoid potential filename collisions with this generic name). Then
iperf.h could include this.

Adjust the existing header file inclusions to track this, and also
canonicalize their inclusion to be at the top of *.c files.

show more ...


# 2939863b 07-Apr-2014 Bruce A. Mah <[email protected]>

Resolves #147.

Squashed commit of the following:

commit 23ef0d047fb5396df671be9245f7872153fc299c
Author: Bruce A. Mah <[email protected]>
Date: Mon Apr 7 13:35:29 2014 -0700

Add a few API calls to

Resolves #147.

Squashed commit of the following:

commit 23ef0d047fb5396df671be9245f7872153fc299c
Author: Bruce A. Mah <[email protected]>
Date: Mon Apr 7 13:35:29 2014 -0700

Add a few API calls to the client-side example program so we can
exercise recently-added JSON-related functionality.

commit 5f8301e8d0380133d533da9b2e39ca4ac522e1c3
Author: Bruce A. Mah <[email protected]>
Date: Mon Apr 7 13:16:39 2014 -0700

Revert part of earlier change.

We still want to save the JSON for libiperf consumers that might want it,
but preserve the prior behavior of writing that JSON to stdout. This
maintains (roughly) the behavior of older libiperf, in which libiperf
consumers (such as the iperf3 executable) do not need to explicitly print
the JSON if that's all they're doing with it.

commit 173dcdb05867af00103205bfe39d1b71e18689e9
Author: Bruce A. Mah <[email protected]>
Date: Tue Mar 25 13:55:45 2014 -0700

Update manpage for newly-added library calls.

Bump document date while here.

Part of Issue #147.

commit 51a275de9463febc440d41cee9d971fcd381e01c
Author: Bruce A. Mah <[email protected]>
Date: Tue Mar 25 13:30:09 2014 -0700

Allow consumers of libiperf3 to get the JSON output for a just-completed test.

This changes the behavior of iperf_json_finish() so that it no longer
outputs JSON output, but saves the rendered output in a NUL-terminated
string buffer. After calling iperf_run_server() or iperf_run_client(),
the client application should check iperf_get_test_json_output() to see
if it returns a non-NULL pointer. If so, there is JSON data available
for it to print or otherwise consume. The buffer is automatically
deallocated when the containing iperf_test structure is deallocated
with iperf_free_test().

Also adds a new API call iperf_get_test_outfile() to find the output
FILE* structure.

Modifies the iperf3 application to use the new API. Users of iperf3
will not notice any functional change.

No effect in "normal" output mode (non-JSON).

show more ...


Revision tags: 3.0.3, 3.0.2
# 441d8b75 25-Jan-2014 Bruce A. Mah <[email protected]>

Add support for writing the PID to a file in server mode.
This is specified with the -I or --pidfile option.

Issue: 120 (PID file support)


Revision tags: 3.0.1
# ac0786c8 03-Jan-2014 Bruce A. Mah <[email protected]>

Fix typos: s/exitting/exiting/

Bump a couple of copyright dates while here.


# fe4a13ab 26-Nov-2013 Bruce A. Mah <[email protected]>

Support daemonizing with -D flag.

Possible related work still under consideration:

o Use syslog in daemon mode for output that would normally go to
stdout / stderr.

o Write a PID file.

This is

Support daemonizing with -D flag.

Possible related work still under consideration:

o Use syslog in daemon mode for output that would normally go to
stdout / stderr.

o Write a PID file.

This is basically the gist of Issue 105.

show more ...


1234