wireshark.org protocol dissector with Osmocom additions
Go to file
Guy Harris 4b9ab6d1fc Get rid of some cruft left in by previous checkins as placeholders.
Get rid of WTAP_ENCAP_NONE; replace it with WTAP_ENCAP_UNKNOWN, which
means "I can't handle that file, it's using an encapsulation I don't
support".

Check for encapsulations we don't support, and return an error (as is
already done in "libpcap.c").

Check for too-large packet sizes, and return an error (as is already
done in "libpcap.c").

Print unsigned quantities in Wiretap messages with "%u", not "%d".

svn path=/trunk/; revision=544
1999-08-22 02:29:40 +00:00
doc Modified autoconf/automake files for doc subdirectory so that all of 1999-08-11 16:05:19 +00:00
image * Added column formatting functionality. 1998-11-17 04:29:13 +00:00
wiretap Get rid of some cruft left in by previous checkins as placeholders. 1999-08-22 02:29:40 +00:00
AUTHORS Fix the e-mail address for Jeff Foster. 1999-08-20 21:57:29 +00:00
COPYING * Copied in the correct GNU license (I'm such a goober) 1998-10-16 01:18:35 +00:00
ChangeLog Initial revision 1998-09-16 02:39:15 +00:00
INSTALL Added the ability to create a read-only ethereal, i.e., one that 1999-07-09 04:18:36 +00:00
INSTALL.configure * Installation documentation updates 1998-12-29 03:12:07 +00:00
Makefile.am Add support for reading Full Frontal ATM from an ATM Sniffer capture 1999-08-20 06:55:20 +00:00
Makefile.nmake Changes to compile in win32. 1999-08-18 22:49:48 +00:00
NEWS Added Brad's <brad@openbsd.org> patch to fix compilation from 1999-08-13 23:52:49 +00:00
README Made handling of byte strings in scanner and parser much simpler, 1999-08-20 06:01:07 +00:00
README.tru64 Miscellaneous updates of README and README.tru64 created. 1999-04-30 21:16:31 +00:00
README.win32 Finally got the win32 ethereal to link properly with MSVC. 1999-07-21 17:40:42 +00:00
acconfig.h Added the ability to create a read-only ethereal, i.e., one that 1999-07-09 04:18:36 +00:00
acinclude.m4 Added support for compiling on win32 with Visual C and 'nmake'. It compiles, 1999-07-13 02:53:26 +00:00
alignment.h Get rid of the "P*" macros, as we're not using them (Ethereal only reads 1999-05-10 20:17:36 +00:00
autogen.sh Modified autoconf/automake files for doc subdirectory so that all of 1999-08-11 16:05:19 +00:00
capture.c Get rid of some cruft left in by previous checkins as placeholders. 1999-08-22 02:29:40 +00:00
capture.h Re-arranged Ethereal's definitions of DLT_RAW et al. since capture.c 1999-08-18 16:28:22 +00:00
column.c Fix up the comment before "get_column_width()" to reflect current 1999-07-28 03:47:03 +00:00
column.h Have: 1999-07-28 03:29:02 +00:00
config.guess * Scripts needed for configure.in 1998-09-20 00:25:16 +00:00
config.h.win32 Added support for compiling on win32 with Visual C and 'nmake'. It compiles, 1999-07-13 02:53:26 +00:00
configure.in Fixed packaging problem (the list of deliverables in the doc/ directory). 1999-08-11 16:42:51 +00:00
dfilter-grammar.y Changed some symbols inside parser, fixed default error message in 1999-08-20 21:19:28 +00:00
dfilter-int.h Moved global memory alloction used in display filters (which was stored 1999-08-13 23:47:43 +00:00
dfilter-scanner.l Changed some symbols inside parser, fixed default error message in 1999-08-20 21:19:28 +00:00
dfilter.c Changed some symbols inside parser, fixed default error message in 1999-08-20 21:19:28 +00:00
dfilter.h Enabled error reporting for bad ETHER values in display filters. A new 1999-08-20 20:37:47 +00:00
display.c Added support for compiling on win32 with Visual C and 'nmake'. It compiles, 1999-07-13 02:53:26 +00:00
display.h Added "Capture" and "Display" menus; "Capture" has a "Start" item, which 1999-06-19 01:14:51 +00:00
ethereal.c DLT_NULL, from "libpcap", means different things on different platforms 1999-08-22 00:47:56 +00:00
ethereal.h DLT_NULL, from "libpcap", means different things on different platforms 1999-08-22 00:47:56 +00:00
ethereal.spec Fixed packaging problem (the list of deliverables in the doc/ directory). 1999-08-11 16:42:51 +00:00
ethertype.c Created a new protocol tree implementation and a new display filter 1999-07-07 22:52:57 +00:00
etypes.h Add a comment. 1999-08-22 01:35:34 +00:00
file.c DLT_NULL, from "libpcap", means different things on different platforms 1999-08-22 00:47:56 +00:00
file.h DLT_NULL, from "libpcap", means different things on different platforms 1999-08-22 00:47:56 +00:00
filter.c Since ethereal is now dependent on GTK+-1.2.x (because of proto_tree and 1999-07-13 03:08:06 +00:00
filter.h * Pod page update 1998-10-13 02:10:57 +00:00
follow.c Fix TCP follow stream feature: 1999-07-31 13:55:16 +00:00
follow.h Fix TCP follow stream feature: 1999-07-31 13:55:16 +00:00
gtkpacket.c Created a new protocol tree implementation and a new display filter 1999-07-07 22:52:57 +00:00
gtkpacket.h Created a new protocol tree implementation and a new display filter 1999-07-07 22:52:57 +00:00
manuf *** empty log message *** 1998-09-27 07:13:29 +00:00
menu.c Fixed match_selected to work with new display filter code. It uses 1999-08-04 03:37:45 +00:00
menu.h Since ethereal is now dependent on GTK+-1.2.x (because of proto_tree and 1999-07-13 03:08:06 +00:00
packet-aarp.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-arp.c The protocol tree field created for a protocol itself is of type 1999-07-30 05:42:25 +00:00
packet-atalk.c Declare the "packet_info" structure "pi" in "packet.h", rather than in a 1999-08-18 00:57:54 +00:00
packet-atm.c Add support for reading Full Frontal ATM from an ATM Sniffer capture 1999-08-20 06:55:20 +00:00
packet-bootp.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-cdp.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-clip.c Patches from Thierry Andry to support Classical IP captures from systems 1999-07-28 23:16:42 +00:00
packet-data.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-dns.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-dns.h Correctly handle the case of the root showing up as a name in a DNS 1999-05-27 05:35:08 +00:00
packet-eth.c DLT_NULL, from "libpcap", means different things on different platforms 1999-08-22 00:47:56 +00:00
packet-fddi.c Changed the display filter scanner from GLIB's GScanner to lex. The code 1999-08-01 04:28:20 +00:00
packet-ftp.c Declare the "packet_info" structure "pi" in "packet.h", rather than in a 1999-08-18 00:57:54 +00:00
packet-giop.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-gre.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-http.c Fix a typo in "Hypertext". 1999-07-30 00:57:15 +00:00
packet-icmpv6.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-ip.c Richard J�rgensen <ric@tbit.dk> pointed out that ICMP and IGMP checksums 1999-08-21 21:06:11 +00:00
packet-ip.h Added RSVP protocol dissector. 1999-06-11 16:45:02 +00:00
packet-ipsec.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-ipv6.c Patch from Bill Fumerola to quiet some EGCS complaints, at least on 1999-08-03 03:48:04 +00:00
packet-ipv6.h Got rid of ipv6 compiler warnings when compiling on RedHat 6.0. 1999-07-23 15:08:25 +00:00
packet-ipx.c Changed the display filter scanner from GLIB's GScanner to lex. The code 1999-08-01 04:28:20 +00:00
packet-ipx.h I've started to figure out the difference between NetBIOS over IPX for 1998-10-14 05:18:32 +00:00
packet-isakmp.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-lapb.c Add support for reading Full Frontal ATM from an ATM Sniffer capture 1999-08-20 06:55:20 +00:00
packet-llc.c Jeff Foster's changes to add support for NetBEUI/NBF (NetBIOS atop 802.2 1999-08-10 20:06:39 +00:00
packet-lpd.c Created a new protocol tree implementation and a new display filter 1999-07-07 22:52:57 +00:00
packet-nbipx.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-nbns.c Move the code to set "max_data" in "dissect_nbss()" earlier, so that 1999-08-21 17:59:36 +00:00
packet-ncp.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-ncp.h Re-wrote the NCP module in accordance with how NCP is really organized. 1999-03-20 04:38:57 +00:00
packet-netbios.c Changes to compile in win32. 1999-08-18 22:49:48 +00:00
packet-nntp.c Declare the "packet_info" structure "pi" in "packet.h", rather than in a 1999-08-18 00:57:54 +00:00
packet-null.c FreeBSD and OpenBSD both use 23 for AF_IPX (that may have been in 1999-08-22 01:48:24 +00:00
packet-osi.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-ospf.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-ospf.h Removed all references to gtk objects from packet*.[ch] files. They now 1999-03-23 03:14:46 +00:00
packet-pop.c Declare the "packet_info" structure "pi" in "packet.h", rather than in a 1999-08-18 00:57:54 +00:00
packet-ppp.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-pppoe.c Created a new protocol tree implementation and a new display filter 1999-07-07 22:52:57 +00:00
packet-pptp.c Added support for compiling on win32 with Visual C and 'nmake'. It compiles, 1999-07-13 02:53:26 +00:00
packet-radius.c Checked in Johan's Updated RADIUS dissector which uses the new proto_tree 1999-08-03 14:59:16 +00:00
packet-raw.c Created a new protocol tree implementation and a new display filter 1999-07-07 22:52:57 +00:00
packet-rip.c Fix a comment. 1999-08-04 00:33:11 +00:00
packet-rip.h The address family isn't part of the RIP header, it's part of the RIP 1998-11-20 09:24:42 +00:00
packet-rsvp.c Added Ashok's fix for RSVP and support for RSVP+. 1999-08-12 05:19:06 +00:00
packet-rsvp.h Added Ashok's fix for RSVP and support for RSVP+. 1999-08-12 05:19:06 +00:00
packet-rtsp.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-sdp.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-smb.c Declare the "packet_info" structure "pi" in "packet.h", rather than in a 1999-08-18 00:57:54 +00:00
packet-snmp.c Call "init_mib()" in "proto_register_snmp()"; not doing so causes core 1999-08-20 21:26:37 +00:00
packet-tcp.c Fix up the call to "reassemble_tcp()" to use "pi.len" and 1999-08-18 03:11:14 +00:00
packet-telnet.c Declare the "packet_info" structure "pi" in "packet.h", rather than in a 1999-08-18 00:57:54 +00:00
packet-tftp.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-tr.c Add support for reading Full Frontal ATM from an ATM Sniffer capture 1999-08-20 06:55:20 +00:00
packet-trmac.c Made the protocol (but not the fields) use the new proto_tree routine, 1999-07-29 05:47:07 +00:00
packet-udp.c Declare the "packet_info" structure "pi" in "packet.h", rather than in a 1999-08-18 00:57:54 +00:00
packet-vines.c Created a new protocol tree implementation and a new display filter 1999-07-07 22:52:57 +00:00
packet-vines.h * Added Joerg Mayer's Vines patch 1998-12-29 04:05:38 +00:00
packet-x25.c Add support for reading Full Frontal ATM from an ATM Sniffer capture 1999-08-20 06:55:20 +00:00
packet.c DLT_NULL, from "libpcap", means different things on different platforms 1999-08-22 00:47:56 +00:00
packet.h Add support for reading Full Frontal ATM from an ATM Sniffer capture 1999-08-20 06:55:20 +00:00
prefs.c Added support for compiling on win32 with Visual C and 'nmake'. It compiles, 1999-07-13 02:53:26 +00:00
prefs.h Add a "File/Print" menu item, which prints *all* the packets in the 1999-07-23 08:29:24 +00:00
print.c Printing multiple frames in PostScript is a bit tricky, I think - I 1999-07-23 21:09:25 +00:00
print.h Printing multiple frames in PostScript is a bit tricky, I think - I 1999-07-23 21:09:25 +00:00
print.ps * Added Joerg Mayer's Vines patch 1998-12-29 04:05:38 +00:00
proto.c Add support for reading Full Frontal ATM from an ATM Sniffer capture 1999-08-20 06:55:20 +00:00
proto.h Removed unneeded 'color' field from header_field_info. 1999-08-14 01:26:39 +00:00
ps.h Added ID tags to the beginning of each source file. 1998-09-16 03:22:19 +00:00
rdps.c Finally got the win32 ethereal to link properly with MSVC. 1999-07-21 17:40:42 +00:00
resolv.c Added support for compiling on win32 with Visual C and 'nmake'. It compiles, 1999-07-13 02:53:26 +00:00
resolv.h Created a new protocol tree implementation and a new display filter 1999-07-07 22:52:57 +00:00
smb.h Added support for compiling on win32 with Visual C and 'nmake'. It compiles, 1999-07-13 02:53:26 +00:00
snprintf-imp.h Squelch a number of "-Wall" errors by: 1998-10-13 07:03:37 +00:00
snprintf.c Changed two #include <>'s to #include "" 's, for stylistic reasons only. 1999-08-11 17:02:28 +00:00
snprintf.h Squelch a number of "-Wall" errors by: 1998-10-13 07:03:37 +00:00
strerror.c Add our own "strerror()", which we use on platforms that don't have it 1999-06-14 21:46:36 +00:00
strerror.h Add our own "strerror()", which we use on platforms that don't have it 1999-06-14 21:46:36 +00:00
summary.c Moved global memory alloction used in display filters (which was stored 1999-08-13 23:47:43 +00:00
summary.h Since ethereal is now dependent on GTK+-1.2.x (because of proto_tree and 1999-07-13 03:08:06 +00:00
timestamp.h Added support for compiling on win32 with Visual C and 'nmake'. It compiles, 1999-07-13 02:53:26 +00:00
util.c Small change to create_tempfile, initializing static vars. 1999-08-18 15:29:06 +00:00
util.h Make a "create_tempfile()" routine that constructs the template to be 1999-08-18 02:59:05 +00:00
xdlc.c Get rid of the comments saying "make ["decode_numeric_bitfield()"] shift 1999-08-16 05:54:32 +00:00
xdlc.h Add a "dissect_xdlc_control()" routine, to dissect the control field of 1999-08-04 04:37:46 +00:00

README

General Information
------- -----------

Ethereal is a network traffic analyzer for Unix and Unix-like operating
systems.  It uses GTK+, a graphical user interface library,
and libpcap, a packet capture and filtering library.

The official home of Ethereal is

    http://ethereal.zing.org

The latest distribution can be found in the subdirectory

    http://ethereal.zing.org/distribution

Interesting and exotic packet traces can be found at

    http://ethereal.zing.org/~gram/sample.html


Installation
------------

Ethereal is known to compile and run on the following systems:

  - Linux (2.0.x, 2.1.x, 2.2.x)
  - Solaris (2.5.1, 2.6)
  - FreeBSD (2.2.5, 2.2.6)
  - Sequent PTX v4.4.5  (Nick Williams <njw@sequent.com>)
  - Tru64 UNIX (formerly Digital UNIX) (3.2, 4.0)

It should run on other systems without too much trouble.

NOTE: the Makefile appears to depend on GNU "make"; it doesn't appear to
work with the "make" that comes with Solaris 7 nor the BSD "make".

In addition, ethereal requires "flex" - it cannot be built
with vanilla "lex" - and either "bison" or the Berkeley "yacc". Your flex
version must be 2.5.1 or greater. Check this with 'flex -V'.

You must therefore install GNU "make", "flex", and either "bison" or
Berkeley "yacc" on systems that lack them.

Full installation instructions can be found in the INSTALL file.
         
See also the appropriate README.<OS> files for OS-specific installation
instructions.

Usage
-----          

In order to capture packets from the network, you need to be running
as root, or have access to the appropriate entry under /dev if your
system is so inclined (BSD-derived systems and Solaris typically fall
into this category.  Although it might be tempting to make the
Ethereal executable setuid root, please don't - alpha code is by nature
not very robust, and liable to contain security holes.

Please consult the man page for a description of each command-line
option and interface feature.


Multiple File Types
-------------------

The wiretap library is a packet-capture library currently under
development parallel to ethereal.  In the future it is hoped that
wiretap will have more features than libpcap, but wiretap is still in
its infancy. However, wiretap is used in ethereal for its ability
to read multiple file types. You can read the following file
formats, and create display filters for them as well:

libpcap, Sniffer (uncompresed), NetXray, Sniffer Pro, snoop,
Shomiti, LANalyzer, Network Monitor, iptrace 2.0 (AIX), and
RADCOM's WAN/LAN Analyzer

Although Ethereal can read AIX iptrace files, the documentation on
AIX's iptrace packet-trace command is sparse.  The 'iptrace' command
starts a daemon which you must kill in order to stop the trace. Through
experimentation it appears that sending a HUP signal to that iptrace
daemon causes a graceful shutdown and a complete packet is written
to the trace file. If a partial packet is saved at the end, Ethereal
will complain when reading that file, but you will be able to read all
other packets.  If this occurs, please let the Ethereal developers know
at ethereal-dev@zing.org, and be sure to send us a copy of that trace
file if it's small and contains non-sensitive data.


IPv6
----
If your operating system includes IPv6 support, ethereal will attempt to
use reverse name resolution capabilities when decoding IPv6 packets. If
you want to turn off name resolution while using ethereal, start ethereal
with the "-n" option. If you would like to compile ethereal without
support for IPv6 name resolution, use the "--disable-ipv6" option with
"./configure". If you compile ethereal without IPv6 name resolution,
you will still be able to decode IPv6 packets, but you'll only see IPv6
addresses, not host names.

The "Follow TCP Stream" feature only supports TCP over IPv4. Support for TCP
over IPv6 is planned.


SNMP
----
Ethereal can do some basic decoding of SNMP packets, but it relies on an
external SNMP library to do this. You can use either the UCD or the CMU
SNMP libraries. The configure script will automatically determine which
library you have on your system and will use it. If you have an SNMP
library but _do not_ want to have ethereal use it, you can run configure
with the "--disable-snmp" option. No SNMP support will be compiled into
ethereal with this option.

How to Report a Bug
-------------------
Ethereal is still under constant development, so it is possible that you will
encounter a bug while using it. Please report bugs to ethereal-dev@zing.org.
Be sure you tell us:

	1) Operating System and version
	2) Version of GTK+ (the command 'gtk-config --version' will tell you)
	3) The command you used to invoke Ethereal

If the bug is produced by a particular trace file, please be sure to send
a trace file along with your bug description. Please don't send a trace file
greather than 1MB when compressed. If the trace file contains sensitive
information (e.g., passwords), then please do not send it.

If Ethereal died on you with a 'segmentation violation', you can help the
developers a lot if you have your debugger installed. A stack trace using
your debugger ('gdb' in this example), the ethereal binary, and the
resulting core file can be obtained by starting the debugger and using
the 'backtrace' command.

$ gdb ethereal core
(gdb) backtrace
..... prints the stack trace
(gdb) quit
$

Disclaimer
----------

There is no warranty, expressed or implied, associated with this product.
Use at your own risk.


Gerald Combs <gerald@zing.org>
Gilbert Ramirez <gram@verdict.uthscsa.edu>