History log of /iperf/src/tcp_info.c (Results 1 – 25 of 43)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: 3.11
# e919e8c2 03-Sep-2021 a1346054 <[email protected]>

trim excess whitespace


# 50d6cce6 03-Sep-2021 a1346054 <[email protected]>

fix spelling


Revision tags: 3.10.1, 3.10
# 47985d7f 19-May-2021 Shuo Chen <[email protected]>

Add tcp_info.snd_wnd to JSON output.

tcp_info.snd_wnd is available on FreeBSD and NetBSD since TCP_INFO was
added. It was added to Linux 5.4 in late 2019 and becomes available
in Ubuntu 20.04 and D

Add tcp_info.snd_wnd to JSON output.

tcp_info.snd_wnd is available on FreeBSD and NetBSD since TCP_INFO was
added. It was added to Linux 5.4 in late 2019 and becomes available
in Ubuntu 20.04 and Debian 11.

Tested on:
* Debian 11 running on x86-64 with this field.
* Debian 10 armv7 running on Raspberry Pi 2 without this field.
* NetBSD 9.2 armv7 running on Raspberry Pi 3 with this field.
* FreeBSD 13 aarch64 running on Raspberry Pi 4 with this field.

show more ...


Revision tags: 3.9, 3.8.1, 3.8
# 63439867 16-Nov-2019 Xiang Xiao <[email protected]>

ensure build_tcpinfo_message TCP_INFO check consistent with iperf_interval_results

Part of #935.

Change-Id: Id702dee9d894d91420719928ae2de6b44b72f579
Signed-off-by: Xiang Xiao <[email protected]

ensure build_tcpinfo_message TCP_INFO check consistent with iperf_interval_results

Part of #935.

Change-Id: Id702dee9d894d91420719928ae2de6b44b72f579
Signed-off-by: Xiang Xiao <[email protected]>
(cherry picked from commit 9dab732f5ec41be873cae3351b3d57fbfad36c93)
Signed-off-by: Bruce A. Mah <[email protected]>

show more ...


Revision tags: 3.7, 3.6, 3.5, 3.4, 3.3, 3.2, 3.2rc1
# 52375c10 12-May-2017 Bruce A. Mah <[email protected]>

Grab TCP PMTU during tests (on Linux only). Towards #569. (#578)


# b9478db9 22-Apr-2017 Bruce A. Mah <[email protected]>

Fix a problem when getting snd_cwnd on FreeBSD.

On FreeBSD, unlike Linux (and NetBSD?) snd_cwnd is expressed in
octets instead of segments. Hilarity ensued when we erroneously
multiplied by snd_mss

Fix a problem when getting snd_cwnd on FreeBSD.

On FreeBSD, unlike Linux (and NetBSD?) snd_cwnd is expressed in
octets instead of segments. Hilarity ensued when we erroneously
multiplied by snd_mss and integer overflows occureed.

Possible fix for #465, #475, #338. Testing from FreeBSD users
appreciated.

show more ...


# 5d14d106 30-Mar-2017 Tran Viet Hoang <[email protected]>

add tcp rttvar to stream info (#534)

Fixes #525.


# a8ee9c65 22-Mar-2017 f1rebird <[email protected]>

Fix header includes and build failures on musl (#518)

* Include stdint.h in files where its types are used

Signed-off-by: Moritz Kick <[email protected]>

* Fix type of len para

Fix header includes and build failures on musl (#518)

* Include stdint.h in files where its types are used

Signed-off-by: Moritz Kick <[email protected]>

* Fix type of len parameter passed to getsockopt

getsockopt expects socklen_t instead of int as its fifth argument

Signed-off-by: Moritz Kick <[email protected]>

* Remove unnecassary includes of netinet/tcp.h

also cleanup the second include of stdint.h in main.c

This commit fixes #331 and is a replacement for #344.

Signed-off-by: Moritz Kick <[email protected]>

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
# 7645027d 13-Mar-2015 Bruce A. Mah <[email protected]>

Remove an extra #ifdef left behind by #248.


# 86daf673 19-Feb-2015 Havard Eidnes <[email protected]>

Add support for NetBSD systems which have TCP_INFO implemented.


Revision tags: 3.0.11, 3.0.10
# 432ef7eb 23-Oct-2014 Bruce A. Mah <[email protected]>

Retrieve RTT information on platforms supporting it.

This value is available on the sender side, expressed in
microseconds. It's available in the JSON output.

In the JSON output we also output the

Retrieve RTT information on platforms supporting it.

This value is available on the sender side, expressed in
microseconds. It's available in the JSON output.

In the JSON output we also output the maximum observed RTT
per-stream. Note that since the observation interval is many times
the RTT, it's not clear how good this value would be at capturing the
largest computed RTT value over the lifetime of each stream.

While here, also determine the maximum observed snd_cwnd value over
the lifetime of each stream.

This all works pretty well on Linux, but on FreeBSD (which should
theoretically be supported) we don't do a good job of supporting the
tcp_info structure. We need to make this code a lot more portable,
rather than just assuming the world of platforms is "Linux"
vs. "everything else". Fixing this requires some rearchitecting of
the way that we retrieve, compute, and print statistics.

Part of a fix for #215.

show more ...


Revision tags: 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 ...


# a1861d5f 15-Sep-2014 Bruce A. Mah <[email protected]>

Rename locale.{c,h} to iperf_locale.{c,h} to avoid filename collision
with system header <locale.h>.

This apparently fixes problems on an ARM build, but this was generally
broken anyway. It's sligh

Rename locale.{c,h} to iperf_locale.{c,h} to avoid filename collision
with system header <locale.h>.

This apparently fixes problems on an ARM build, but this was generally
broken anyway. It's slightly amazing this didn't cause problems before;
perhaps we never used <locale.h> before?

Addresses #203.

show more ...


Revision tags: 3.0.7, 3.0.6
# 6c0147f2 17-Jun-2014 Bruce A. Mah <[email protected]>

Remove unnecessary inclusion of <sys/queue.h>, as well as some ifdef-ed
out code that depended on it.

Fixes #180.


Revision tags: 3.0.5, 3.0.4, 3.0.3, 3.0.2
# d076653b 14-Feb-2014 Bruce A. Mah <[email protected]>

Output TCP snd_cwnd (on platforms supporting it) in normal output.

We were computing and printing this in JSON output mode anyway; this
change just exposes this quantity in a human-friendly manner (

Output TCP snd_cwnd (on platforms supporting it) in normal output.

We were computing and printing this in JSON output mode anyway; this
change just exposes this quantity in a human-friendly manner (better
than the first attempt at this) when doing normal output.

Resolves Issue 99 (Additional TCP_INFO items).

show more ...


Revision tags: 3.0.1
# dcd7b32b 19-Dec-2013 Bruce A. Mah <[email protected]>

Follow-on to 4cfce137e89c based on some feedback and experience.

Rip out the tcpi_sacked support...it doesn't really keep a cumulative
total of SACKs received like we thought it did (it's instantane

Follow-on to 4cfce137e89c based on some feedback and experience.

Rip out the tcpi_sacked support...it doesn't really keep a cumulative
total of SACKs received like we thought it did (it's instantaneous
state).

Convert tcpi_snd_cwnd (originally expressed in segments) to octets before
printing.

Re-work internal APIs for functions to get stuff out of tcp_info...rather
than doing a getsockopt() call per value, grab the values out of a
saved copy of the tcp_info structure (which we were getting in almost
every case anyway).

Issue: 99 (Additional TCP_INFO items)

show more ...


# c2cb7b75 19-Dec-2013 Bruce A. Mah <[email protected]>

Remove some (commented out) debugging code accidentally left in.


# 5cdc6a4a 18-Dec-2013 Bruce A. Mah <[email protected]>

Keep track of SACKs and snd_cwnd from tcp_info (Linux only for now).

Committing this WIP so we can get some experimentation done with it.


# 69376ec7 29-Oct-2013 Jef Poskanzer <[email protected]>

Fix retransmit accounting so it works right with the --omit flag.


Revision tags: 3.0-BETA5
# eb0206e6 07-Feb-2013 Jef Poskanzer <[email protected]>

Better handling of non-exit errors in JSON.
Also converted one more error to the unified call.


# 9bfb54c0 01-Feb-2013 Jef Poskanzer <[email protected]>

Add -J flag to produce JSON output instead.


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

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


# d6e2781d 04-Dec-2012 Jef Poskanzer <[email protected]>

Better detection of when linux has retransmit info in tcp_info.


# 46baab59 03-Dec-2012 Jef Poskanzer <[email protected]>

Disable retransmit reporting for FreeBSD, it's not actually
implemented in the OS yet.


# acad430d 03-Dec-2012 Jef Poskanzer <[email protected]>

Fix retransmit reporting for Linux.


12