aboutsummaryrefslogtreecommitdiff
path: root/src/iperf.h
diff options
context:
space:
mode:
authorHavard Eidnes <he@uninett.no>2015-02-19 14:23:01 +0100
committerHavard Eidnes <he@uninett.no>2015-02-19 14:23:01 +0100
commit86daf673f3ae49bbd7b215ce19492ce4585d861c (patch)
treeae8f0d514a9c10fce40138708e54d74029260d53 /src/iperf.h
parenta337b698d0914cb2114787e32aee42cbfbc76dfe (diff)
downloadiperf3-86daf673f3ae49bbd7b215ce19492ce4585d861c.tar.gz
Add support for NetBSD systems which have TCP_INFO implemented.
Diffstat (limited to 'src/iperf.h')
-rw-r--r--src/iperf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/iperf.h b/src/iperf.h
index ede93b5..447eaad 100644
--- a/src/iperf.h
+++ b/src/iperf.h
@@ -66,8 +66,9 @@ struct iperf_interval_results
int cnt_error;
int omitted;
-#if defined(linux) || defined(__FreeBSD__)
- struct tcp_info tcpInfo; /* getsockopt(TCP_INFO) for Linux and FreeBSD */
+#if (defined(linux) || defined(__FreeBSD__) || defined(__NetBSD__)) && \
+ defined(TCP_INFO)
+ struct tcp_info tcpInfo; /* getsockopt(TCP_INFO) for Linux, {Free,Net}BSD */
#else
/* Just placeholders, never accessed. */
char *tcpInfo;