diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-03-03 15:47:20 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-03-03 15:47:20 +0000 |
commit | 13a29ed1137efd26864cc77c219d1b7e24b35b02 (patch) | |
tree | 5d6e655fe1ac6399035ab85d73f0df8510cb0372 /net-mgmt/oproute | |
parent | afce2bff10ac61e77c0fde0b3ebc811dff2e4b3e (diff) | |
download | ports-13a29ed1137efd26864cc77c219d1b7e24b35b02.tar.gz ports-13a29ed1137efd26864cc77c219d1b7e24b35b02.zip |
Notes
Diffstat (limited to 'net-mgmt/oproute')
-rw-r--r-- | net-mgmt/oproute/Makefile | 20 | ||||
-rw-r--r-- | net-mgmt/oproute/distinfo | 1 | ||||
-rw-r--r-- | net-mgmt/oproute/files/patch-Makefile | 11 | ||||
-rw-r--r-- | net-mgmt/oproute/files/patch-oproute.cpp | 28 | ||||
-rw-r--r-- | net-mgmt/oproute/files/patch-oproute.h | 12 | ||||
-rw-r--r-- | net-mgmt/oproute/pkg-comment | 1 | ||||
-rw-r--r-- | net-mgmt/oproute/pkg-descr | 18 | ||||
-rw-r--r-- | net-mgmt/oproute/pkg-plist | 1 |
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 |