aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorrobak <robak@FreeBSD.org>2014-10-04 18:19:15 +0800
committerrobak <robak@FreeBSD.org>2014-10-04 18:19:15 +0800
commit560283138a23a26fd3921511f60882770ee2a3d5 (patch)
treeff8d2a0c8c214db36d27a09478bf9ce7d2de7483 /net
parent268f316df06b77a170eb3a003b605cc32b3a4f9d (diff)
downloadfreebsd-ports-gnome-560283138a23a26fd3921511f60882770ee2a3d5.tar.gz
freebsd-ports-gnome-560283138a23a26fd3921511f60882770ee2a3d5.tar.zst
freebsd-ports-gnome-560283138a23a26fd3921511f60882770ee2a3d5.zip
net/freevrrpd: adapting raw_socket changes
- Maintainer's timeout PR: 193243 Submitted by: Olivier Cochard <olivier@cochard.me> Approved by: mentors (implicit)
Diffstat (limited to 'net')
-rw-r--r--net/freevrrpd/Makefile1
-rw-r--r--net/freevrrpd/files/patch-vrrp_network.c12
2 files changed, 13 insertions, 0 deletions
diff --git a/net/freevrrpd/Makefile b/net/freevrrpd/Makefile
index fd4e7f1e6ee3..9c956f2ff3f3 100644
--- a/net/freevrrpd/Makefile
+++ b/net/freevrrpd/Makefile
@@ -3,6 +3,7 @@
PORTNAME= freevrrpd
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://opensource.kewego.com/freevrrpd/
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:DEFAULT,freebsd
diff --git a/net/freevrrpd/files/patch-vrrp_network.c b/net/freevrrpd/files/patch-vrrp_network.c
new file mode 100644
index 000000000000..f33cc2f34b79
--- /dev/null
+++ b/net/freevrrpd/files/patch-vrrp_network.c
@@ -0,0 +1,12 @@
+# $FreeBSD$
+--- vrrp_network.c.orig 2014-05-04 01:27:14.212855362 +0200
++++ vrrp_network.c 2014-05-04 01:27:50.289959806 +0200
+@@ -113,7 +113,7 @@
+ iph->ip_hl = 5;
+ iph->ip_v = 4;
+ iph->ip_tos = 0;
+-#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if (defined(__FreeBSD__) && (__FreeBSD_version < 1100030)) || defined(__NetBSD__)
+ iph->ip_len = sizeof(struct ip) + vrrp_network_vrrphdr_len(vr) + vrrp_ah_ahhdr_len(vr);
+ #else
+ iph->ip_len = htons(sizeof(struct ip) + vrrp_network_vrrphdr_len(vr) + vrrp_ah_ahhdr_len(vr));