「🔨」 fix: sus
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user