diff options
| author | Miguel <m.i@gmx.at> | 2018-09-25 22:57:30 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-25 22:57:30 +0200 |
| commit | 065de9ace593e41a59ed21b713c5fffbec759d50 (patch) | |
| tree | d4ca509bf23cecf388246e18ec93127c9e89be0d /net/inet.c | |
| parent | f93f24f3a5ca4692a28ab4970bbf158e1f486074 (diff) | |
ip/icmp checksum fix
Diffstat (limited to 'net/inet.c')
| -rw-r--r-- | net/inet.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |
