diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/user/app/ethdump/icmp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/user/app/ethdump/icmp.c b/src/user/app/ethdump/icmp.c index e23ab01..0c6a502 100644 --- a/src/user/app/ethdump/icmp.c +++ b/src/user/app/ethdump/icmp.c @@ -27,6 +27,7 @@ void icmp_send(const void *payload, size_t len, struct icmp i) { pkt[Type] = i.type; pkt[Code] = i.code; memcpy(pkt + Payload, payload, len); + nput16(pkt + Checksum, 0); nput16(pkt + Checksum, ip_checksum(pkt, Payload + len)); ipv4_send(pkt, Payload + len, i.ip); free(pkt); |