fix: do not check the size of the packet recvd

This commit is contained in:
2025-12-16 03:50:32 -06:00
parent 300fd4a01c
commit 400cb257d9

View File

@@ -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++;