]> git.gsnw.org Git - fping.git/commitdiff
OpenBSD is not affected by the "broken alpha headers" bug, too.
authorGerman Service Network <support@gsnw.de>
Sun, 28 May 2023 19:03:22 +0000 (21:03 +0200)
committerDavid Schweikert <david@schweikert.ch>
Sun, 27 Aug 2023 09:01:40 +0000 (11:01 +0200)
src/fping.c

index 5d23f4612f56c94ad4515d98c52ef855f4d9186e..f4dcdcdb576f309978a047c4203f332a85fa7622 100644 (file)
@@ -2090,7 +2090,7 @@ int decode_icmp_ipv4(
     if (!using_sock_dgram4) {
         struct ip *ip = (struct ip *)reply_buf;
 
-#if defined(__alpha__) && __STDC__ && !defined(__GLIBC__) && !defined(__NetBSD__)
+#if defined(__alpha__) && __STDC__ && !defined(__GLIBC__) && !defined(__NetBSD__) && !defined(__OpenBSD__)
         /* 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.