2000-01-31 01:30:17 +08:00
|
|
|
@(#) $Header: /tcpdump/master/tcpdump/Attic/INSTALL,v 1.40 2000-01-30 17:30:17 itojun Exp $ (LBL)
|
1999-10-08 07:47:09 +08:00
|
|
|
|
|
|
|
If you have not built libpcap, do so first. See the README
|
|
|
|
file in this directory for the ftp location.
|
|
|
|
|
|
|
|
You will need an ANSI C compiler to build tcpdump. The configure script
|
|
|
|
will abort if your compiler is not ANSI compliant. If this happens, use
|
|
|
|
the GNU C compiler, available via anonymous ftp:
|
|
|
|
|
|
|
|
ftp://prep.ai.mit.edu/pub/gnu/gcc.tar.gz
|
|
|
|
|
|
|
|
After libpcap has been built (either install it with "make install" and
|
|
|
|
"make install-incl" or make sure both the libpcap and tcpdump source
|
|
|
|
trees are in the same directory), edit the BINDEST and MANDEST paths in
|
|
|
|
Makefile.in and run ./configure (a shell script). "configure" will
|
|
|
|
determine your system attributes and generate an appropriate Makefile
|
|
|
|
from Makefile.in. Now build tcpdump by running "make".
|
|
|
|
|
|
|
|
If everything builds ok, su and type "make install" (and optionally
|
|
|
|
"make install-man). This will install tcpdump and the manual entry. By
|
|
|
|
default, tcpdump is installed with group execute permissions. The group
|
|
|
|
used depends on your os. In addition, BPF packet access is controlled
|
|
|
|
by permissions to /dev/bpf0. In any case, DO NOT give untrusted users
|
|
|
|
the capability of running tcpdump. Tcpdump can capture any traffic on
|
|
|
|
your net, including passwords.
|
|
|
|
|
|
|
|
Note that tcpdump is shipped with some systems, for example, DEC/OSF
|
|
|
|
and BSD/386. Remember to remove or rename the installed binary
|
|
|
|
when upgrading.
|
|
|
|
|
|
|
|
If you use Linux, this version of libpcap is known to compile and run
|
|
|
|
under Red Hat 4.0 with the 2.0.25 kernel. It may work with earlier 2.X
|
|
|
|
versions but is guaranteed not to work with 1.X kernels.
|
|
|
|
|
|
|
|
If you use OSF 4, note that that there appears to be some serious bugs
|
|
|
|
with the stock C compiler. The configure code fragments that detect if
|
|
|
|
the ether_header and ether_arp structs use the ether_addr struct
|
|
|
|
generates warnings instead of fatal errors (?!?!) This makes configure
|
|
|
|
think that the ether_arp struct is used when in fact it is not. To get
|
2000-01-25 08:47:09 +08:00
|
|
|
around this, comment out:
|
1999-10-08 07:47:09 +08:00
|
|
|
|
2000-01-25 08:47:09 +08:00
|
|
|
#define ETHER_HEADER_HAS_EA 1
|
|
|
|
and
|
|
|
|
#define ETHER_ARP_HAS_EA 1
|
1999-10-08 07:47:09 +08:00
|
|
|
|
2000-01-25 08:47:09 +08:00
|
|
|
from config.h after running configure (and before attempting to
|
|
|
|
compile tcpdump).
|
1999-10-08 07:47:09 +08:00
|
|
|
|
|
|
|
Another workaround is to use gcc.
|
|
|
|
|
|
|
|
If your system is not one which we have tested tcpdump on, you may have
|
|
|
|
to modify the configure script and Makefile.in. Please send us patches
|
2000-01-25 08:47:09 +08:00
|
|
|
for any modifications you need to make.
|
1999-10-08 07:47:09 +08:00
|
|
|
|
2000-01-15 02:05:45 +08:00
|
|
|
== Tested platforms ==
|
2000-01-31 01:30:17 +08:00
|
|
|
NetBSD 1.4.1/i386 (mcr, itojun)
|
2000-01-15 02:05:45 +08:00
|
|
|
RedHat Linux 6.1/i386 (assar)
|
2000-01-31 01:30:17 +08:00
|
|
|
FreeBSD 2.2.8/i386 (itojun)
|
2000-01-15 02:05:45 +08:00
|
|
|
|
|
|
|
|
1999-10-08 07:47:09 +08:00
|
|
|
FILES
|
|
|
|
-----
|
|
|
|
CHANGES - description of differences between releases
|
|
|
|
FILES - list of files exported as part of the distribution
|
|
|
|
INSTALL - this file
|
|
|
|
Makefile.in - compilation rules (input to the configure script)
|
|
|
|
README - description of distribution
|
2000-01-25 08:47:09 +08:00
|
|
|
README-AFS -
|
1999-10-08 07:47:09 +08:00
|
|
|
VERSION - version of this release
|
2000-01-25 08:47:09 +08:00
|
|
|
acconfig.h - autoconf input
|
1999-10-08 07:47:09 +08:00
|
|
|
aclocal.m4 - autoconf macros
|
|
|
|
addrtoname.c - address to hostname routines
|
|
|
|
addrtoname.h - address to hostname definitions
|
|
|
|
appletalk.h - AppleTalk definitions
|
|
|
|
atime.awk - TCP ack awk script
|
|
|
|
bootp.h - BOOTP definitions
|
|
|
|
bpf_dump.c - bpf instruction pretty-printer routine
|
|
|
|
config.guess - autoconf support
|
2000-01-25 08:47:09 +08:00
|
|
|
config.h.in - autoconf input
|
1999-10-08 07:47:09 +08:00
|
|
|
config.sub - autoconf support
|
|
|
|
configure - configure script (run this first)
|
|
|
|
configure.in - configure script source
|
|
|
|
decnet.h - DECnet definitions
|
2000-01-25 08:47:09 +08:00
|
|
|
dhcp6.h - IPv6 DHCP definitions
|
|
|
|
dhcp6opt.h - IPv6 DHCP options
|
1999-10-08 07:47:09 +08:00
|
|
|
ethertype.h - ethernet definitions
|
|
|
|
extract.h - alignment definitions
|
|
|
|
fddi.h - Fiber Distributed Data Interface definitions
|
|
|
|
gmt2local.c - time conversion routines
|
|
|
|
gmt2local.h - time conversion prototypes
|
|
|
|
igrp.h - Interior Gateway Routing Protocol definitions
|
|
|
|
install-sh - BSD style install script
|
|
|
|
interface.h - globals, prototypes and definitions
|
2000-01-30 01:01:36 +08:00
|
|
|
ipsec_doi.h - ISAKMP packet definitions - RFC2407
|
1999-10-08 07:47:09 +08:00
|
|
|
ipx.h - IPX definitions
|
2000-01-30 01:01:36 +08:00
|
|
|
isakmp.h - ISAKMP packet definitions - RFC2408
|
2000-01-25 08:47:09 +08:00
|
|
|
l2tp.h -
|
|
|
|
lane.h -
|
1999-10-08 07:47:09 +08:00
|
|
|
lbl/gnuc.h - gcc macros and defines
|
|
|
|
lbl/os-*.h - os dependent defines and prototypes
|
|
|
|
linux-include/* - network include files missing on Linux
|
|
|
|
llc.h - LLC definitions
|
|
|
|
machdep.c - machine dependent routines
|
|
|
|
machdep.h - machine dependent definitions
|
|
|
|
makemib - mib to header script
|
|
|
|
mib.h - mib definitions
|
2000-01-25 08:47:09 +08:00
|
|
|
missing/* - replacements for missing library functions
|
1999-10-08 07:47:09 +08:00
|
|
|
mkdep - construct Makefile dependency list
|
|
|
|
netbios.h - NETBIOS definitions
|
2000-01-25 08:47:09 +08:00
|
|
|
nfs.h - Network File System V2 definitions
|
1999-10-08 07:47:09 +08:00
|
|
|
nfsfh.h - Network File System file handle definitions
|
|
|
|
ntp.h - Network Time Protocol definitions
|
2000-01-30 01:01:36 +08:00
|
|
|
oakley.h - ISAKMP packet definitions - RFC2409
|
1999-10-08 07:47:09 +08:00
|
|
|
ospf.h - Open Shortest Path First definitions
|
2000-01-25 08:47:09 +08:00
|
|
|
ospf6.h - IPv6 Open Shortest Path First definitions
|
1999-10-08 07:47:09 +08:00
|
|
|
packetdat.awk - TCP chunk summary awk script
|
|
|
|
parsenfsfh.c - Network File System file parser routines
|
|
|
|
ppp.h - Point to Point Protocol definitions
|
2000-01-25 08:47:09 +08:00
|
|
|
print-ah.c - IPSEC Authentication Header printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-arp.c - Address Resolution Protocol printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-ascii.c - ASCII packet dump routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-atalk.c - AppleTalk printer routines
|
|
|
|
print-atm.c - atm printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-bgp.c - Border Gateway Protocol printer routines
|
|
|
|
print-bootp.c - BOOTP and IPv4 DHCP printer routines
|
|
|
|
print-chdlc.c - CHDLC printer routines
|
|
|
|
print-cip.c -
|
1999-10-08 07:47:09 +08:00
|
|
|
print-decnet.c - DECnet printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-dhcp6.c - IPv6 DHCP printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-domain.c - Domain Name System printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-dvmrp.c - Distance Vector Multicast Routing Protocol printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-egp.c - External Gateway Protocol printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-esp.c - IPSEC Encapsulating Security Payload printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-ether.c - ethernet printer routines
|
|
|
|
print-fddi.c - Fiber Distributed Data Interface printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-frag6.c - IPv6 fragmentation header printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-gre.c - Generic Routing Encapsulation printer routines
|
|
|
|
print-icmp.c - Internet Control Message Protocol printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-icmp6.c - IPv6 Internet Control Message Protocol printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-igrp.c - Interior Gateway Routing Protocol printer routines
|
|
|
|
print-ip.c - ip printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-ip6.c - IPv6 printer routines
|
|
|
|
print-ip6opts.c - IPv6 header option printer routines
|
|
|
|
print-ipcomp.c - IP Payload Compression Protocol printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-ipx.c - IPX printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-isakmp.c - Internet Security Association and Key Management Protocol
|
1999-10-08 07:47:09 +08:00
|
|
|
print-isoclns.c - isoclns printer routines
|
|
|
|
print-krb.c - Kerberos printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-l2tp.c - Layer Two Tunneling Protocol printer routines
|
|
|
|
print-lane.c -
|
|
|
|
print-lcp.c -
|
1999-10-08 07:47:09 +08:00
|
|
|
print-llc.c - llc printer routines
|
2000-01-30 01:01:36 +08:00
|
|
|
print-mobile.c - IPv4 mobility printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-netbios.c - netbios printer routines
|
|
|
|
print-nfs.c - Network File System printer routines
|
|
|
|
print-ntp.c - Network Time Protocol printer routines
|
|
|
|
print-null.c - null printer routines
|
|
|
|
print-ospf.c - Open Shortest Path First printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-ospf6.c - IPv6 Open Shortest Path First printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-pim.c - Protocol Independent Multicast printer routines
|
|
|
|
print-ppp.c - Point to Point Protocol printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-pppoe.c -
|
1999-10-08 07:47:09 +08:00
|
|
|
print-raw.c - raw printer routines
|
|
|
|
print-rip.c - Routing Information Protocol printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-ripng.c - IPv6 Routing Information Protocol printer routines
|
2000-01-30 01:01:36 +08:00
|
|
|
print-rt6.c - IPv6 routing header printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-rx.c - AFS RX printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-sl.c - Compressed Serial Line Internet Protocol printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-smb.c - SMB (samba) printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-snmp.c - Simple Network Management Protocol printer routines
|
|
|
|
print-sunrpc.c - Sun Remote Procedure Call printer routines
|
|
|
|
print-tcp.c - TCP printer routines
|
2000-01-25 08:47:09 +08:00
|
|
|
print-telnet.c - Telnet option printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-tftp.c - Trivial File Transfer Protocol printer routines
|
|
|
|
print-udp.c - UDP printer routines
|
2000-01-30 01:01:36 +08:00
|
|
|
print-vjc.c - PPP Van Jacovson compression (RFC1144) printer routines
|
1999-10-08 07:47:09 +08:00
|
|
|
print-wb.c - white board printer routines
|
2000-01-30 01:01:36 +08:00
|
|
|
route6d.h - packet definition for IPv6 Routing Information Protocol
|
2000-01-25 08:47:09 +08:00
|
|
|
rx.h -
|
|
|
|
savestr.c - strdup() replacement
|
|
|
|
savestr.h - savestr prototypes
|
1999-10-08 07:47:09 +08:00
|
|
|
send-ack.awk - unidirectional tcp send/ack awk script
|
|
|
|
setsignal.c - os independent signal routines
|
|
|
|
setsignal.h - os independent signal prototypes
|
2000-01-25 08:47:09 +08:00
|
|
|
smb.h -
|
|
|
|
smbutil.c -
|
1999-10-08 07:47:09 +08:00
|
|
|
stime.awk - TCP send awk script
|
|
|
|
strcasecmp.c - missing routine
|
|
|
|
tcpdump.1 - manual entry
|
|
|
|
tcpdump.c - main program
|
|
|
|
util.c - utility routines
|
|
|
|
vfprintf.c - emulation routine
|