1
1

991 Коммитов

Автор SHA1 Сообщение Дата
Bruce A. Mah
6332d84016
Wordsmith warning message from #721 / #709. 2018-04-20 07:21:23 -07:00
Kai Borowiak
22508a21b0 Add warning if JSON output is used with explicit report format (#721)
Fixes #709.
2018-04-20 07:17:39 -07:00
Ji Jianwen
3e58489a58 Fix -B with some SCTP tests, which is part of #678 (#715)
Got the following error when running server side with -B option:

Server side:
    ./iperf3 -s -B <server_ipv4_address>
    -----------------------------------------------------------
    Server listening on 5201
    -----------------------------------------------------------
    iperf3: error - unable to start stream listener: Bad file descriptor
    -----------------------------------------------------------

Client side:
    ./iperf3 -c <server_ipv4_address> --sctp
    iperf3: error - unable to start stream listener: No such file or directory

Similar fix as below for TCP:
    commit eb1cfe5e162d08efdf18fa12cd6627cfdcd675a7
    Author: Bruce A. Mah <bmah@es.net>
    Date:   Fri Aug 1 16:24:14 2014 -0700

        Another iteration on issue #193, fixes -B with some TCP tests.

Signed-off-by: Jianwen Ji <jijianwen@gmail.com>
2018-03-23 16:10:38 -07:00
Kai Borowiak
c0a441756a Add ToS Byte to iperf API (#719)
* Add ToS byte to iperf API

* Add function prototype to manual page
2018-03-23 06:28:20 -07:00
Jenkins BBVA
4fe72e1979 Add Solaris 10 portable_endian.h (#711)
Add htonll/ntohll if not defined
2018-03-09 10:28:48 -08:00
Bruce A. Mah
85bedf1b83
Regen. 2018-03-02 15:17:28 -08:00
Bruce A. Mah
52bd0f223a
Frob version number for post-3.5-release. 2018-03-02 15:16:30 -08:00
Bruce A. Mah
a3bfd9e45a
Update for iperf-3.5, re-render manual page.
Part of #707.
2018-03-02 14:01:49 -08:00
Bruce A. Mah
ff1ea4e54d
Regen. 2018-02-28 13:24:06 -08:00
Bruce A. Mah
6731b2152a
Version number bumps for iperf-3.5. Also fix a typo in release notes.
Towards #707.
2018-02-28 13:21:59 -08:00
Bruce A. Mah
0f7280fb41
Started release notes for iperf-3.5. 2018-02-28 09:59:50 -08:00
Bruce A. Mah
c0055199b5
Fix issue 692 (#705)
Don't count data for tests received after the end of a test.
This prevents is from reporting an incorrect number of bytes
received at the end of the test, which doesn't match up with the
sum of the data received during the test intervals.
Log late receives if debugging mode enabled.

Fixes #692.
2018-02-23 15:36:25 -08:00
Bruce A. Mah
8740c8cf8e
Close credentials file when we're done reading it. (#704)
Fixes #701.
2018-02-22 17:25:25 -08:00
Bruce A. Mah
4a46483341
Merge branch 'master' of github.com:/esnet/iperf 2018-02-22 12:09:51 -08:00
Bruce A. Mah
63ae66353a
Comment on a few unused states in the state machine. 2018-02-22 12:08:50 -08:00
Jason Leschnik
a6123ce7fb Change the wording on bind parameter documentation for clarity (#702) 2018-02-21 12:23:36 -08:00
Bruce A. Mah
2ac3da6698
Regen. 2018-02-14 13:38:36 -08:00
Bruce A. Mah
82f25ed125
Update version number on mainline. 2018-02-14 13:37:58 -08:00
Bruce A. Mah
92eb6391d0
Update some copyright dates, somewhat belatedly. 2018-02-14 13:36:48 -08:00
Bruce A. Mah
f35cd60f6f Update rendered manpage. 2018-02-14 13:35:07 -08:00
Bruce A. Mah
4c07f73074
Fix mistake in news item headline. 2018-02-14 13:28:37 -08:00
Bruce A. Mah
793221e73a
Update version numbers and add news entry for iperf-3.4. 2018-02-14 13:26:39 -08:00
Bruce A. Mah
e4a8ddb8bf
Tweak platform list slightly. 2018-02-14 13:26:15 -08:00
Bruce A. Mah
3e7d28b685
Regen. 2018-02-12 14:09:22 -08:00
Bruce A. Mah
e147de5387
Version number bumps for iperf-3.4. 2018-02-12 14:08:45 -08:00
Bruce A. Mah
a36d8600b9
Update release notes, tentatively set a release date for 3.4.
A few whitespace fixes in here too.
2018-02-12 10:47:41 -08:00
Bruce A. Mah
e7aa59b6b8
Make --cport work without --bind (#697).
This commit also adds SCTP support for --cport.

Fixes #616.
2018-02-12 10:30:23 -08:00
Bruce A. Mah
571ff3ae7e
Update release notes for upcoming iperf-3.4 release
(not yet scheduled but likely "soon").
2018-01-26 13:47:09 -08:00
Bruce A. Mah
47450ad9e1
Fix a server-side crash with --verbose and a client with multiple connections. (#696)
This was caused by a stale / invalid pointer reference that didn't even
make any sense in context anyway.  Fixes #686.
2018-01-26 13:35:45 -08:00
Bruce A. Mah
bd85edb80a
If we're sending output to stdout, then make errors go to stderr. (#695)
No effect on JSON format output or output to a file.

Submitted by @cygnus2048, fixes #688.
2018-01-26 11:38:15 -08:00
Bruce A. Mah
cf325910bd
Make IPv6 flow labels work correctly where they didn't before. (#694)
This can happen with multiple parallel streams or with two single
stream tests run close together in time.

The fix is to allow flow labels to be reused by multiple sockets
simultaneously or within their timeout.

Submitted by @cygnus2048 and fixes #689.
2018-01-26 11:29:33 -08:00
Bruce A. Mah
b481169a5f
Fix large values of -p on FreeBSD by setting a large listen(2) backlog. (#693)
Might be useful for other platforms as well (no effects on Linux
because the semantics of listen(2) are subtly different there).
Submitted by Matt Macy.  Fixes #691.
2018-01-26 11:19:21 -08:00
Bruce A. Mah
46cb4b4b90
Fix regression that caused client to close control connection prematurely. (#682)
The user-visible symptom was messages of the following form on the
server:

iperf3: the client has unexpectedly closed the connection

This bug was introduced in #597 and was present in iperf 3.2 and 3.3.

Fixes #677.
2018-01-03 12:03:48 -08:00
Suresh Sundriyal
a5e327b442 Include signal.h + time.h. (#680)
Required to avoid implicit declarations of 'signal()' and 'time()'; which
causes compilation to error out while compiling a statically linked binary.
2018-01-03 12:00:27 -08:00
Bruce A. Mah
1e93fdcf88
Fix comparison when checking for time skew when using authentication. (#674)
Fixes #673.

Submitted by @FuzzyStatic, reviewed by @ralcini.
2018-01-02 14:55:01 -08:00
Bruce A. Mah
eddfb8267e
Fix a couple of problems with the help message for the --length option.
* The canonical long-form option name is "length", not "len".

* The default length for UDP should be displayed in bytes not KB.
2017-11-27 09:50:50 -08:00
Bruce A. Mah
2800dfcaae
Add a reference to continuing iperf2 development in the README.md file.
Suggested by @beau-williamson in #27.
2017-11-17 10:48:05 -08:00
Bruce A. Mah
b3015d583b
Rewrite some text on the home page, and add a mention of iperf2.
That mention points to the iperf3 FAQ, which contains information
about the history of iperf2 and iperf3, and a pointer to continued
iperf2 development.  Suggested by a comment from @beau-williamson
in #27.
2017-11-17 10:42:14 -08:00
Bruce A. Mah
c0225583af
Fix a compiler warning on FreeBSD related to getline(3). 2017-11-16 14:22:55 -08:00
Bruce A. Mah
19329249d1
Fix some compile-time warnings on macOS (#671)
* Attempt to quiet a warning with print(3) formatting. As a part of this, factor out PRIu64 support / compatibility (added in #664) into a header file and make it more portable by taking into account the size of a long integer. Based on email conversation with: @pprindeville.

* Follow-up to pull request #669, fixing compiler warnings on platforms that don't have HAVE_TCP_CONGESTION defined.
2017-11-16 14:12:24 -08:00
Tobias Klausmann
f61355e3e1 Make help and manpage a bit clearer about TOS and DSCP values (#670)
Since iperf3 uses strtol() to parse these values, the user can specify
them with 0 prefix for octals and 0x for hex values.
2017-11-16 09:18:40 -08:00
Todd C. Miller
b6072241bf Add missing saved_errno dance around some close(2) calls. (#669) 2017-11-14 14:29:41 -08:00
Todd C. Miller
34f878a2c0 Remove unused functions (#668)
Namely, getsock_tcp_mss(), set_tcp_options() and iperf_test_reset().
Also fix a typo in the libiperf manual;
iperf_test_reset() was listed instead of iperf_reset_test().
2017-11-14 13:35:29 -08:00
Bruce A. Mah
e6d6661276
Regen. 2017-11-13 14:18:36 -08:00
Bruce A. Mah
fdc4633191
Update release notes for the next (as yet unscheduled) release.
The master codeline is once again 3-CURRENT, not 3.3.
2017-11-13 14:17:38 -08:00
Bruce A. Mah
222da46ba9
Follow-on to pull-request #665...update manpage and comments.
These reflect support for -A on Windows.
2017-11-13 13:00:10 -08:00
Boris Okunev
5b27ea39a7 Implemented -A flag for Windows (#665)
TODO:  Need to update some documentation that reflects `-A` is applicable to Windows.  @bmah888 to do this.
2017-11-13 12:54:34 -08:00
Todd C. Miller
480824e3c1 Remove a few unnecessary headers and unused functions. (#667)
* EXIT_SUCCESS and EXIT_FAILURE are defined in stdlib.h, not sysexits.h
so no need to include the latter.

* No need to include pthread.h.

* Remove the no longer used delay() function.
This also removes the reliance on nanosleep().

* Remove get_tcp_windowsize() and set_tcp_windowsize() which are unused.
These days, iperf uses get/setsockopt() with SO_SNDBUF SO_RCVBUF directly.
2017-11-11 10:26:59 -08:00
Bruce A. Mah
73b02f9819
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.
2017-11-11 10:12:55 -08:00
Bruce A. Mah
95d408962a
Add function declaration for our getline() compat implementation.
Should have been a part of #663, which fixes #607.
2017-11-10 12:04:35 -08:00