openbsd-ports/net/zebra/patches/patch-ospfd_ospf_packet_c
david 5b18f907d8 fix ospfd (raw socket ip_len changed to network byte order)
from Mattias Amnefelt <mattiasa@kth.se>
bump PKGNAME
2004-01-02 06:36:32 +00:00

20 lines
722 B
Plaintext

$OpenBSD: patch-ospfd_ospf_packet_c,v 1.1 2004/01/02 06:36:32 david Exp $
--- ospfd/ospf_packet.c.orig 2002-07-06 02:36:57.000000000 -0500
+++ ospfd/ospf_packet.c 2003-12-29 19:01:39.000000000 -0600
@@ -1872,13 +1872,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.