fix: do not check the size of the packet recvd
This commit is contained in:
@@ -214,7 +214,7 @@ int main(int ac, char **av)
|
|||||||
}
|
}
|
||||||
gettimeofday(&stop, NULL);
|
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)
|
if (((struct icmphdr *) buffer + sizeof(struct iphdr))->type == 0)
|
||||||
stats.packets_received++;
|
stats.packets_received++;
|
||||||
|
|||||||
Reference in New Issue
Block a user