diff options
Diffstat (limited to 'src/user/app/netstack')
-rw-r--r-- | src/user/app/netstack/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/user/app/netstack/util.c b/src/user/app/netstack/util.c index 7c484f3..9981aa3 100644 --- a/src/user/app/netstack/util.c +++ b/src/user/app/netstack/util.c @@ -25,7 +25,7 @@ uint16_t ip_checksum(const uint8_t *buf, size_t len) { buf += 2; len -= 2; } if (len) c += (*buf) << 8; - while (c >= 0xFFFF) + while (c > 0xFFFF) c = (c & 0xFFFF) + (c >> 16); return ~c; } |