diff options
author | Bruce A. Mah <bmah@es.net> | 2014-06-17 13:15:26 -0700 |
---|---|---|
committer | Bruce A. Mah <bmah@es.net> | 2014-06-17 13:15:26 -0700 |
commit | 6c0147f2fe85f0c5fff7d21c9e7bef4fef6b1f27 (patch) | |
tree | b0e70a911f87acf9271669a249a4c85ecc69221e /src | |
parent | edf9d4e8cf6fe8d7b0d08ffa26f0ee58dbf45c0d (diff) | |
download | iperf3-6c0147f2fe85f0c5fff7d21c9e7bef4fef6b1f27.tar.gz |
Remove unnecessary inclusion of <sys/queue.h>, as well as some ifdef-ed
out code that depended on it.
Fixes #180.
Diffstat (limited to 'src')
-rw-r--r-- | src/tcp_info.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/tcp_info.c b/src/tcp_info.c index b0336fa..a0b7ba7 100644 --- a/src/tcp_info.c +++ b/src/tcp_info.c @@ -28,7 +28,6 @@ #include <stdio.h> #include <stdlib.h> #include <sys/param.h> -#include <sys/queue.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/tcp.h> @@ -123,38 +122,6 @@ get_snd_cwnd(struct iperf_interval_results *irp) #endif } -#ifdef notdef -/*************************************************************/ -//print_tcpinfo(struct iperf_interval_results *r) -void -print_tcpinfo(struct iperf_test *test) -{ -#if defined(linux) - long int retransmits = 0; - struct iperf_stream *sp; - SLIST_FOREACH(sp, &test->streams, streams) { - retransmits += TAILQ_LAST(&sp->result->interval_results, irlisthead)->tcpInfo.tcpi_retransmits; - } - printf("TCP Info\n"); - printf(" Retransmits: %ld\n", retransmits); - -/* old test print_tcpinfo code - printf(report_tcpInfo, r->tcpInfo.tcpi_snd_cwnd, r->tcpInfo.tcpi_snd_ssthresh, - r->tcpInfo.tcpi_rcv_ssthresh, r->tcpInfo.tcpi_unacked, r->tcpInfo.tcpi_sacked, - r->tcpInfo.tcpi_lost, r->tcpInfo.tcpi_retrans, r->tcpInfo.tcpi_fackets, - r->tcpInfo.tcpi_rtt, r->tcpInfo.tcpi_reordering); -*/ -#endif -#if defined(__FreeBSD__) -/* - printf(report_tcpInfo, r->tcpInfo.tcpi_snd_cwnd, r->tcpInfo.tcpi_rcv_space, - r->tcpInfo.tcpi_snd_ssthresh, r->tcpInfo.tcpi_rtt); -*/ -#endif -} -#endif - - /*************************************************************/ void build_tcpinfo_message(struct iperf_interval_results *r, char *message) |