svn commit: r369382 - in head/net/bird: . files
Alexander V. Chernikov
melifaro at FreeBSD.org
Sat Sep 27 08:45:14 UTC 2014
Author: melifaro (src committer)
Date: Sat Sep 27 08:45:13 2014
New Revision: 369382
URL: http://svnweb.freebsd.org/changeset/ports/369382
QAT: https://qat.redports.org/buildarchive/r369382/
Log:
Fix raw sockets operation for bird on -current.
PR: 193245
Submitted by: olivier
Approved by: az (implicit)
Added:
head/net/bird/files/patch-bsd-sysdep.h (contents, props changed)
Modified:
head/net/bird/Makefile
Modified: head/net/bird/Makefile
==============================================================================
--- head/net/bird/Makefile Sat Sep 27 08:42:03 2014 (r369381)
+++ head/net/bird/Makefile Sat Sep 27 08:45:13 2014 (r369382)
@@ -3,6 +3,7 @@
PORTNAME?= bird
PORTVERSION= 1.4.4
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= ftp://bird.network.cz/pub/bird/ \
http://bird.mpls.in/distfiles/bird/
Added: head/net/bird/files/patch-bsd-sysdep.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/bird/files/patch-bsd-sysdep.h Sat Sep 27 08:45:13 2014 (r369382)
@@ -0,0 +1,23 @@
+--- sysdep/bsd/sysio.h 2014-07-10 01:40:13.000000000 +0400
++++ sysdep/bsd/sysio.h 2014-09-27 12:12:09.000000000 +0400
+@@ -9,6 +9,9 @@
+ #include <net/if_dl.h>
+ #include <netinet/in_systm.h> // Workaround for some BSDs
+ #include <netinet/ip.h>
++#ifdef __FreeBSD__
++#include <sys/param.h> // FreeBSD_version definition
++#endif
+
+
+ #ifdef __NetBSD__
+@@ -175,8 +178,8 @@
+ ip->ip_src = ipa_to_in4(s->saddr);
+ ip->ip_dst = ipa_to_in4(s->daddr);
+
+-#ifdef __OpenBSD__
+- /* OpenBSD expects ip_len in network order, other BSDs expect host order */
++#if defined __OpenBSD__ || (defined __FreeBSD__ && (__FreeBSD_version >= 1100030))
++ /* OpenBSD and FreeBSD (since 11) expects ip_len in network order, other BSDs expect host order */
+ ip->ip_len = htons(ip->ip_len);
+ #endif
+ }
More information about the svn-ports-all
mailing list