From 065de9ace593e41a59ed21b713c5fffbec759d50 Mon Sep 17 00:00:00 2001 From: Miguel Date: Tue, 25 Sep 2018 22:57:30 +0200 Subject: ip/icmp checksum fix --- net/inet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'net/inet.c') 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; } -- cgit v1.2.3