aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/netperf/files
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2012-08-24 10:29:12 +0800
committersumikawa <sumikawa@FreeBSD.org>2012-08-24 10:29:12 +0800
commiteb68b1bf47d4837f3dcf34684a3b19048b65baad (patch)
tree67317b328376cdac79940129d4e948096cf6b3c8 /benchmarks/netperf/files
parentf85a654ea8e67c2b77fc72e0323b984d1e05e41c (diff)
downloadfreebsd-ports-gnome-eb68b1bf47d4837f3dcf34684a3b19048b65baad.tar.gz
freebsd-ports-gnome-eb68b1bf47d4837f3dcf34684a3b19048b65baad.tar.zst
freebsd-ports-gnome-eb68b1bf47d4837f3dcf34684a3b19048b65baad.zip
Upgrade to 2.6.0
Diffstat (limited to 'benchmarks/netperf/files')
-rw-r--r--benchmarks/netperf/files/patch-configure4
-rw-r--r--benchmarks/netperf/files/patch-dscp.c10
-rw-r--r--benchmarks/netperf/files/patch-udp669
3 files changed, 12 insertions, 71 deletions
diff --git a/benchmarks/netperf/files/patch-configure b/benchmarks/netperf/files/patch-configure
index 208d74066a04..1003cd1fca47 100644
--- a/benchmarks/netperf/files/patch-configure
+++ b/benchmarks/netperf/files/patch-configure
@@ -13,7 +13,7 @@
enable_cpuutil="kstat - auto"
NETCPU_SOURCE="kstat"
;;
-- *-*-freebsd[4-7].* | *-*-netbsd[1-9].* )
+- *-*-freebsd[4-8].* | *-*-netbsd[1-9].* )
+ *-*-freebsd[4-9].* | *-*-netbsd[1-9].* )
use_cpuutil=true
@@ -22,7 +22,7 @@
enable_rtlookup="rtmget - auto"
NETRTLKUP_SOURCE="rtmget"
;;
-- *-*-freebsd[4-7].* | *-*-darwin*)
+- *-*-freebsd[4-8].* | *-*-darwin*)
+ *-*-freebsd[4-9].* | *-*-darwin*)
use_rtlookup=true
enable_rtlookup="rtmget - auto"
diff --git a/benchmarks/netperf/files/patch-dscp.c b/benchmarks/netperf/files/patch-dscp.c
new file mode 100644
index 000000000000..3354b085e6aa
--- /dev/null
+++ b/benchmarks/netperf/files/patch-dscp.c
@@ -0,0 +1,10 @@
+--- src/dscp.c.orig 2012-04-04 08:51:29.000000000 +0900
++++ src/dscp.c 2012-08-24 11:12:14.866495927 +0900
+@@ -50,6 +50,7 @@
+ */
+
+ #if HAVE_NETINET_IN_SYSTM_H
++#include <sys/types.h>
+ #include <netinet/in_systm.h>
+ #endif
+ #if HAVE_NETINET_IP_H
diff --git a/benchmarks/netperf/files/patch-udp6 b/benchmarks/netperf/files/patch-udp6
deleted file mode 100644
index d75b20fb4de8..000000000000
--- a/benchmarks/netperf/files/patch-udp6
+++ /dev/null
@@ -1,69 +0,0 @@
-!
-! Make UDP_STREAM work on IPv6 by transmitting and extracting IPv6
-! addresses correctly. Otherwise bind(2) calls will fail, etc.
-!
-! Sponsored by: The FreeBSD Foundation
-! Sponsored by: iXsystems
-!
---- src/nettest_bsd.c.orig 2011-12-20 09:55:01.000000000 -0500
-+++ src/nettest_bsd.c 2011-12-20 10:20:06.000000000 -0500
-@@ -1072,15 +1072,9 @@
- #if defined(AF_INET6)
- case AF_INET6: {
- struct sockaddr_in6 *foo = (struct sockaddr_in6 *)sockaddr;
-- int *bar;
-- int i;
- foo->sin6_port = htons((unsigned short) port);
- foo->sin6_family = (unsigned short) family;
- memcpy(&(foo->sin6_addr),addr,sizeof(foo->sin6_addr));
-- /* how to put this into "host" order? */
-- for (i = sizeof(foo->sin6_addr)/sizeof(int), bar=addr; i > 0; i--) {
-- bar[i] = htonl(bar[i]);
-- }
- break;
- }
- #endif
-@@ -1121,17 +1115,13 @@
- }
- #ifdef AF_INET6
- case AF_INET6: {
-- int *foo;
- int i;
- struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sockaddr;
-- ret = 0;
- *port = ntohs(sin6->sin6_port);
-+ ret = 1;
-+ for (i=0; i < sizeof(struct in6_addr); i++)
-+ if (sin6->sin6_addr.s6_addr[i] != 0) ret=0;
- memcpy(addr,&(sin6->sin6_addr), sizeof(sin6->sin6_addr));
-- /* how to put this into "host" order? */
-- for (i = sizeof(sin6->sin6_addr)/sizeof(int), foo=addr; i > 0; i--) {
-- if (foo[i] != 0) ret = 1;
-- foo[i] = ntohl(foo[i]);
-- }
- break;
- }
- #endif
---- src/nettest_omni.c.orig 2011-12-20 11:23:37.000000000 -0500
-+++ src/nettest_omni.c 2011-12-20 11:49:38.000000000 -0500
-@@ -6042,9 +6042,17 @@
- /* kludgy, because I have no way at present to say how many bytes
- needed to be swapped around for the request from which this is
- pulled, and it is probably all wrong for IPv6 :( */
-- for (ret=0; ret < 4; ret++) {
-- omni_request->netserver_ip[ret] = htonl(omni_request->netserver_ip[ret]);
-- omni_request->netperf_ip[ret] = htonl(omni_request->netperf_ip[ret]);
-+ switch (nf_to_af(omni_request->ipfamily)) {
-+ case AF_INET6:
-+ /* yes indeed it is, do nothing, bz */
-+ break;
-+ case AF_INET:
-+ default:
-+ for (ret=0; ret < 4; ret++) {
-+ omni_request->netserver_ip[ret] = htonl(omni_request->netserver_ip[ret]);
-+ omni_request->netperf_ip[ret] = htonl(omni_request->netperf_ip[ret]);
-+ }
-+ break;
- }
-
- set_hostname_and_port_2(omni_request->netserver_ip,