File: README

package info (click to toggle)
tcpstat 1.5-8
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 628 kB
  • ctags: 372
  • sloc: ansic: 2,281; sh: 439; makefile: 30
file content (121 lines) | stat: -rw-r--r-- 3,580 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Tcpstat v1.5
------------

LICENSE
-------
This software can be freely distributed under the terms of the "BSD
License."  See the "LICENSE" file distributed with this software for
more information.


INTRODUCTION
------------
tcpstat reports certain network interface statistics much like vmstat(8)
does for system statistics. tcpstat gets its information by either
monitoring a specific interface, or by reading previously saved tcpdump(1)
data from a file.

Because this program has a lot more to with network info than just TCP
stuff, the "tcp" in tcpstat should really be "net", but someone already
got dibbs on the name "netstat" a long, long time ago.  Rats!  :)


TESTED PLATFORMS
----------------
 -- BSD
   * FreeBSD 3.x, 4.x, 5.0
   * NetBSD 1.5
   * OpenBSD 2.7
   * BSD/OS 3.0, 4.0
   * Mac OS X 10.1
 -- Compaq/Digital
   * Tru64 Unix 4.0 (*)
   * Tru64 Unix 5.1 (*)
 -- HP
   * HPUX 11.0
 -- IBM
   * AIX 4.3
 -- Linux
   * Debian 2.2
   * Mandrake 7.2, 8.0
   * RedHat 6.0, 6.2, 7.0, 7.2
   * Slackware 7.0, 8.0
   * SuSE 6.4, 7.0
   * TurboLinux IA64 000828 (*)
 -- Sun
   * Solaris 2.5, 2.6, 7, 8

If your OS is not listed, email me <pherman@frenchfries.net> and tell me
how it went.  I'd like to port this to as many unix platforms as possible.

(*) Thanks to Compaq's testdrive program.

INSTALLATION
------------
If you have compiled and installed any software from source before, you
should know the routine by now:

	1) Unpack the archive
	2) cd tcpstat-1.5	(or whatever the directory name is)
	3) ./configure
	4) make
	5) make install		(as root, if necessary)

tcpstat *does* require the pcap library, so you make have to set the
library and include paths with "configure" manually.
See "./configure --help"


USAGE
-----
Tcpstat needs input, be it "live" from a network interface, or from a
"tcpdump" file written at some previous time.  The command line options
determine where tcpstat gets it's info.  The man page is the best place to
see how to use it.  Some examples (from the man page):

 tcpstat -i fxp0

Displays the default statistics every 5 seconds of all traffic currently
passing through the fxp0 network interface.

 tcpstat -r file.dump

Displays the default statistics every 5 seconds from the tcpdump(1)
generated file "file.dump".

 tcpstat -f 'port (smtp or http)' -o '%S %b\n' -r file.dump 2.3

Displays every 2.3 seconds the timestamp together with smtp and http
traffic throughput of the data from "file.dump", in a format which would
be suitable for gnuplot(1).

 tcpstat -b 28800 -r file.dump 0.5

Displays what percentage of the traffic in file.dump exceeded the speed of
my modem (28800 bits per second.)


NOTES
-----
There is the option which allows the user to write to any (and/or
multiple) arbitrary file descriptor(s).  This is a very nice feature, and
lets tcpstat write separate statistics into different files or pipes, for
example.  This is in and of itself not a security risk, because the user
can do this trivially with any shell.  However, if you choose to install
the program setuid, then the user will be able to write on open file
descriptors (for example the open /dev/bpf device) that the user in some
cases may not normally have access to.

Installing the program setuid is strongly discouraged, but if it is a must
in your environment, you can disable this feature using the configure
feature:
   ./configure --disable-fdesc


AUTHOR
------
Paul Herman <pherman@frenchfries.net>
Cologne, Germany.

Please send all bug reports to this address.  Thanks for trying this out,
and I hope it helps.  It did for me.