svn commit: r451626 - in head/net/u6rd: . files
Hajimu UMEMOTO
ume at FreeBSD.org
Mon Oct 9 17:25:03 UTC 2017
Author: ume
Date: Mon Oct 9 17:25:02 2017
New Revision: 451626
URL: https://svnweb.freebsd.org/changeset/ports/451626
Log:
follow raw socket behaviour change on 11 and later.
Submitted by: guido
Added:
head/net/u6rd/files/patch-main.c (contents, props changed)
Modified:
head/net/u6rd/Makefile
Modified: head/net/u6rd/Makefile
==============================================================================
--- head/net/u6rd/Makefile Mon Oct 9 17:20:00 2017 (r451625)
+++ head/net/u6rd/Makefile Mon Oct 9 17:25:02 2017 (r451626)
@@ -2,7 +2,7 @@
PORTNAME= u6rd
PORTVERSION= 1.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= http://ftp.scythe.jp/pub/u6rd/release/
Added: head/net/u6rd/files/patch-main.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/u6rd/files/patch-main.c Mon Oct 9 17:25:02 2017 (r451626)
@@ -0,0 +1,12 @@
+--- main.c.orig 2013-06-19 11:23:58 UTC
++++ main.c
+@@ -608,7 +608,8 @@ tun2raw(struct connection *c)
+ ip4 = (struct ipv4_header *)(buf - sizeof(*ip4));
+ ip4->ver_hlen = 4 << 4 | sizeof(*ip4) >> 2;
+ ip4->tos = ntohl(ip6->ver_class_label) >> 20 & 0xff;
+-#if defined(__OpenBSD__) || defined(__linux__)
++#if defined(__OpenBSD__) || defined(__linux__) || \
++ (defined(__FreeBSD__) && __FreeBSD_version >= 1100030)
+ ip4->len = htons(len + sizeof(*ip4));
+ #else
+ ip4->len = len + sizeof(*ip4);
More information about the svn-ports-head
mailing list