aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/iperf
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-12-13 13:43:41 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-12-13 13:43:41 +0000
commit147ca1d2b3b4790d58aea2d301295f4ee7a656bd (patch)
treebdf3275ac5a54a6f3cb928a3b2102720dbb80f88 /benchmarks/iperf
parentc86412d46a9c6c496b0ed86b5eec9cfcf7098253 (diff)
downloadports-147ca1d2b3b4790d58aea2d301295f4ee7a656bd.tar.gz
ports-147ca1d2b3b4790d58aea2d301295f4ee7a656bd.zip
- If the network card's buffer is full, send returns -1 and sets
errno to ENOBUFS, which causes issues with the UDP bandwidth tests. Check if errno != ENOBUFS after write(2). - Bump PORTREVISION Submitted by: Ryan T. Dean <rtdean___tcamail.net>
Notes
Notes: svn path=/head/; revision=179661
Diffstat (limited to 'benchmarks/iperf')
-rw-r--r--benchmarks/iperf/Makefile1
-rw-r--r--benchmarks/iperf/files/patch-src__Client.cpp16
2 files changed, 17 insertions, 0 deletions
diff --git a/benchmarks/iperf/Makefile b/benchmarks/iperf/Makefile
index cf4ce326358d..dfdee46c37e2 100644
--- a/benchmarks/iperf/Makefile
+++ b/benchmarks/iperf/Makefile
@@ -7,6 +7,7 @@
PORTNAME= iperf
PORTVERSION= 2.0.2
+PORTREVISION= 1
CATEGORIES= benchmarks ipv6
MASTER_SITES= http://dast.nlanr.net/Projects/Iperf2.0/ \
${MASTER_SITE_SOURCEFORGE}
diff --git a/benchmarks/iperf/files/patch-src__Client.cpp b/benchmarks/iperf/files/patch-src__Client.cpp
new file mode 100644
index 000000000000..4ef41aa22ee8
--- /dev/null
+++ b/benchmarks/iperf/files/patch-src__Client.cpp
@@ -0,0 +1,16 @@
+#
+# If the network card's buffer is full, send returns -1 and sets
+# errno to ENOBUFS, which causes issues with the UDP bandwidth tests.
+# Check if errno != ENOBUFS after write(2).
+#
+--- src/Client.cpp.orig Wed Dec 13 11:22:18 2006
++++ src/Client.cpp Wed Dec 13 11:22:47 2006
+@@ -215,7 +215,7 @@
+
+ // perform write
+ currLen = write( mSettings->mSock, mBuf, mSettings->mBufLen );
+- if ( currLen < 0 ) {
++ if ( currLen < 0 && errno != ENOBUFS ) {
+ WARN_errno( currLen < 0, "write2" );
+ break;
+ }