From f8271f58d0f47f7a7ffa787512c227982eb4d6f2 Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Tue, 23 Jun 2015 14:18:02 +0200 Subject: ripe-atlas-fw: imported version 4700 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- eperd/ping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eperd/ping.c') 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; } -- cgit v1.2.3