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