]> git.gsnw.org Git - fping.git/commitdiff
NetBSD/alpha is not affected by the "broken alpha headers" bug.
authorThomas Klausner <tk@giga.or.at>
Fri, 13 May 2022 04:49:52 +0000 (06:49 +0200)
committerDavid Schweikert <david@schweikert.ch>
Fri, 13 May 2022 05:47:22 +0000 (07:47 +0200)
src/fping.c

index af16061fa2f48f3f96211d4e7dedc20955dae383..4f661742b52a45324f0234cdbb4f44dc3295d1bf 100644 (file)
@@ -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.