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 <jsyn@nthought.com>
This commit is contained in:
pvalchev 2001-07-03 02:40:21 +00:00
parent bf1c914d7a
commit e6156f805a
7 changed files with 102 additions and 0 deletions

27
net/oproute/Makefile Normal file
View File

@ -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 <jsyn@nthought.com>
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 <bsd.port.mk>

3
net/oproute/files/md5 Normal file
View File

@ -0,0 +1,3 @@
MD5 (oproute-0.7.tgz) = 57b45cd6218371e601501ed4d647bff7
RMD160 (oproute-0.7.tgz) = db78597132debf7f79757a00b17ac9d8f86ac14d
SHA1 (oproute-0.7.tgz) = c69985f46a4258e5225d8bf8abdab815bf69a24a

View File

@ -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

View File

@ -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;
}

View File

@ -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 <vector>
#include <string>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
#include <sys/time.h>
#include <map>

14
net/oproute/pkg/DESCR Normal file
View File

@ -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}

4
net/oproute/pkg/PLIST Normal file
View File

@ -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