From 2eb2556f28dd25c3f5234140254cac5dadfd2c1b Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 18 Aug 2017 15:57:22 +0000 Subject: [PATCH] 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 MFH: 2017Q3 --- benchmarks/iperf/Makefile | 1 + benchmarks/iperf/files/patch-src-Client.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 benchmarks/iperf/files/patch-src-Client.cpp diff --git a/benchmarks/iperf/Makefile b/benchmarks/iperf/Makefile index 2797a0458fdc..2b7f8c62036a 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 000000000000..9e4e2c8355f1 --- /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));