fix: cast
This commit is contained in:
@@ -213,7 +213,7 @@ int main(int ac, char **av)
|
||||
}
|
||||
while (ret >= 0 && check_reply(&settings.dest.ip, &sender, packet, buffer + sizeof(struct iphdr), packet_size, ret));
|
||||
|
||||
if (ret >= (ssize_t) sizeof(struct icmphdr) + sizeof(struct iphdr) && ((struct icmphdr *) buffer + sizeof(struct iphdr))->type == 0)
|
||||
if (ret >= (ssize_t) (sizeof(struct icmphdr) + sizeof(struct iphdr)) && ((struct icmphdr *) buffer + sizeof(struct iphdr))->type == 0)
|
||||
{
|
||||
stats.packets_received++;
|
||||
print_recv(&settings, buffer, &start, &stop, &sender);
|
||||
|
||||
Reference in New Issue
Block a user