1287 Commits

Author SHA1 Message Date
Sarah Larsen
708165605a LLONG_MAX to SIZE_MAX 2022-09-19 16:12:20 -07:00
Sarah Larsen
bb1e3d7573 Update for cjson for compile fix 2022-09-16 12:26:17 -07:00
Bruce A. Mah
3f0f86ac96
Merge pull request #1389 from esnet/fixup-1369
Revert a small part of PR#1369 to fix an output glitch.
2022-09-15 16:15:44 -07:00
swlars
d24f61b7d0
Merge pull request #1371 from WatcherOfTheSkies/master
Corrected binding where the --bind <host>%<dev> syntax is used.
2022-09-15 16:15:10 -07:00
Bruce A. Mah
8b78ba13d5
Revert a small part of PR#1369 to fix an output glitch.
The original change overwrote closed file descriptors with -1
in the stream records to avoid them being used again, however
there were some cases in which the file descriptor numbers
were needed in output. This short-term fix reverts just that
part of the change to restore the output behavior.
2022-09-09 16:16:22 -07:00
swlars
cb55cc6fdc
Merge pull request #1383 from esnet/update_json
Update cjson
2022-09-08 10:12:22 -07:00
Bruce A. Mah
51b41245aa
Merge pull request #1372 from jtdor/dont-misprint-tcp-info-values
Don’t misprint TCP info values as negative numbers
2022-08-26 14:20:45 -07:00
Sarah Larsen
64db8f5330 Update cjson 2022-08-26 08:48:50 -07:00
crazyfermions
89ede124d7
Fix logfile file descriptor server leak (#1369)
* Close log file when cleaning up test

* Reset socket fds to -1 after closing

* Run server cleanup in error case

Prevent logfile fd leak in any case.

Fixes #1360
2022-08-23 13:19:40 -07:00
Jörn-Thorben Hinz
2956c48c8b Do not misprint large TCP info values
Previously, values like snd_(c)wnd were stored as int in struct
iperf_interval_results, while being handled as long before and double
after. This led to large values being wrongly printed as negative
values, e.g. when the product of snd_cwnd and tcpi_snd_mss in
get_snd_cwnd() resulted in a large return value.

This change is still not without issues. Ideally, the products of two
uint32_ts in get_snd_wnd() and get_snd_cwnd() would be returned as a
uint64_t. But that would make -1 unavailable as a placeholder for
missing values.
2022-08-10 16:02:54 +02:00
WatcherOfTheSkies
4a56567b10 Corrected binding where the --bind <host>%<dev> syntax is used. 2022-08-10 11:48:54 +01:00
Jörn-Thorben Hinz
a1c712b3bd Remove unused *_sacks fields from iperf_interval_results
They have been unused since dcd7b32 ("Follow-on to 4cfce137e89c based on
some feedback and experience.") from nine years ago.
2022-08-10 12:16:37 +02:00
Bruce A. Mah
f9813626e5
Merge pull request #1364 from esnet/issue-1363
Prevent -k / -n when combined with -R from leaking into future tests.
2022-08-08 15:06:14 -07:00
Bruce A. Mah
e4ca82f829
Prevent -k / -n when combined with -R from leaking into future tests.
The problem was that the -k / -n parameters would get sent to the
server for a reverse tests, but never cleared for future reverse tests,
because these parameters were only sent from the client if they were
non-zero.
.
This is fixed in two ways as a belt-and-suspenders approach.

1. The server always clears the variables used for -k / -n when
receiving parameters, so if the client doesn't send them, they
get cleared (set to zero) anyway.

2. The client sends values for -k / -n even if they're zero. Sending
zero values doesn't hurt anything (except for wasting a few bytes),
and it makes this use case work even for servers that don't have
the fix in item 1 above.

Fixes #1363.
2022-07-29 08:32:09 -07:00
swlars
7d21cd554d
Merge pull request #1350 from DimitriPapadopoulos/not_codespell
Fix typos not found by codespell
2022-06-30 10:07:05 -07:00
Dimitri Papadopoulos
c803257022
Fix typos not found by codespell
Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
2022-06-04 09:20:36 +02:00
Bruce A. Mah
6cdcde886f
Merge pull request #1345 from DimitriPapadopoulos/codespell
Fix typos found by codespell
2022-06-03 15:24:51 -07:00
swlars
48eeff28b5
Merge pull request #1330 from mriswyth/fix_help_formatting
Fix help output for some compilers
2022-06-02 13:04:02 -07:00
swlars
c14053114b
Merge pull request #1327 from davidBar-On/debug-level
Add debug level option to --debug
2022-06-02 11:24:35 -07:00
Dimitri Papadopoulos
2b8ad3e4f4
Fix typos found by codespell
Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
2022-05-24 08:15:06 +02:00
Bruce A. Mah
85c4f9414a
Merge pull request #1299 from davidBar-On/issue-1261-enhanced-omit-help-text
Omit help text enhancement
2022-05-13 17:00:19 -07:00
Bruce A. Mah
f9d2e97b1f
Merge pull request #1310 from Arseney300/add_linux_version_check
Added linux version checking in flowlabel.h
2022-05-13 12:44:56 -07:00
Bruce A. Mah
aa8a3f4fd7
Regen.
This updates some GNU autotools provided files that had gotten
stale over the past few years. Changes in #1335 should help
keep them up-to-date in the future.
2022-05-12 17:32:23 -07:00
Bruce A. Mah
b114f9050d
Merge pull request #1335 from esnet/issue-1325
Greatly simplify (and fix) behavior of bootstrap.sh.
2022-05-12 17:30:12 -07:00
Bruce A. Mah
9b18ce66ee
Greatly simplify (and fix) behavior of bootstrap.sh.
Inspired by #1325.
2022-05-12 17:11:33 -07:00
Bruce A. Mah
0208757cc1
Merge pull request #1333 from esnet/issue-1332
Fix memory leak in an error condition.
2022-05-12 16:47:59 -07:00
Bruce A. Mah
abb24a2efc
Fix memory leak in an error condition.
We weren't free()-ing test->settings when we bailed out in a
certain error state.

Fixes #1332.
2022-05-09 17:43:38 -07:00
bthompson
b5fab64943 Fix help output for some compilers
Use the "%%" format specifier in usage_longstr when the desired output
is '%'.

Using the single '%' causes the '--help' output to be empty or condensed
on some versions of gcc.
2022-05-03 11:30:49 -04:00
David Bar-On
b97df9a9d5 Add debug level option to --debug 2022-04-29 17:46:16 +03:00
Bruce A. Mah
3a8e21f33a
Merge pull request #1323 from esnet/pr-1282-followup-1
PR 1282 followup 1
2022-04-18 14:38:48 -07:00
Bruce A. Mah
a859727060
Fix/add documentation for new --snd-timeout flag. 2022-04-18 14:30:53 -07:00
Bruce A. Mah
85b25c2ec8
Regen. 2022-04-18 14:20:06 -07:00
Bruce A. Mah
b83fa5c5e5
Merge pull request #1282 from davidBar-On/issue-1215-tcp-send-timeout
Fix for issue 1215 - add TCP  option
2022-04-18 14:14:32 -07:00
swlars
b0a7688253
Merge pull request #1316 from mniestroj/suppress-unused-offset-variable
suppress -Wunused-variable when HAVE_SENDFILE is undefined
2022-04-14 10:26:03 -07:00
Marcin Niestroj
8e0a54ebd9 suppress -Wunused-variable when HAVE_SENDFILE is undefined
Suppress following compiler warning when there is no HAVE_SENDFILE
support:

  /lib/iperf3/src/net.c: In function 'Nsendfile':
  /lib/iperf3/src/net.c:449:11: warning: unused variable 'offset' [-Wunused-variable]
    449 |     off_t offset;
        |           ^~~~~~
2022-04-11 15:32:02 +02:00
Arseney300
3ea0269f50 Added linux version checking in flowlabel.h
The current version of src/flowlabel.h is just a copy of linux/in6.h because it conflicts with "netinet/in.h".
But after linux >=v3.7 (adding uapi) this conflict was removed and this copy became useless.
I've added a Linux version check.
This fix is very useful for eg mp-tcp linux where iperf can build successfully.
2022-04-06 02:14:18 +07:00
swlars
a8653a7443
Merge pull request #1305 from esnet/add_get_set_tests
Add test for get and set bind port and mss
2022-04-01 13:40:05 -07:00
Sarah Larsen
0ecdfdda80 Add test for get and set bind port and mss 2022-04-01 13:03:42 -07:00
swlars
a977ae2a1b
Merge pull request #1303 from WatcherOfTheSkies/master
Added mss getter and setter.
2022-03-30 16:54:07 -07:00
swlars
ad05aac904
Add note for ignoring the return value of write to disk (#1304) 2022-03-30 14:42:42 -07:00
WatcherOfTheSkies
11fadc3f39 Added bind_port (--cport option) getter/setter. 2022-03-29 13:35:35 +01:00
Bruce A. Mah
5c2cbf4cf2
Merge branch 'master' into issue-1215-tcp-send-timeout 2022-03-28 13:23:47 -07:00
WatcherOfTheSkies
515b6e9e1a Added mss getter and setter.
The mss getter and setter was missing.
2022-03-25 09:50:54 +00:00
David Bar-On
5a6a0f7b48 Omit help text enhancement 2022-03-18 19:25:40 +02:00
TheRealDJ
2a187a957a
Fixed 2 lines causing warnings in iperf_api.c (#1211)
* Fixed 2 lines causing warnings in iperf_api.c

* Changed printf format string for test->settings->bytes to %"PRIu64"

Co-authored-by: root <root@dj-blade-04.lan>
Co-authored-by: DJ Breuer (Github TheRealDJ) <unknown>
2022-03-14 14:13:56 -07:00
David Bar-On
9eef1603c6 add the modified configure.ac 2022-03-11 15:54:07 +02:00
swlars
d2a2252911
Add note for stream ids for multi-stream tests (#1285) 2022-02-28 13:41:36 -08:00
David Bar-On
7bdd5b0e2d Fix for issue 1215 - add TCP option 2022-02-20 21:04:01 +02:00
Bruce A. Mah
e0aa15a939
Merge pull request #1251 from esnet/issue-1225
Force iperf3 server to exit if it can't open its log file.
2022-02-14 15:30:02 -08:00
Arsenović Arsen
a214ba23c8
Fix --bind missing a .TP in iperf3.1 (#1277) 2022-02-14 13:52:58 -08:00