fix: timeout

This commit is contained in:
2025-12-19 02:20:55 -06:00
parent 4f19052a96
commit 664c731f74

View File

@@ -152,6 +152,9 @@ int main(int ac, char **av)
{
ssize_t recv_size = recvfrom(sockfd, buffer, recv_packet_size, 0, (struct sockaddr *) &sender, &len);
if (recv_size == -1)
break;
gettimeofday(&stop, NULL);
struct icmphdr *recv_hdr = (struct icmphdr *) (buffer + sizeof(struct iphdr));