From e6156f805a94a72dbabd96751871f0c232c1d3ed Mon Sep 17 00:00:00 2001 From: pvalchev Date: Tue, 3 Jul 2001 02:40:21 +0000 Subject: [PATCH] Import of oproute-0.7 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 (To be done, not in there yet) MAINTAINER= Jason Peel --- net/oproute/Makefile | 27 +++++++++++++++++++++++++ net/oproute/files/md5 | 3 +++ net/oproute/patches/patch-Makefile | 12 +++++++++++ net/oproute/patches/patch-oproute_cpp | 29 +++++++++++++++++++++++++++ net/oproute/patches/patch-oproute_h | 13 ++++++++++++ net/oproute/pkg/DESCR | 14 +++++++++++++ net/oproute/pkg/PLIST | 4 ++++ 7 files changed, 102 insertions(+) create mode 100644 net/oproute/Makefile create mode 100644 net/oproute/files/md5 create mode 100644 net/oproute/patches/patch-Makefile create mode 100644 net/oproute/patches/patch-oproute_cpp create mode 100644 net/oproute/patches/patch-oproute_h create mode 100644 net/oproute/pkg/DESCR create mode 100644 net/oproute/pkg/PLIST diff --git a/net/oproute/Makefile b/net/oproute/Makefile new file mode 100644 index 00000000000..d033b7c6f29 --- /dev/null +++ b/net/oproute/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2001/07/03 02:40:21 pvalchev Exp $ + +COMMENT= "network performance measuring tool" + +DISTNAME= oproute-0.7 +CATEGORIES= net +NEED_VERSION= 1.417 +EXTRACT_SUFX= .tgz + +HOMEPAGE= http://www.oproute.net/ + +MAINTAINER= Jason Peel + +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= ftp://ftp.opnix.com/pub/oproute/ \ + http://www.wiretapped.net/security/network-monitoring/oproute/ + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/oproute + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/oproute + @strip ${PREFIX}/bin/oproute + +.include diff --git a/net/oproute/files/md5 b/net/oproute/files/md5 new file mode 100644 index 00000000000..d0d5ef1486d --- /dev/null +++ b/net/oproute/files/md5 @@ -0,0 +1,3 @@ +MD5 (oproute-0.7.tgz) = 57b45cd6218371e601501ed4d647bff7 +RMD160 (oproute-0.7.tgz) = db78597132debf7f79757a00b17ac9d8f86ac14d +SHA1 (oproute-0.7.tgz) = c69985f46a4258e5225d8bf8abdab815bf69a24a diff --git a/net/oproute/patches/patch-Makefile b/net/oproute/patches/patch-Makefile new file mode 100644 index 00000000000..203fea3fd18 --- /dev/null +++ b/net/oproute/patches/patch-Makefile @@ -0,0 +1,12 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2001/07/03 02:40:21 pvalchev Exp $ +--- Makefile.orig Sun Jun 24 15:31:49 2001 ++++ Makefile Sun Jun 24 15:32:49 2001 +@@ -1,7 +1,7 @@ + + CPPFLAGS = -O3 + VERSION = 0.7 +-BIN = /usr/local/bin ++BIN = ${PREFIX}/bin + + all: oproute + diff --git a/net/oproute/patches/patch-oproute_cpp b/net/oproute/patches/patch-oproute_cpp new file mode 100644 index 00000000000..cc16cef8c50 --- /dev/null +++ b/net/oproute/patches/patch-oproute_cpp @@ -0,0 +1,29 @@ +$OpenBSD: patch-oproute_cpp,v 1.1.1.1 2001/07/03 02:40:21 pvalchev Exp $ +--- oproute.cpp.orig Sun Jun 24 15:41:04 2001 ++++ oproute.cpp Sun Jun 24 15:41:40 2001 +@@ -706,7 +706,7 @@ void OpRoute::CatchICMP(Hop *pHop) + 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 @@ void OpRoute::CatchICMP(Hop *pHop) + { + 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/oproute/patches/patch-oproute_h b/net/oproute/patches/patch-oproute_h new file mode 100644 index 00000000000..74b0575bfe5 --- /dev/null +++ b/net/oproute/patches/patch-oproute_h @@ -0,0 +1,13 @@ +$OpenBSD: patch-oproute_h,v 1.1.1.1 2001/07/03 02:40:21 pvalchev Exp $ +--- oproute.h.orig Sun Jun 24 15:43:30 2001 ++++ oproute.h Sun Jun 24 15:44:09 2001 +@@ -3,6 +3,9 @@ + + #include + #include ++#include ++#include ++#include + #include + #include + diff --git a/net/oproute/pkg/DESCR b/net/oproute/pkg/DESCR new file mode 100644 index 00000000000..eeb842ae615 --- /dev/null +++ b/net/oproute/pkg/DESCR @@ -0,0 +1,14 @@ +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 (To be done, not in there yet) + +WWW: ${HOMEPAGE} diff --git a/net/oproute/pkg/PLIST b/net/oproute/pkg/PLIST new file mode 100644 index 00000000000..8e265e5b321 --- /dev/null +++ b/net/oproute/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2001/07/03 02:40:21 pvalchev Exp $ +bin/oproute +share/doc/oproute/README +@dirrm share/doc/oproute