diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2017-08-19 04:48:49 +0000 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2017-08-19 04:48:49 +0000 |
commit | 801345a9a164ceb5f40ad5d9ee636584f7c18e9c (patch) | |
tree | f8d8ec43857dfa5223d96f179e2fd321dfe3ddb9 | |
parent | 41bd8ea2a9f2b56e020119bb07a21a85706d8fe4 (diff) | |
download | FreeBSD-ports-801345a9a164ceb5f40ad5d9ee636584f7c18e9c.zip FreeBSD-ports-801345a9a164ceb5f40ad5d9ee636584f7c18e9c.tar.gz |
MFH: r448243
Add upstream patch to fix 32 bit constant
- Bump PORTREVISION for package change
Obtained from: https://sourceforge.net/p/iperf2/code/ci/33812baeb46fce55e45b5ebc7da9dbdd8112a386/
Notified by: Robert McMahon <rjmcmahon@rjmcmahon.com>
Approved by: ports-secteam (feld)
-rw-r--r-- | benchmarks/iperf/Makefile | 1 | ||||
-rw-r--r-- | benchmarks/iperf/files/patch-src-Client.cpp | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/benchmarks/iperf/Makefile b/benchmarks/iperf/Makefile index 2797a04..2b7f8c6 100644 --- a/benchmarks/iperf/Makefile +++ b/benchmarks/iperf/Makefile @@ -3,6 +3,7 @@ PORTNAME= iperf PORTVERSION= 2.0.10 +PORTREVISION= 1 CATEGORIES= benchmarks MASTER_SITES= SF/${PORTNAME}2 diff --git a/benchmarks/iperf/files/patch-src-Client.cpp b/benchmarks/iperf/files/patch-src-Client.cpp new file mode 100644 index 0000000..9e4e2c8 --- /dev/null +++ b/benchmarks/iperf/files/patch-src-Client.cpp @@ -0,0 +1,11 @@ +--- src/Client.cpp.orig 2017-08-09 03:54:14 UTC ++++ src/Client.cpp +@@ -680,7 +680,7 @@ void Client::Run( void ) { + + // store datagram ID into buffer + if (isSeqNo64b(mSettings)) { +- mBuf_UDP->id = htonl((reportstruct->packetID & 0xFFFFFFFFFL)); ++ mBuf_UDP->id = htonl((reportstruct->packetID & 0xFFFFFFFFL)); + mBuf_UDP->id2 = htonl((((reportstruct->packetID & 0xFFFFFFFF00000000LL) >> 32) | 0x80000000L)); + } else { + mBuf_UDP->id = htonl(((reportstruct->packetID & 0xFFFFFFFFL) | 0x80000000L)); |