add: implement ttl
This commit is contained in:
@@ -52,7 +52,7 @@ void print_statistics(struct statistics const *stats, struct setting const *sett
|
||||
void print_recv(const struct setting *settings, const struct icmphdr *header, const struct timeval *start, const struct timeval *stop)
|
||||
{
|
||||
|
||||
printf("%zu bytes from %s: icmp_seq=%d ttl=%zu time=%.3f ms\n",
|
||||
printf("%zu bytes from %s: icmp_seq=%d ttl=%d time=%.3f ms\n",
|
||||
settings->payload_size + sizeof(struct icmphdr),
|
||||
settings->dest.ipstr,
|
||||
htons(header->un.echo.sequence),
|
||||
|
||||
Reference in New Issue
Block a user