Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
A set of tools to create web pages for tcpdump output files
<<Alpha test version for MAWI-WG internal use>>
March 8, 1999
WIDE Project MAWI WorkingGroup
Kenjiro Cho <kjc@csl.sony.co.jp>
tcpdstat:
a program to extract statistical information from
tcpdump trace files.
+29
View File
@@ -0,0 +1,29 @@
# $NetBSD: Makefile,v 1.17 2013/02/06 19:31:01 jperkin Exp $
DISTNAME= tcpd-tools-0.8
PKGNAME= tcpdstat-0.8
PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= # ftp://tracer.csl.sony.co.jp/pub/mawi/tools/
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Analyze tcpdump output
NOT_FOR_PLATFORM= Interix-*-*
CFLAGS.SunOS+= -Du_int64_t=uint64_t -Du_int32_t=uint32_t
CFLAGS.SunOS+= -Du_int16_t=uint16_t -Du_int8_t=uint8_t
LIBS.SunOS+= -lsocket -lnsl
MAKE_ENV+= SYS_LIBS=${LIBS:Q}
WRKSRC= ${WRKDIR}/${DISTNAME}/tcpdstat
INSTALLATION_DIRS= bin
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tcpdstat ${DESTDIR}${PREFIX}/bin
.include "../../net/libpcap/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
+2
View File
@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:59:22 zuntum Exp $
bin/tcpdstat
+8
View File
@@ -0,0 +1,8 @@
$NetBSD: distinfo,v 1.5 2012/03/07 18:27:30 hans Exp $
SHA1 (tcpd-tools-0.8.tar.gz) = fe2abe15bbf9062833af9bec3745c751a8aa06df
RMD160 (tcpd-tools-0.8.tar.gz) = 876842cbb37ca65d4b955718abd5ef5c14810dee
Size (tcpd-tools-0.8.tar.gz) = 468856 bytes
SHA1 (patch-Makefile) = b77ceb25ed320a221ce3a8fd3b0ccc64d35b4b25
SHA1 (patch-aa) = 1d4eb35cc8231321325e40b5bc265eaa0e78ff0f
SHA1 (patch-ip_flow.c) = a1b35b10b055e6da0a4e12b6226a1fa6b06c1154
+12
View File
@@ -0,0 +1,12 @@
$NetBSD: patch-Makefile,v 1.1 2012/03/07 18:27:30 hans Exp $
--- Makefile.orig 2000-04-16 18:26:25.000000000 +0200
+++ Makefile 2012-03-07 18:55:43.383385719 +0100
@@ -4,7 +4,6 @@ OBJS= stat.o net_read.o ip_flow.o
SYS_DEFINES?= -DINET6
-CFLAGS= -g -Wall
DEFINES= $(SYS_DEFINES)
INCLUDES= -I. $(SYS_INCLUDES)
+21
View File
@@ -0,0 +1,21 @@
$NetBSD: patch-aa,v 1.2 2012/03/07 18:27:30 hans Exp $
--- tcpdstat.h.orig 2000-06-30 04:16:39.000000000 -0700
+++ tcpdstat.h
@@ -28,7 +28,7 @@
struct pkt_cnt {
int packets;
- quad_t bytes;
+ int64_t bytes;
};
enum protos {
@@ -70,7 +70,6 @@ enum protos {
extern int read_count;
extern struct timeval start_time, end_time;
extern struct pkt_cnt tcpdstat[PROTOTYPE_MAX];
-extern int packet_length;
extern int caplen_total;
extern int caplen_max;
extern int use_ipflow;
+61
View File
@@ -0,0 +1,61 @@
$NetBSD: patch-ip_flow.c,v 1.1 2012/03/07 18:27:30 hans Exp $
--- ip_flow.c.orig 2000-06-30 13:16:26.000000000 +0200
+++ ip_flow.c 2012-03-07 19:03:35.308708989 +0100
@@ -66,14 +66,14 @@ struct flow_entry {
struct flow f_flow;
int f_packets;
- quad_t f_bytes;
+ int64_t f_bytes;
};
#define FLOW_HASHSIZE 256
static LIST_HEAD(flow_head, flow_entry) flow_hash[FLOW_HASHSIZE];
int total_packets;
-quad_t total_bytes;
+int64_t total_bytes;
static __inline int ip_hash4 __P((struct in_addr *, struct in_addr *));
#ifdef INET6
@@ -229,7 +229,7 @@ void ipflow_show(void)
*/
for (j = 0; j < NTOP; j++) {
if (big_flows[j] == NULL ||
- (quad_t)flow->f_bytes > big_flows[j]->f_bytes) {
+ (int64_t)flow->f_bytes > big_flows[j]->f_bytes) {
/* insert the entry */
for (k = NTOP-1; k > j; k--)
big_flows[k] = big_flows[k-1];
@@ -312,7 +312,7 @@ struct addr_entry {
#endif
} a_un;
int addr_packets;
- quad_t addr_bytes;
+ int64_t addr_bytes;
};
#define addr_ip a_un.ua_ip
@@ -324,18 +324,18 @@ struct addr_entry {
static LIST_HEAD(addr_head, addr_entry) addr_hash[FLOW_HASHSIZE];
static int total_addr = 0;
-static quad_t v4_total_bytes = 0;
+static int64_t v4_total_bytes = 0;
#ifdef INET6
static LIST_HEAD(addr_head6, addr_entry) addr_hash6[FLOW_HASHSIZE];
static int total_addr6 = 0;
-static quad_t v6_total_bytes = 0;
+static int64_t v6_total_bytes = 0;
#endif
static int addr_count(af, ip_addr, packets, bytes)
int af;
struct in_addr *ip_addr;
int packets;
- quad_t bytes;
+ int64_t bytes;
{
struct addr_entry *addr;
int hash;