aboutsummaryrefslogtreecommitdiff
path: root/eperd/ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'eperd/ping.c')
-rw-r--r--eperd/ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eperd/ping.c b/eperd/ping.c
index 8f7f4e0..53cbbe5 100644
--- a/eperd/ping.c
+++ b/eperd/ping.c
@@ -709,11 +709,11 @@ printf("ready_callback4: too short\n");
icmp = (struct icmphdr *) (base->packet + hlen);
/* Check the ICMP header to drop unexpected packets due to unrecognized id */
- if (icmp->un.echo.id != base->pid)
+ if (icmp->un.echo.id != (base->pid & 0x0fff))
{
#if 0
printf("ready_callback4: bad pid: got %d, expect %d\n",
- icmp->un.echo.id, base->pid);
+ icmp->un.echo.id, base->pid & 0x0fff);
#endif
goto done;
}