fix: packet size recv

This commit is contained in:
2025-12-16 05:59:53 -06:00
parent bd178a5cda
commit 5617ceb5f6
3 changed files with 9 additions and 6 deletions

View File

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