diff options
author | sethdelliott <devnull@localhost> | 2010-07-28 20:29:25 +0000 |
---|---|---|
committer | sethdelliott <devnull@localhost> | 2010-07-28 20:29:25 +0000 |
commit | dd4bc0089bcba861921e10c44b638f634a3b9eb4 (patch) | |
tree | c158fcad196d9ca0e30e4f103485376d62ad6504 /src/tcp_info.c | |
parent | ffdcc7d45737a2e8179f64b95fd59a66f33db42c (diff) | |
download | iperf3-dd4bc0089bcba861921e10c44b638f634a3b9eb4.tar.gz |
Stream list is now managed by queue.h SLIST macros
Diffstat (limited to 'src/tcp_info.c')
-rw-r--r-- | src/tcp_info.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tcp_info.c b/src/tcp_info.c index 083781a..05c901d 100644 --- a/src/tcp_info.c +++ b/src/tcp_info.c @@ -19,6 +19,7 @@ #include <stdio.h> #include <stdlib.h> +#include <sys/queue.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/tcp.h> @@ -34,7 +35,7 @@ get_tcpinfo(struct iperf_test *test, struct iperf_interval_results *rp) { #if defined(linux) || defined(__FreeBSD__) socklen_t tcp_info_length; - struct iperf_stream *sp = test->streams; + struct iperf_stream *sp = SLIST_FIRST(&test->streams); tcp_info_length = sizeof(struct tcp_info); //printf("getting TCP_INFO for socket %d \n", sp->socket); |