svn commit: r470719 - in head/net/samplicator: . files
Jung-uk Kim
jkim at FreeBSD.org
Wed May 23 20:54:18 UTC 2018
Author: jkim
Date: Wed May 23 20:54:16 2018
New Revision: 470719
URL: https://svnweb.freebsd.org/changeset/ports/470719
Log:
Fix -S option under 11.0 and later.
PR: 221200
Approved by: me at falz.net (maintainer timeout)
Added:
head/net/samplicator/files/patch-rawsend.c (contents, props changed)
Modified:
head/net/samplicator/Makefile
Modified: head/net/samplicator/Makefile
==============================================================================
--- head/net/samplicator/Makefile Wed May 23 20:10:32 2018 (r470718)
+++ head/net/samplicator/Makefile Wed May 23 20:54:16 2018 (r470719)
@@ -2,6 +2,7 @@
PORTNAME= samplicator
DISTVERSION= 1.3.8rc1
+PORTREVISION= 1
CATEGORIES= net
MAINTAINER= me at falz.net
Added: head/net/samplicator/files/patch-rawsend.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net/samplicator/files/patch-rawsend.c Wed May 23 20:54:16 2018 (r470719)
@@ -0,0 +1,15 @@
+--- rawsend.c.orig 2015-04-28 22:22:02 UTC
++++ rawsend.c
+@@ -118,9 +118,9 @@ raw_send_from_to (s, msg, msglen, saddr_generic, daddr
+ /* Depending on the target platform, te ip_off and ip_len fields
+ should be in either host or network byte order. Usually
+ BSD-derivatives require host byte order, but at least OpenBSD
+- since version 2.1 uses network byte order. Linux uses network
+- byte order for all IP header fields. */
+-#if defined (__linux__) || (defined (__OpenBSD__) && (OpenBSD > 199702))
++ since version 2.1 and FreeBSD since 11.0 use network byte
++ order. Linux uses network byte order for all IP header fields. */
++#if defined (__linux__) || (defined (__OpenBSD__) && (OpenBSD > 199702)) || (defined (__FreeBSD_version) && (__FreeBSD_version > 1100030))
+ ih.ip_len = htons (length);
+ ih.ip_off = htons (0);
+ #else
More information about the svn-ports-head
mailing list