summaryrefslogtreecommitdiff
path: root/net/inet.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-09-25 22:57:30 +0200
committerMiguel <m.i@gmx.at>2018-09-25 22:57:30 +0200
commit065de9ace593e41a59ed21b713c5fffbec759d50 (patch)
treed4ca509bf23cecf388246e18ec93127c9e89be0d /net/inet.c
parentf93f24f3a5ca4692a28ab4970bbf158e1f486074 (diff)
ip/icmp checksum fix
Diffstat (limited to 'net/inet.c')
-rw-r--r--net/inet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/inet.c b/net/inet.c
index f7cc2a6..67895d5 100644
--- a/net/inet.c
+++ b/net/inet.c
@@ -21,7 +21,8 @@ uint16_t checksum(void *addr, int count)
while( count > 1 ) {
/* This is the inner loop */
- sum += ntohs(* ptr++);
+ //sum += ntohs(* ptr++);
+ sum += *ptr++;
count -= 2;
}