History log of /iperf/src/net.h (Results 1 – 25 of 27)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: 3.11, 3.10.1
# b915645a 27-May-2021 Shuo Chen <[email protected]>

Fix --bind-dev options for TCP streams. (#1099)

netdial() honors --bind-dev option but iperf_tcp_connect() doesn't,
as a result, only the control socket is bound to the device, but not
the data sock

Fix --bind-dev options for TCP streams. (#1099)

netdial() honors --bind-dev option but iperf_tcp_connect() doesn't,
as a result, only the control socket is bound to the device, but not
the data socket.

Instead of duplicaing code from netdial to iperf_tcp_connect(), this
fix extracts a common util function create_socket() from netdial() and
let iperf_tcp_connect() call create_socket() to create a socket with
optional bindings.

Tested on Raspberry Pi 3 with eth0 and wlan0.

show more ...


Revision tags: 3.10
# 21581a72 22-Dec-2020 Bruce A. Mah <[email protected]>

enh: Support SO_BINDTODEVICE (#1097)

This lets iperf work better with multi-homed machines and
VRF.

Fixes #1089.

Based on a patch by Ben Greear <[email protected]> via PR #817.

Co-au

enh: Support SO_BINDTODEVICE (#1097)

This lets iperf work better with multi-homed machines and
VRF.

Fixes #1089.

Based on a patch by Ben Greear <[email protected]> via PR #817.

Co-authored-by: Ben Greear <[email protected]>

show more ...


Revision tags: 3.9
# 3888e044 12-Jun-2020 David Bar-On <[email protected]>

chore: Change applicable function arguments from 'char *' to 'const char *' (#1006)

Fixes #946. Should not present any functional changes.


Revision tags: 3.8.1, 3.8, 3.7, 3.6, 3.5, 3.4
# 34f878a2 14-Nov-2017 Todd C. Miller <[email protected]>

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_te

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().

show more ...


Revision tags: 3.3, 3.2, 3.2rc1
# 9d7d60ac 17-May-2017 Bruce A. Mah <[email protected]>

Issue 216 (#581)

* Add configurable timeout for the setup of the control connection.
This is specified using the new --connect-timeout option, with an
integer parameter in ms. The iperf3 client w

Issue 216 (#581)

* Add configurable timeout for the setup of the control connection.
This is specified using the new --connect-timeout option, with an
integer parameter in ms. The iperf3 client will wait for this
amount of time for the setup of the control connection to the
server. If this option is not given, the OS default for TCP
connection setup is used. Specifying a smaller connection timeout
allows faster detection of a down / unresponsive iperf3 server.

The implementation uses a variation on the timeout_connect()
function from OpenBSD's netcat utility.

Fixes #216.

show more ...


# 97c95c3b 14-Apr-2017 Dave Täht <[email protected]>

add support for specifying --dscp symbolically and numerically (#508)

Using a command line adding dscp (instead of tos) you can:

--dscp EF,CS1,etc.
--dscp 0x08
--dscp 63

These will provide t

add support for specifying --dscp symbolically and numerically (#508)

Using a command line adding dscp (instead of tos) you can:

--dscp EF,CS1,etc.
--dscp 0x08
--dscp 63

These will provide the correct shifted left 2 tos value for these, and
for people that think in terms of dscp values, this is a goodness.

Having this option available lets an enduser clearly distinguish between
an old version of iperf with a non-working --tos facility, vs a
version where it works, with something saner that lets just specify
the dscp.

I did not come up with a good -? option for it, and used -5 internally.

show more ...


Revision tags: 3.1.7, 3.1.6, 3.1.5, 3.1.4, 3.0.12, 3.1.3, 3.1.2, 3.1.1, 3.1, 3.1b3, 3.1b2, 3.1b1, 3.0.11, 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 ...


# 023fb45e 15-Sep-2014 Kevin Constantine <[email protected]>

specify client-side port: UDP support

--cport can be specified for udp connections

Signed-off-by: Kevin Constantine <[email protected]>


Revision tags: 3.0.7, 3.0.6, 3.0.5, 3.0.4
# cfed9382 09-Apr-2014 Bruce A. Mah <[email protected]>

Get rid of definitions of ntohll and htonll that were broken on FreeBSD.

These macros were never used anywhere in iperf3 anyways, and
conflicted with macro definitions that were in FreeBSD's system

Get rid of definitions of ntohll and htonll that were broken on FreeBSD.

These macros were never used anywhere in iperf3 anyways, and
conflicted with macro definitions that were in FreeBSD's system
headers.

Bump copyright date and add a comment to inclusion guard while here.

show more ...


Revision tags: 3.0.3, 3.0.2, 3.0.1
# a6b3f26b 30-Mar-2013 Jef Poskanzer <[email protected]>

Dual-stack operation - IPv4 and IP46 in the same server.
Also added -4 flag to force IPv4.


Revision tags: 3.0-BETA5
# 0f53b154 12-Mar-2013 Jef Poskanzer <[email protected]>

Improved setnonblocking() to set the flag on or off instead of just on.


# 987b4323 04-Mar-2013 Jef Poskanzer <[email protected]>

A bunch of changes mixed together in this commit, but the significant
one is the new -Z flag.

- Fixed potential bug in net.c's Nread and Nwrite routines. If they
had ever needed to loop they would

A bunch of changes mixed together in this commit, but the significant
one is the new -Z flag.

- Fixed potential bug in net.c's Nread and Nwrite routines. If they
had ever needed to loop they would have read/written the wrong address,
due to incorrect pointer arithmetic - sizeof(void) is not 1. Fix
was to change the type of the buffer pointer to char*, which also
meant adding casts to some callers.

- Better checking for conflicts between command-line flags - now they
should no longer be order-dependent.

- Added a new -Z / --zerocopy flag, to use a "zero copy" method of
sending data, such as sendfile(2) instead of the usual write(2).

- Renumbered error enum to make inserting new ones easier.

show more ...


# 0da578e7 28-Feb-2013 Jef Poskanzer <[email protected]>

Improved version of setnonblocking() - still not used.


# 43929b36 22-Feb-2013 Jef Poskanzer <[email protected]>

Added "burst mode" to send a bunch of packets in a row without
intervening select() calls. This increases performance quite a bit.


# 231c5629 18-Feb-2013 Jef Poskanzer <[email protected]>

Comment out the "__attribute__((hot))" declarations because they cause
compiler warnings on older systems. They probably didn't help
performance anyway. They'll remain in the source as markers.


# ba55284d 18-Feb-2013 Jef Poskanzer <[email protected]>

Added some "hot" attributes to mark a few routines that deserve
extra optimization. Most likely this has no effect.


# d7613a8e 13-Dec-2012 Jef Poskanzer <[email protected]>

Allow API client to provide an fd for the client-side control socket.


# 7d375156 20-Apr-2011 Jon Dugan <[email protected]>

update license info for all source files


Revision tags: 3.0-BETA4
# f99bd3b2 27-Jul-2010 sethdelliott <devnull@localhost>

Added support for IPv6 mode (-6)


# a1344ede 26-Jul-2010 sethdelliott <devnull@localhost>

Added support for binding (-B) to a specific interface


Revision tags: 3.0-BETA3, 3.0-BETA2
# 8556db5d 14-Jul-2010 sethdelliott <devnull@localhost>

Added support for UDP mode (-b mode not yet supported). Added htonll/ntohll functions. Cleaned up code.


Revision tags: 3.0-BETA1
# efdc02f7 30-Jun-2010 sethdelliott <devnull@localhost>

The server now runs until terminated by the user. Also fixed several memory leaks.


# fd10304c 28-Jun-2010 sethdelliott <devnull@localhost>

Updates to Nread/Nwrite in net.c


# a951c980 02-Nov-2009 Brian Tierney <[email protected]>

lots of code restructuring


# 1b85468f 27-Oct-2009 Brian Tierney <[email protected]>

more cleanup of TCP/UDP code


12