From 841b2ec413561931d186b88a245013aa8d690992 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 4 May 2002 17:38:32 +0000 Subject: [PATCH] Fix for FreeBSD --- mbtask/ping.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mbtask/ping.c b/mbtask/ping.c index f1b2f834..eb1f682a 100644 --- a/mbtask/ping.c +++ b/mbtask/ping.c @@ -269,8 +269,10 @@ int ping_receive(struct in_addr addr) return -2; if (icmp4_errcmp((char *)&icmpd, ICMP4_ECHO_LEN, &to.sin_addr, buf, len, ICMP_TIME_EXCEEDED)) return -4; +#ifdef __linux__ if (icmp4_errcmp((char *)&icmpd, ICMP4_ECHO_LEN, &to.sin_addr, buf, len, ICMP_PARAMETERPROB)) return -7; +#endif /* * No fatal problem, the return code will be -1 caused by other * icmp trafic on the network (packets not for us).