2001-04-09 06:12:51 +00:00
|
|
|
$Id: README.win32,v 1.22 2001/04/09 06:12:51 guy Exp $
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
Running Ethereal, Tethereal, and Editcap on Win32
|
|
|
|
=================================================
|
|
|
|
You need the glib and gtk libraries for running Ethereal.
|
2000-06-08 03:12:52 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
These packages for win32 can be found at:
|
2000-06-08 03:12:52 +00:00
|
|
|
|
2000-10-08 17:16:29 +00:00
|
|
|
http://www.ethereal.com/distribution/win32
|
2000-06-08 03:12:52 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
and at the home page for the GTK+ for Win32 project:
|
2000-06-08 03:12:52 +00:00
|
|
|
|
2000-01-25 02:11:30 +00:00
|
|
|
http://www.gimp.org/~tml/gimp/win32
|
|
|
|
|
|
|
|
or
|
|
|
|
http://www.iki.fi/tml/gimp/win32/
|
|
|
|
|
|
|
|
(the mirror nearer to you may be faster).
|
|
|
|
|
2001-01-12 02:35:49 +00:00
|
|
|
Plugins (gryphon.dll and mgcp.dll) can go in:
|
|
|
|
C:\Program Files\Ethereal\plugins\<version>
|
|
|
|
C:\Ethereal\plugins\<version>
|
|
|
|
|
|
|
|
Where <version> is the version number, without brackets.
|
2001-03-05 22:53:41 +00:00
|
|
|
For example, C:\Ethereal\plugins\0.8.16
|
2001-01-12 02:35:49 +00:00
|
|
|
|
|
|
|
Yes, the location of plugins needs to be more flexible.
|
|
|
|
|
2000-09-29 06:30:31 +00:00
|
|
|
Make sure the glib and gtk DLL's are in your path - i.e., that your path
|
|
|
|
includes the directory (folder) or directories (folders) in which those
|
|
|
|
DLLs are found - when you run Ethereal. This includes gtk-*.dll,
|
|
|
|
glib-*.dll, gmodule-*.dll, gdk-*.dll, and gnu-intl.dll. As of the
|
|
|
|
20000805 GTK+/GLIB distribution, gthread-*.dll is no longer needed.
|
2000-08-04 15:40:54 +00:00
|
|
|
|
|
|
|
The Win32 Binary distribution, available from
|
2000-06-08 03:12:52 +00:00
|
|
|
|
2000-10-08 17:16:29 +00:00
|
|
|
http://www.ethereal.com/distribution/win32
|
2000-01-25 02:11:30 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
used different version of the GTK+/GLIB libraries at different points
|
|
|
|
in time:
|
2000-01-25 02:11:30 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
Ethereal Version GTK+/GLIB version
|
|
|
|
---------------- -----------------
|
2001-03-05 22:53:41 +00:00
|
|
|
0.8.16 and after 20001226
|
|
|
|
0.8.11 - 0.8.15 20000805
|
2000-08-04 15:40:54 +00:00
|
|
|
0.8.9 - 0.8.10 20000416
|
|
|
|
0.8.8 and before 19990828
|
2000-01-25 02:11:30 +00:00
|
|
|
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
Capturing Packets
|
|
|
|
-----------------
|
|
|
|
Remember, if using the the Win32 Binary distribution, available from
|
2000-04-13 09:03:32 +00:00
|
|
|
|
2000-10-08 17:16:29 +00:00
|
|
|
http://www.ethereal.com/distribution/win32
|
2000-08-04 15:40:54 +00:00
|
|
|
|
|
|
|
there are two separate packages, one with non-capturing tools, and
|
|
|
|
one with capturing tools. Install the appropriate package. The
|
2001-03-23 02:05:29 +00:00
|
|
|
capturing version requires WinPcap 2.1, the non-capturing version does not.
|
2000-02-09 19:18:42 +00:00
|
|
|
|
|
|
|
In order to capture with Win32, you need to install the NDIS
|
2000-04-13 09:03:32 +00:00
|
|
|
packet capture driver for your particular Win32 OS; drivers for Windows
|
2001-04-09 06:12:51 +00:00
|
|
|
9x, Windows NT 4.0, and Windows 2000 can be downloaded from the
|
2000-08-04 15:40:54 +00:00
|
|
|
WinPcap home page:
|
|
|
|
|
|
|
|
http://netgroup-serv.polito.it/winpcap/
|
2000-02-09 19:18:42 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
If Ethereal is not capturing packets, you can test your WinPcap
|
2001-03-23 02:05:29 +00:00
|
|
|
installation by installing WinDump (TCPdump for Windows) ported by the
|
2000-08-04 15:40:54 +00:00
|
|
|
same folks who make WinPcap. It's at:
|
2000-02-09 19:18:42 +00:00
|
|
|
|
2000-04-13 09:03:32 +00:00
|
|
|
http://netgroup-serv.polito.it/windump/
|
2000-02-09 19:18:42 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
They also make Analyzer, a GUI sniffer for Win32:
|
|
|
|
|
|
|
|
http://netgroup-serv.polito.it/analyzer/
|
|
|
|
|
|
|
|
|
|
|
|
Compiling the Ethereal distribution from source
|
|
|
|
===============================================
|
|
|
|
You'll need the development package for GLIB, GTK+, and WinPcap.
|
|
|
|
Those versions are available from the respctive home pages for
|
|
|
|
each project (the same URLs as listed above). The development
|
|
|
|
packages contain header files and stub libaries to link against.
|
|
|
|
|
2001-04-09 06:12:51 +00:00
|
|
|
The use of an SNMP library has not been made to work yet in
|
|
|
|
Ethereal/Win32, but a binary distribution of the UCD SNMP package,
|
|
|
|
including header files and a DLL of the UCD SNMP library, can be had
|
|
|
|
from:
|
2000-04-13 09:03:32 +00:00
|
|
|
|
2001-04-09 06:12:51 +00:00
|
|
|
ftp://ftp.revelstone.com/snmp/binaries/
|
2000-08-04 15:40:54 +00:00
|
|
|
|
2001-04-09 06:12:51 +00:00
|
|
|
The file will probably be called "ucd-snmp-X.X-x86-win32.zip", where
|
|
|
|
"X.X" is the version number of the UCD SNMP library.
|
1999-07-13 02:53:26 +00:00
|
|
|
|
|
|
|
Instructions for MS Visual C
|
|
|
|
----------------------------
|
2000-02-09 00:41:57 +00:00
|
|
|
Modify the config.nmake file in the top directory of the Ethereal
|
|
|
|
source tree to work for your local configuration. You should not
|
|
|
|
have to modify any other Makefile.
|
1999-07-21 17:40:42 +00:00
|
|
|
|
2001-04-06 03:52:45 +00:00
|
|
|
In order to compile, at least with the default settings, you
|
|
|
|
also need zlib, which is provided as an archive library, not
|
|
|
|
a DLL. The pre-compiled zlib which comes with the "extralibs"
|
|
|
|
package from Gimp/Win32 is faulty; a working version can be
|
|
|
|
downloaded from:
|
|
|
|
|
2001-04-09 06:12:51 +00:00
|
|
|
http://www.ethereal.com/distribution/win32/zlib-1.1.3-fixed.zip
|
2001-04-06 03:52:45 +00:00
|
|
|
|
2000-01-15 00:23:13 +00:00
|
|
|
Be sure that your command-line environment is set up to compile
|
2000-03-03 07:06:13 +00:00
|
|
|
and link with MSVC. When installing MSVC, you can have your
|
2000-01-15 00:23:13 +00:00
|
|
|
system's environment set up to always allow compiling from the
|
|
|
|
command line, or you can invoke the vcvars32.bat script.
|
1999-07-21 17:40:42 +00:00
|
|
|
|
2000-02-09 00:41:57 +00:00
|
|
|
In the ethereal directory, type "nmake -f makefile.nmake". It will
|
|
|
|
recurse into the subdirectories as appropriate.
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
Some generated source is created by traditionally "Unix-ish" tools.
|
|
|
|
If you are building from an official distribution, these files are
|
|
|
|
already generated, so you have nothing to worry about unless you
|
|
|
|
modify the source. If building from a CVS image, you'll need the tools
|
|
|
|
to generate C source. The "special" files and their requisite tools are:
|
|
|
|
|
|
|
|
Source Output Tool
|
|
|
|
------ ------ ----
|
2001-04-06 03:52:45 +00:00
|
|
|
config.h.in config.h sed
|
2000-08-04 15:40:54 +00:00
|
|
|
dfilter-scanner.l *.c Flex
|
|
|
|
wiretap/ascend-scanner.l *.c Flex
|
2001-03-23 02:05:29 +00:00
|
|
|
wiretap/ascend-grammar.y *.c,*.h Bison/Yacc
|
2000-08-04 15:40:54 +00:00
|
|
|
ncp2222.py packet-ncp2222.c Python
|
|
|
|
|
2001-04-06 03:52:45 +00:00
|
|
|
make-reg-dotc, packet*.c register.c Bash + grep + sed
|
2001-01-11 07:21:35 +00:00
|
|
|
or
|
|
|
|
make-reg-dotc.py, packet*.c register.c Python
|
|
|
|
|
|
|
|
The Makefile.nmake supplied with the Ethereal distribution will
|
|
|
|
attempt to make register.c with Python, since it is much much much
|
|
|
|
faster than the shell version. The reason it is faster is because
|
|
|
|
the shell version launches multiple processes (grep, sed) for each
|
|
|
|
source file, multiple times. The Python script is one process. This
|
|
|
|
matters a lot on Win32. If for some reason you want to build register.c
|
|
|
|
with the shell script, uncomment out the action line for the register.c
|
|
|
|
target in Makefile.nmake.
|
|
|
|
|
|
|
|
If you have a Unix system handy, you can first build on Unix
|
2000-08-04 15:40:54 +00:00
|
|
|
to create the source files that these tools make, then run the build
|
|
|
|
on Windows. That will avoid the need for these tools on your Windows
|
|
|
|
computer.
|
|
|
|
|
|
|
|
If you don't have a Unix system handy, most of those tools are available for
|
2000-04-29 08:32:50 +00:00
|
|
|
Win32 systems as part of the Cygwin package:
|
|
|
|
|
|
|
|
http://sourceware.cygnus.com/cygwin/
|
|
|
|
|
|
|
|
After installing them, you will probably have to modify the config.nmake
|
|
|
|
file to specify where the Cygwin binaries are installed.
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-08-04 15:40:54 +00:00
|
|
|
Python for Win32 is available from
|
|
|
|
|
|
|
|
http://www.python.org/
|
|
|
|
|
1999-07-13 02:53:26 +00:00
|
|
|
|
2000-04-29 08:32:50 +00:00
|
|
|
Instructions for Cygwin
|
1999-07-13 02:53:26 +00:00
|
|
|
-----------------------
|
2000-04-29 08:32:50 +00:00
|
|
|
No one has ever compiled Ethereal entirely with Cygwin. It should not
|
2000-11-06 09:49:43 +00:00
|
|
|
be difficult, however. This spot is reserved for your instructions on
|
2000-04-29 08:32:50 +00:00
|
|
|
how to compile Ethereal with Cygwin.
|