Commit Graph

717 Commits

Author SHA1 Message Date
Bruce A. Mah
466a86f9db Regen. 2015-06-30 13:46:17 -07:00
Bruce A. Mah
3a4d684d44
Bump version number. 2015-06-30 13:45:50 -07:00
Bruce A. Mah
883a465a72
Fix tarball generation (it was missing a file) and regen build goop.
Found by:	@arlake228
2015-06-30 13:19:38 -07:00
Bruce A. Mah
1e20601ffd
Regen. 2015-06-19 11:28:13 -07:00
Bruce A. Mah
b6a2021c0b
Bump version number and manpage rev dates for 3.1b1. 2015-06-19 11:27:16 -07:00
Bruce A. Mah
e83fe5a51b
More wording tweaks in doc files. 2015-06-19 10:51:57 -07:00
Bruce A. Mah
6a46a741cf
SCTP works (in theory anyway) on Solaris, relnote this. 2015-06-19 10:35:21 -07:00
Bruce A. Mah
a8a902ddf8 First iteration of release notes for a 3.1.0 release
This involves copying the release notes through 3.0.11 into the
mainline release notes file, and then updating for changes on the
mainline that haven't appeared in any prior 3.0.x release.  Not all
changes are listed.

We'll probably do a beta or two before a real 3.1.0 release.
2015-06-12 14:21:26 -07:00
Bruce A. Mah
990a036524 Merge pull request #272 from EduardoAbinader/flush_interval_results
Use iflush for interval results, to make file output behave similarly to stdout.
2015-06-11 12:56:39 -07:00
Eduardo Abinader
1c89715936 iflush for interval results
In order to keep the same behavior of stdout, iflush the results
to files as they are printed.
2015-06-06 10:44:32 -04:00
Bruce A. Mah
25eb62c7cd Handle the case where EAGAIN != EWOULDBLOCK
Fixes #268, suggested by @tvastri.
2015-05-21 10:31:17 -07:00
Bruce A. Mah
7be67e1d2c
Fix a potential syntax error if PACKAGE_BUGREPORT is undefined.
Fixes #269, solution suggested by @tvastri.
2015-05-21 09:58:41 -07:00
Bruce A. Mah
2210d55277 Merge pull request #258 from manojdelphix/master
Fix segfault in signal handler on the server if a signal arrives at the "wrong" time.

The change causes the signal handler to use a stack context whose lifetime should be valid the entire time the signal handler is active.

Fixes #257, #258.
2015-05-11 13:45:14 -07:00
Bruce A. Mah
5824381111
Make --get-server-output properly include all of the server side output.
Fixes #251, with a bug fix based on diagnosis and analysis from @nomel.
2015-05-11 10:44:06 -07:00
Bruce A. Mah
5461579d32
Regen.
This uses a newer automake, than was in use previously, although that
wasn't the main point of doing this change.
2015-05-11 10:42:44 -07:00
Bruce A. Mah
94eb944f66 Merge pull request #256 from gilles-chanteperdrix/master
Fix out-of-tree build for example programs.
2015-05-11 09:33:04 -07:00
Manoj Joseph
9293ec2c2b 257 Segfault in the signal handler 2015-03-31 11:08:16 -07:00
Gilles Chanteperdrix
19dcd39d26 Fix out-of-tree build 2015-03-27 16:42:18 +01:00
Bruce A. Mah
7645027d0d Remove an extra #ifdef left behind by #248. 2015-03-13 12:59:39 -07:00
Bruce A. Mah
3bf7253f92 Merge pull request #248 from he32/netbsd-port
Add support for NetBSD systems which have TCP_INFO implemented.
2015-03-13 12:58:30 -07:00
Havard Eidnes
86daf673f3 Add support for NetBSD systems which have TCP_INFO implemented. 2015-02-19 14:23:01 +01:00
Bruce A. Mah
a337b698d0 Merge pull request #247 from he32/unused-fix
Remove unused local variable.
2015-02-12 14:51:12 -08:00
Bruce A. Mah
a47aa46b05 Merge pull request #246 from he32/include-fix
Include <sys/time.h> for struct timeval definition.
2015-02-12 14:49:52 -08:00
Bruce A. Mah
6709836366 Merge pull request #245 from he32/tolower-fix
Two more casts for tolower() to silence compiler warnings
2015-02-12 14:48:14 -08:00
Havard Eidnes
c95ee19c59 Fix a toupper() usage too to avoid negative signed chars. 2015-02-12 15:13:00 +01:00
Havard Eidnes
bf53fb1304 Remove unused local variable. 2015-02-12 15:07:56 +01:00
Havard Eidnes
621a152b7c Include <sys/time.h> for struct timeval definition. 2015-02-12 15:04:16 +01:00
Havard Eidnes
081ad7c08c Add casts for the two remaining tolower() uses, since
tolower() is undefined for negative character values
(except for -1).

Also simplify the existing casts for tolower() usages.
2015-02-12 14:58:54 +01:00
Bruce A. Mah
6bd4e258d0 Make the combination of -B and -P but not --cport work
The case where we should have been binding the client sockets to
ephemeral ports at a specific address for parallel tests was broken.

Fixes #239

Submitted by:  @jfitzgibbon
2015-01-14 08:40:26 -08:00
Bruce A. Mah
20bd2a6efa
Generate sha256 file automatically so we don't have to copy-and-paste it. 2015-01-09 10:53:03 -08:00
Bruce A. Mah
c4719dd165
Update for 3.0.11. Also...
Move old news to a lower section level to avoid cluttering up the
table of contents.  Update copyrights and some other version numbers.
2015-01-09 10:52:11 -08:00
Bruce A. Mah
bf32d9de66
Regen. 2015-01-06 10:40:04 -08:00
Bruce A. Mah
8fb86886a4
Really make sctp_assoc_value test work correctly, at least on FreeBSD. 2015-01-06 10:34:41 -08:00
Bruce A. Mah
3b60f09017 Unbreak (partially) SCTP on Solaris.
Solaris implements an (older?) version of the API for SCTP_MAXSEG,
which takes an integer argument rather than a struct sctp_assoc_val.
We need to test for that and handle it appropriately.  There are some
signs it doesn't even work correctly if we do this, so quietly ignore
errors that happen if the OS complains it's unsupported.

Also, Solaris doesn't support SCTP_DISABLE_FRAGMENTS even though it
defines the preprocessor symbol for this.  Rather than aborting when
we try to unsuccessfully unset this option, just ignore the error.

Lightly tested with SCTP over IPv6 on localhost.
2015-01-06 10:22:00 -08:00
Bruce A. Mah
4874c4a88b
Regen. 2015-01-05 15:23:07 -08:00
Bruce A. Mah
e142062572
Add -X to restrict SCTP binding to a subset of interfaces.
Contains an alternate implementation of previously-submitted patches
to set the maximum segment size and no-delay options.

As a result of this change, SCTP functionality on Linux will generally
require the libsctp library (on CentOS and similar distributions this
is provided by the lksctp-tools RPM).

Part of #131.

Submitted by:	Bruce Simpson <bs48@st-andrews.ac.uk>
2015-01-05 15:19:57 -08:00
Bruce A. Mah
eb9a2c07c3 Unbreak master builds on CentOS 5.
The problem is that the new byte-ordering macros adopted on master
don't support CentOS 5 because they assumed that any Linux system had
endian(3) support.  CentOS 6 (and presumably newer) do, but CentOS 5
doesn't.

So instead we only do glibc endian(3) support if we're on a system
with glibc 2.9 or higher (which is when this functionality was
introduced).

For any other platform that we don't detect (which now includes older
glibc such as CentOS 5), bring back our homebrewed htonll and ntohll
implementation from iperf 3.0.x.

Fixes #224.
2015-01-05 10:42:09 -08:00
Bruce A. Mah
59e1c29f49 Merge branch https://github.com/candlerb/iperf/tree/candlerb-multisend in #232 to master
* candlerb-candlerb-multisend:
  Drop out of multisend loop if none of the streams are accepting data
2015-01-02 10:34:13 -08:00
Bruce A. Mah
bebb7dea76 Merge branch 'candlerb-multisend' of https://github.com/candlerb/iperf into candlerb-candlerb-multisend 2015-01-02 10:00:37 -08:00
Bruce A. Mah
c0f4fa6ac0 Merge pull request #231 from candlerb/candlerb-sendfile-stats
Fix calculation of sendfile throughput on OSX and FreeBSD.
2015-01-02 09:54:34 -08:00
Bruce A. Mah
d275f166c8 Merge pull request #222 from hasso/timeout-udp
Timeout if UDP port isn't reachable.

This handles the case that a control connection succeeds but UDP packets are blocked by a firewall.
2014-12-23 10:39:11 -08:00
Brian Candler
a80368bb7f Drop out of multisend loop if none of the streams are accepting data 2014-12-23 09:38:50 +00:00
Bruce A. Mah
dba611dbe4 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 <bmah@es.net>
2014-12-22 14:45:40 -08:00
Bruce A. Mah
4450b1b86d Merge pull request #233 from candlerb/candlerb-zerocopy-force
Ignore set_test_zerocopy if host does not support it
2014-12-22 13:24:47 -08:00
Brian Candler
8961016f90 Ignore set_test_zerocopy if host does not support it 2014-12-22 18:04:56 +00:00
Brian Candler
588ee5223e Fix calculation of sendfile throughput on OSX
Note that sendfile can return -1 for EINTR whilst having already sent
partial results; these were not being counted previously.
2014-12-22 10:38:59 +00:00
Bruce A. Mah
fab3e1dd85
Update documentation site for 3.0.10. 2014-12-16 14:37:03 -08:00
Hasso Tepper
b83791882d Add ifdef to the SO_RCVTIMEO code
Not all platforms have a SO_RCVTIMEO socket option.
2014-12-11 12:59:02 +02:00
Hasso Tepper
9b9dd03096 Timeout if UDP port isn't reachable
Add timeout to the UDP socket. Without it client would block infinitely
if creating a control connection succeeds, but UDP packets are dropped
by firewall.
2014-11-24 10:02:37 +02:00
Bruce A. Mah
72ac83e7f2 Make UDP tests honor the -w option for setting the socket buffer
size.

This appears to be necessary on some long, high-bandwidth paths
to get sane results, either by reducing packet loss or by somehow
allowing the sending host of a test to go faster.

Fixes #219.
2014-11-12 13:58:23 -08:00