
Building Tcpview

1. Edit the Makefile.  Set TCPVIEW_DIR to the directory where you want
the tcpview support files to be located.  Set FILTER_DIR to where you
want the protocol filters to be located.  These directories will be
created and the proper files copied over when you do a "make install"
in step 2.

2. Follow the instructions in INSTALL.tcpdump.  This should build both
tcpdump and tcpview.  A seperate directory will be created for each.

3. Edit the files in TCPVIEW_DIR as necessary. 

4. Edit a copy of the tcpview resource file, which is DOC/Tcpview.  Change
the entries for Tcpview.filters, Tcpview.manuf, and Tcpview.hostnames to be the
same as step 1.

5. Put "Tcpview" in the system application resource
directory (usually /usr/lib/X11/app-defaults/ ) or set the environmental 
variable XAPPLRESDIR to your personal resource directory.

6. To decode SNMP packets, you need a copy of the SNMP MIB in MOSY format.
the file UTIL/mib.txt contains the basic MIB.  To add any site-specific mibs,
run them trhough MOSY and append them to the end of the standard MIB.  For
a copy of MOSY, download the UW-CMU SNMP package on ftp.cac.washington.edu.
Tcpdump and tcpview will search for the mib file in the following locations,
using the first one found: the environmental variable "MIBFILE", ./mib.txt,
and /usr/local/mib/mib.txt.

7. If you are running on an Ultrix system, you will have to run pfconfig
before you can capture any data.  On a Sun system, you should make
sure to install tcpdump and tcpview setuid to root.

Good luck.  If you have any major problems or suggestions, contact

Martin Hunt
martinh@cac.washington.edu



