projects
/
project
/
unetd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
412d030
)
utils: fix ipv4 checksum issue
author
Felix Fietkau
<nbd@nbd.name>
Fri, 5 May 2023 12:37:19 +0000
(14:37 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 5 May 2023 12:37:21 +0000
(14:37 +0200)
The parameter order for protocol and length was accidentally reversed,
leading to issues for packets > 256 bytes
Signed-off-by: Felix Fietkau <nbd@nbd.name>
utils.c
patch
|
blob
|
history
diff --git
a/utils.c
b/utils.c
index 704bc57d332de928b5afe59c97a5cd71eaa71448..90cdfe562f7a17a3ccfb9aae18378202a1a248c6 100644
(file)
--- a/
utils.c
+++ b/
utils.c
@@
-200,7
+200,7
@@
uint64_t unet_gettime(void)
}
static inline uint32_t
-csum_tcpudp_nofold(uint32_t saddr, uint32_t daddr, uint
32_t len, uint8_t proto
)
+csum_tcpudp_nofold(uint32_t saddr, uint32_t daddr, uint
8_t proto, uint32_t len
)
{
uint64_t sum = 0;