aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2001-03-03 23:47:20 +0800
committerijliao <ijliao@FreeBSD.org>2001-03-03 23:47:20 +0800
commita0b501e7612cd3518c3acefed245b84fae17bd1c (patch)
treefa0eaf0cf828aac698023952366822bb25907bd3 /net-mgmt
parentc4f7caba6c93402d6c2ef43658f07bcad7e213c0 (diff)
downloadfreebsd-ports-gnome-a0b501e7612cd3518c3acefed245b84fae17bd1c.tar.gz
freebsd-ports-gnome-a0b501e7612cd3518c3acefed245b84fae17bd1c.tar.zst
freebsd-ports-gnome-a0b501e7612cd3518c3acefed245b84fae17bd1c.zip
add oproute
A tool for measuring general performance of the Internet
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/oproute/Makefile20
-rw-r--r--net-mgmt/oproute/distinfo1
-rw-r--r--net-mgmt/oproute/files/patch-Makefile11
-rw-r--r--net-mgmt/oproute/files/patch-oproute.cpp28
-rw-r--r--net-mgmt/oproute/files/patch-oproute.h12
-rw-r--r--net-mgmt/oproute/pkg-comment1
-rw-r--r--net-mgmt/oproute/pkg-descr18
-rw-r--r--net-mgmt/oproute/pkg-plist1
8 files changed, 92 insertions, 0 deletions
diff --git a/net-mgmt/oproute/Makefile b/net-mgmt/oproute/Makefile
new file mode 100644
index 000000000000..fb6498848c59
--- /dev/null
+++ b/net-mgmt/oproute/Makefile
@@ -0,0 +1,20 @@
+# ex:ts=8
+# New ports collection makefile for: oproute
+# Date created: Mar 3, 2001
+# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= oproute
+PORTVERSION= 0.7
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.opnix.com/pub/oproute/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ijliao@FreeBSD.org
+
+post-patch:
+ @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>
diff --git a/net-mgmt/oproute/distinfo b/net-mgmt/oproute/distinfo
new file mode 100644
index 000000000000..bea7a003aa13
--- /dev/null
+++ b/net-mgmt/oproute/distinfo
@@ -0,0 +1 @@
+MD5 (oproute-0.7.tgz) = 57b45cd6218371e601501ed4d647bff7
diff --git a/net-mgmt/oproute/files/patch-Makefile b/net-mgmt/oproute/files/patch-Makefile
new file mode 100644
index 000000000000..022c8851f031
--- /dev/null
+++ b/net-mgmt/oproute/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig Sat Mar 3 23:03:42 2001
++++ Makefile Sat Mar 3 23:03:59 2001
+@@ -1,7 +1,7 @@
+
+ CPPFLAGS = -O3
+ VERSION = 0.7
+-BIN = /usr/local/bin
++BIN = %%PREFIX%%/bin
+
+ all: oproute
+
diff --git a/net-mgmt/oproute/files/patch-oproute.cpp b/net-mgmt/oproute/files/patch-oproute.cpp
new file mode 100644
index 000000000000..324e25cc901d
--- /dev/null
+++ b/net-mgmt/oproute/files/patch-oproute.cpp
@@ -0,0 +1,28 @@
+--- oproute.cpp.orig Sat Mar 3 23:16:17 2001
++++ oproute.cpp Sat Mar 3 23:18:11 2001
+@@ -706,7 +706,7 @@
+ udp = (struct udphdr *)(recvbuf + hlen1 + 8 +hlen2);
+ if(hip->ip_p == IPPROTO_UDP)
+ {
+- pHop->nPort = ntohs(udp->dest);
++ pHop->nPort = ntohs(udp->uh_dport);
+ pHop->sRouterIP = sock_ntop_host((sockaddr *)sa_recv, sa_len);
+ pHop->state = HOP_COMPLETED;
+ pHop->fLatency = GetLatencyFromTV(tvNow, tvTimeOfLastSend);
+@@ -721,14 +721,14 @@
+ {
+ if (icmp->icmp_code == ICMP_UNREACH_PORT)
+ {
+- pHop->nPort = ntohs(udp->dest);
++ pHop->nPort = ntohs(udp->uh_dport);
+ pHop->sRouterIP = sock_ntop_host((sockaddr *)sa_recv, sa_len);
+ pHop->state = HOP_ENDOFLINE;
+ pHop->fLatency = GetLatencyFromTV(tvNow, tvTimeOfLastSend);
+ }
+ else
+ {
+- pHop->nPort = ntohs(udp->dest);
++ pHop->nPort = ntohs(udp->uh_dport);
+ pHop->sRouterIP = sock_ntop_host((sockaddr *)sa_recv, sa_len);
+ pHop->state = HOP_FAILED;
+ }
diff --git a/net-mgmt/oproute/files/patch-oproute.h b/net-mgmt/oproute/files/patch-oproute.h
new file mode 100644
index 000000000000..22407f88729b
--- /dev/null
+++ b/net-mgmt/oproute/files/patch-oproute.h
@@ -0,0 +1,12 @@
+--- oproute.h.orig Thu Mar 1 10:28:31 2001
++++ oproute.h Sat Mar 3 23:12:12 2001
+@@ -3,6 +3,9 @@
+
+ #include <vector>
+ #include <string>
++#include <sys/types.h>
++#include <sys/socket.h>
++#include <netinet/in.h>
+ #include <sys/time.h>
+ #include <map>
+
diff --git a/net-mgmt/oproute/pkg-comment b/net-mgmt/oproute/pkg-comment
new file mode 100644
index 000000000000..2a9eb3887e15
--- /dev/null
+++ b/net-mgmt/oproute/pkg-comment
@@ -0,0 +1 @@
+A tool for measuring general performance of the Internet
diff --git a/net-mgmt/oproute/pkg-descr b/net-mgmt/oproute/pkg-descr
new file mode 100644
index 000000000000..3a45998f2ba9
--- /dev/null
+++ b/net-mgmt/oproute/pkg-descr
@@ -0,0 +1,18 @@
+Everyone knows that no one can agree on a system of metrics for
+measuring general performance of the Internet. It's one of these
+horrible religious issues that no matter how hard we try, we just
+can't reach a happy middle ground.
+
+The purpose of OpRoute is to attempt to establish a *generalized*
+measurement system which takes into account all of the factors that
+are usually considered to be important when it comes to performance.
+Specifically:
+
+ - Packet Loss
+ - Latency
+ - Layer 3 Hops
+ - AS Hops
+ - NAP Hops
+ - Throughput
+
+WWW: http://www.oproute.net/
diff --git a/net-mgmt/oproute/pkg-plist b/net-mgmt/oproute/pkg-plist
new file mode 100644
index 000000000000..686bd9793546
--- /dev/null
+++ b/net-mgmt/oproute/pkg-plist
@@ -0,0 +1 @@
+bin/oproute