packages/net/iperf/patches/020-fix-udp-checksum.patch
2025-01-07 14:09:40 +08:00

12 lines
299 B
Diff

--- 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;