1
1
Граф коммитов

946 Коммитов

Автор SHA1 Сообщение Дата
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
Bruce A. Mah
d06415822a
Regen after merge of #663. 2017-11-08 10:19:49 -08:00
Bruce A. Mah
cb2dcd3f6d
Provide a getline(3) implementation for systems without it. (#663)
The getline(3) implementation comes from NetBSD's file(1) command.
This should make compiling work on macOS pre 10.7.  Fixes #607.
2017-11-08 10:18:30 -08:00
Bruce A. Mah
bf51208bb2
Regen after merge of #664. 2017-11-08 09:30:18 -08:00
Philip Prindeville
d88f4cecf3 Fix 3.3 build warnings (#664)
* Fix warnings about _GNU_SOURCE being redefined.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

* Fix warnings of format-specified mismatching type

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

* Simplify endianness checks

Linux can be built with too many types of C run-time library and it's
not reasonable to have to enumerate all of them, especially since at
least one of them (MUSL) goes out of its way to not be easily
detectable.

Instead, leverage autoconf better for Linux/BSD to detect either
<endian.h> or <sys/endian.h> directly.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

* Sys headers should not be included directly

There's usually a top-level header which then includes the sys/
descendent.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-11-08 09:29:26 -08:00
Bruce A. Mah
e44ec101bb
Update documentation site for iperf-3.3. 2017-10-31 11:29:16 -07:00
Bruce A. Mah
b94d45bbeb
Regen. 2017-10-30 14:00:41 -07:00
Bruce A. Mah
c5fbafaf21
Bump version numbers for iperf-3.3. 2017-10-30 14:00:14 -07:00
Bruce A. Mah
673201dc97
Another release notes update. 2017-10-27 15:44:24 -07:00
Boris Okunev
d60f6234d5 Issue #659 (#660)
Ignore nonsensical TCP MSS when trying to compute the default UDP packet size.  This fix seems to be primarily needed for Windows systems, but it's a good bit of sanity checking to do in any case.
2017-10-27 14:38:08 -07:00
Bruce A. Mah
786e456238
Minor release notes catchup. 2017-10-27 10:14:44 -07:00
Bruce A. Mah
010fc7e6c8 Don't overwrite a PID file corresponding to a valid process. (#654)
This fixes a problem described in issue #623 where the PID file
opened by a running instance of iperf3 could be overwritten /
deleted by a subsequent invocation of iperf3.
2017-10-25 10:04:26 -07:00
Bruce A. Mah
6aa19d514d
First cut of release notes for an upcoming iperf-3.3 release.
There's no exact date for the release, although it'd be good to get this
out by the end October (2017).  There is at least one more code
change I'd like to merge before then as well.
2017-10-23 09:49:50 -07:00
Bruce A. Mah
f57d942c3a
Add to FAQ an entry about BSODs under Windows 7.
This question has come up a few times, so even though iperf3
doesn't officially support any Windows platform, I'm putting
this in here.  Thanks to @ijspzpt for the references.
Addresses #590 and possibly #546.
2017-10-17 10:32:19 -07:00
Bruce A. Mah
24da2caa09 Fix memory leak introduced in 1460aa3433. (#652)
Pointed out by:  @pprindeville
Should have been found by:  @bmah888
2017-10-13 11:01:06 -07:00
Bruce A. Mah
d5d364a26e
Fix a Sphinx warning. 2017-10-12 14:14:51 -07:00
Bruce A. Mah
f016bdc4c0
Merge branch 'master' of github.com:/esnet/iperf 2017-10-12 10:57:24 -07:00
Bruce A. Mah
98fb0b80f1
Update RHEL and CentOS version numbers to reflect reality. 2017-10-12 10:53:06 -07:00
Bruce A. Mah
835ec5f3d8
Add a FAQ entry for generating a statically-linked executable.
(With directions tested on CentOS 7 and FreeBSD 11.)
Inspired by discussion in #632.
2017-10-12 10:49:35 -07:00
ralcini
1460aa3433 fix for https://github.com/esnet/iperf/issues/650 (#651)
Reset authentication token between tests.  Fixes #650.
2017-10-11 14:03:57 -07:00
Bruce A. Mah
b5640ac6c2 Clear TOS value when resetting test parameters. (#647)
This addresses a problem where the --tos parameter would incorrectly
"stick" on the server, causing wrong TOS values to be inserted into
packets during --reverse tests.  Fixes #639.
2017-10-11 12:10:11 -07:00
Bruce A. Mah
720a0a3e63 Allow the client to pass a duration of 0 to the server. (#648)
Seems to fix #645.
2017-10-11 11:05:55 -07:00
Bruce A. Mah
25f5947512 Fix a problem formatting very large numbers. (#642)
Avoid walking off the end of an array when trying to format a number larger than 1000T.

Motivated by #641, as reported by @shingchuang, but slightly
reimplemented.
2017-10-04 10:15:19 -07:00
Bruce A. Mah
2bc3d2ee5d Merge pull request #646 from wmbr/patch-1
Delete outdated comment
2017-10-04 09:46:30 -07:00
Malte
b2900fd710 Delete outdated comment
This comment became outdated with cba8584b2
2017-10-04 02:09:30 +02:00
Bruce A. Mah
cd5d89d36d Merge pull request #640 from esnet/issue-604
Two fixes for a warning for possibly-too-large UDP packets.

1.  Make sure we have a valid TCP MSS on the path when comparing
the UDP block size.

2.  Fix a redundant "warning".

This should fix a bug observed on Windows but not (so far) on any
UNIX-like platforms.  Fixes #604.
2017-09-20 09:23:12 -07:00
Bruce A. Mah
ea72479856
Add Travis CI integration with ESnet's Slack. 2017-09-19 10:43:34 -07:00
Bruce A. Mah
ca954c7668
Reverse the order of tests for better legibility and logical sense.
Suggested by @pprindeville.
2017-09-19 09:14:24 -07:00
Bruce A. Mah
d6a6751746
Two fixes for a warning for possibly-too-large UDP packets.
1.  Make sure we have a valid TCP MSS on the path when comparing
the UDP block size.

2.  Fix a redundant "warning".

This should fix a bug observed on Windows but not (so far) on any
UNIX-like platforms.  Fixes #608.
2017-09-18 15:17:18 -07:00
Bruce A. Mah
4a45b32b47 Fix out-of-the-box builds with no OpenSSL (#633)
Don't make OpenSSL detection error out unless --with-openssl explicitly given.

This fixes the out-of-the-box build on macOS, which doesn't include
headers, etc. for OpenSSL by default.  The configure script still
errors out if the user specifies a --with-openssl flag but for some
reason the build host's OpenSSL is broken or can't be used.

* Regen.
2017-08-15 11:13:08 -07:00
Bruce A. Mah
7cf95d205d
Regen. 2017-08-14 13:46:35 -07:00
ralcini
3fd1a2ae90 fix for issue #624 - force build without openssl (#631)
* fix: now --without-openssl configure flags works
enh: if openssl support is required and no valid installation is found, now it raise an error

* enh: added warning if building without openssl (iperf_auth disabled)
2017-08-14 13:43:38 -07:00
Philip Prindeville
517ad2248f Add required RSA header for OpenSSL (#622)
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-08-01 11:16:07 -07:00
Bruce A. Mah
dadbd25838
Fix spelling mistake in manpage.
Fixes #610, pointed out by @borenius-dfn-de.
2017-07-17 08:22:45 -07:00
Bruce A. Mah
b6d9de52a4
Updates for iperf-3.2 (new news, update manpage, version number). 2017-06-26 14:44:38 -07:00
Bruce A. Mah
b0e0a30631
Regen. 2017-06-26 14:35:55 -07:00
Bruce A. Mah
df912d25de
The master branch is now just development again, so update version string. 2017-06-26 14:35:18 -07:00
Bruce A. Mah
88d907f7fb
Regen. 2017-06-26 10:42:56 -07:00
Bruce A. Mah
619b4e9456
Version bumps, etc. for iperf 3.2. 2017-06-26 10:37:57 -07:00
Bruce A. Mah
35f1fbf56d
Wordsmithing on README file. 2017-06-26 10:35:00 -07:00
Bruce A. Mah
4f3a7a5403
Greatly expand description section.
Based on text by @eriitguy, fixes #480.
2017-06-20 15:04:30 -07:00
Bruce A. Mah
88a5798979
More release notes updates. Inching closer to iperf-3.2. 2017-06-20 13:31:32 -07:00
Bruce A. Mah
0741ccff22
Update/fix a couple of links to fasterdata.
Motivated by #603.
2017-06-20 09:47:28 -07:00
Wes Garrison
d2dcd876f3 Update link in README to sample CLI usage (#603) 2017-06-20 09:43:13 -07:00
Bruce A. Mah
1dee3718ac
Regen. 2017-06-19 14:35:53 -07:00
Bruce A. Mah
6cdbb01e95
Preparing for a release candidate build. 2017-06-19 14:35:22 -07:00