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:
parent
bf1c914d7a
commit
e6156f805a
27
net/oproute/Makefile
Normal file
27
net/oproute/Makefile
Normal 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
3
net/oproute/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (oproute-0.7.tgz) = 57b45cd6218371e601501ed4d647bff7
|
||||
RMD160 (oproute-0.7.tgz) = db78597132debf7f79757a00b17ac9d8f86ac14d
|
||||
SHA1 (oproute-0.7.tgz) = c69985f46a4258e5225d8bf8abdab815bf69a24a
|
12
net/oproute/patches/patch-Makefile
Normal file
12
net/oproute/patches/patch-Makefile
Normal 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
|
||||
|
29
net/oproute/patches/patch-oproute_cpp
Normal file
29
net/oproute/patches/patch-oproute_cpp
Normal 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;
|
||||
}
|
13
net/oproute/patches/patch-oproute_h
Normal file
13
net/oproute/patches/patch-oproute_h
Normal 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
14
net/oproute/pkg/DESCR
Normal 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
4
net/oproute/pkg/PLIST
Normal 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
|
Loading…
Reference in New Issue
Block a user