From 400cb257d9c749907e8614fd0eca4419496f8782 Mon Sep 17 00:00:00 2001 From: starnakin Date: Tue, 16 Dec 2025 03:50:32 -0600 Subject: [PATCH] fix: do not check the size of the packet recvd --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index baca05e..2009aa9 100644 --- a/src/main.c +++ b/src/main.c @@ -214,7 +214,7 @@ int main(int ac, char **av) } gettimeofday(&stop, NULL); } - while (((size_t) ret != recv_packet_size) || (check_reply(&settings.dest.ip, &sender, packet, buffer + sizeof(struct iphdr), packet_size))); + while (check_reply(&settings.dest.ip, &sender, packet, buffer + sizeof(struct iphdr), packet_size)); if (((struct icmphdr *) buffer + sizeof(struct iphdr))->type == 0) stats.packets_received++;