From 2e5f59ab1ff13715f699d5e0cfbd6714d3b08092 Mon Sep 17 00:00:00 2001 From: Internet1235 <135099493+Internet1235@users.noreply.github.com> Date: Tue, 7 Jan 2025 13:31:25 +0800 Subject: [PATCH] iperf: bump to 2.2.1 --- net/iperf/Makefile | 7 ++++--- net/iperf/patches/020-fix-udp-checksum.patch | 11 +++++++++++ 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 net/iperf/patches/020-fix-udp-checksum.patch diff --git a/net/iperf/Makefile b/net/iperf/Makefile index 3c320bff..fff96be0 100644 --- a/net/iperf/Makefile +++ b/net/iperf/Makefile @@ -8,15 +8,16 @@ include $(TOPDIR)/rules.mk PKG_NAME:=iperf -PKG_VERSION:=2.1.8 -PKG_RELEASE:=$(AUTORELEASE) +PKG_VERSION:=2.2.1 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_HASH:=8e2cf2fbc9d0d4d1cf9d109b1e328459f9622993dc9a4c5a7dc8a2088fb7beaf +PKG_HASH:=754ab0a7e28033dbea81308ef424bc7df4d6e2fe31b60cc536b61b51fefbd8fb PKG_SOURCE_URL:=@SF/iperf2 PKG_MAINTAINER:=Felix Fietkau PKG_LICENSE:=BSD-3-Clause +PKG_CPE_ID:=cpe:/a:iperf_project:iperf PKG_BUILD_PARALLEL:=1 diff --git a/net/iperf/patches/020-fix-udp-checksum.patch b/net/iperf/patches/020-fix-udp-checksum.patch new file mode 100644 index 00000000..a50ebf8a --- /dev/null +++ b/net/iperf/patches/020-fix-udp-checksum.patch @@ -0,0 +1,11 @@ +--- a/src/checksums.c ++++ b/src/checksums.c +@@ -172,7 +172,7 @@ uint32_t udpchecksum(const void *l3pdu, + int i; + + const struct udphdr *udp_hdr = (const struct udphdr *)l4pdu; +- if (!udp_hdr->check) { ++ if (!udp_hdr->uh_sum) { + if (v6) + // v6 requires checksums + return -1;