View | Details | Raw Unified | Return to bug 193245
Collapse All | Expand All

(-)net/bird/files/patch-sysdep-bsd-sysio.h (+22 lines)
Line 0 Link Here
1
--- sysdep/bsd/sysio.h.orig	2014-09-26 09:31:32.284787124 +0200
2
+++ sysdep/bsd/sysio.h	2014-09-26 09:31:35.391786781 +0200
3
@@ -6,6 +6,8 @@
4
  *	Can be freely distributed and used under the terms of the GNU GPL.
5
  */
6
 
7
+#include <sys/param.h>
8
+
9
 #include <net/if_dl.h>
10
 #include <netinet/in_systm.h> // Workaround for some BSDs
11
 #include <netinet/ip.h>
12
@@ -175,8 +179,8 @@
13
   ip->ip_src = ipa_to_in4(s->saddr);
14
   ip->ip_dst = ipa_to_in4(s->daddr);
15
 
16
-#ifdef __OpenBSD__
17
-  /* OpenBSD expects ip_len in network order, other BSDs expect host order */
18
+#if defined __OpenBSD__ || (defined __FreeBSD__ && (__FreeBSD_version >= 1100030))
19
+  /* OpenBSD and FreeBSD (since 11) expects ip_len in network order, other BSDs expect host order */
20
   ip->ip_len = htons(ip->ip_len);
21
 #endif
22
 }

Return to bug 193245