From: Thomas Klausner Date: Fri, 13 May 2022 04:49:52 +0000 (+0200) Subject: NetBSD/alpha is not affected by the "broken alpha headers" bug. X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d3eee1105e2559419a3820bb71d66fc44a2de55;p=fping.git NetBSD/alpha is not affected by the "broken alpha headers" bug. --- diff --git a/src/fping.c b/src/fping.c index af16061..4f66174 100644 --- a/src/fping.c +++ b/src/fping.c @@ -2087,7 +2087,7 @@ int decode_icmp_ipv4( if (!using_sock_dgram4) { struct ip* ip = (struct ip*)reply_buf; -#if defined(__alpha__) && __STDC__ && !defined(__GLIBC__) +#if defined(__alpha__) && __STDC__ && !defined(__GLIBC__) && !defined(__NetBSD__) /* The alpha headers are decidedly broken. * Using an ANSI compiler, it provides ip_vhl instead of ip_hl and * ip_v. So, to get ip_hl, we mask off the bottom four bits.