$OpenBSD: patch-ospfd_ospf_packet_c,v 1.1.1.1 2003/12/11 19:00:59 david Exp $
--- ospfd/ospf_packet.c.orig	2003-09-24 08:28:30.000000000 -0500
+++ ospfd/ospf_packet.c	2003-12-03 01:14:31.000000000 -0600
@@ -1936,13 +1936,13 @@ ospf_recv_packet (int fd, struct interfa
       return NULL;
     }
 
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || (defined(__OpenBSD__) && (OpenBSD < 200311))
   ip_len = iph.ip_len;
 #else
   ip_len = ntohs (iph.ip_len);
 #endif
 
-#if !defined(GNU_LINUX)
+#if !defined(GNU_LINUX) && (OpenBSD < 200311)
   /*
    * Kernel network code touches incoming IP header parameters,
    * before protocol specific processing.
