diff --git a/src/ping/send_icmp.c b/src/ping/send_icmp.c index a482b71..c21b799 100644 --- a/src/ping/send_icmp.c +++ b/src/ping/send_icmp.c @@ -77,7 +77,7 @@ void process_icmp(char *buf, int bytes, struct sockaddr_in *addr, int seq, append_time(rtt); - printf("%d bytes from %s: icmp_seq=%d ttl=%d time=%.3f\n", bytes, + printf("%lu bytes from %s: icmp_seq=%d ttl=%d time=%.3f\n", bytes - len + sizeof(struct icmphdr), inet_ntoa(addr->sin_addr), ntohs(icmp->un.echo.sequence), ip->ip_ttl, rtt); }