mirror of
https://github.com/coolsnowwolf/packages.git
synced 2025-05-01 02:41:22 +08:00
12 lines
299 B
Diff
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;
|