Commit Graph

8374 Commits

Author SHA1 Message Date
Guy Harris cdd8b24d5c Fix a typo.
svn path=/trunk/; revision=8267
2003-08-26 05:56:43 +00:00
Guy Harris f7e3062867 From Jesper Peterson:
Extract the FCS decoding section of the PPP_HDLC dissector to
	allow the CHDLC dissector to use the same routine.

	The ppp_options used for preferences has been renamed to
	fcs_options and exported via packet-ppp.h so CHDLC gets a
	separate (but identical) FCS preference.

	This means prefs.h has to be included before packet-ppp.h so a
	couple of ppp related files (packet-{gtp,null,raw,vj}.c) had
	their includes slightly re-arranged.

From me: make the PPP/CHDLC FCS code use "crc32()" to check the 32-bit
FCS.

svn path=/trunk/; revision=8266
2003-08-26 05:52:53 +00:00
Guy Harris 42fdef2ff4 Extract the CRC-32 code from the 802.11 dissector into a separate file,
and use it in the Ethernet dissector as well, to check the FCS in
Ethernet frames, if present.

svn path=/trunk/; revision=8265
2003-08-26 05:09:56 +00:00
Guy Harris be83b4d487 Handle snapshot lengths that cut off *part* of the FCS.
svn path=/trunk/; revision=8264
2003-08-26 04:34:26 +00:00
Guy Harris f91af72c55 All endpoint talkers table taps use "address_to_str()" as the routine to
use to translate addresses to strings - wire that into
"endpoint_talkers_table.c", don't pass the function as an argument to
"init_ett_table()".

svn path=/trunk/; revision=8263
2003-08-26 01:46:23 +00:00
Guy Harris dcf024f759 Use "address_to_str_buf()" to generate column data for non-resolved
addresses.

svn path=/trunk/; revision=8262
2003-08-26 01:30:48 +00:00
Guy Harris 14854b769e Include "osi-utils.h" to define "print_nsap_net_buf()".
svn path=/trunk/; revision=8261
2003-08-26 01:28:28 +00:00
Guy Harris d9c401c74c Create an "address_to_str_buf()" routine, called by "address_to_str()",
which fills in a caller-supplied buffer.

Create "_buf()" versions of various "to_str" routines for various
address types, and create a routine to map SNA FIDs to strings, and use
them to finish up "address_to_str_buf()".

Get rid of the declaration of "sna_fid_type_4_addr_to_str()" in
"packet-sna.h", as that routine has been swallowed up in
"sna_fid_to_str()".

svn path=/trunk/; revision=8260
2003-08-26 01:00:30 +00:00
Guy Harris 9bcebc00c0 From Greg Morris: added support for defragmentation of NDS packets.
svn path=/trunk/; revision=8259
2003-08-25 22:16:57 +00:00
Guy Harris aabecd0a04 From Greg Morris:
1. Added support for defragmentation of NDS packets

	2. The packet signature fixes seemed to never been applied.  I
	   have been using this code to dissect reply packets with packet
	   signatures for quite some time and have never experienced any
	   problems with it.  Without these changes then reply packets
	   containing signatures will not be decoded properly.  It was
	   recommended by Guy to not use public variables to track the
	   signatures but it has been my experience that if signatures are
	   enabled then it is enabled in the whole environment and would be
	   valid for all NCP packets within the trace.  I could change this
	   but it would add additional code to build a memory table to
	   track this.  If for some reason it is determined to not add this
	   part of the code then I will have to go back and add this table.

svn path=/trunk/; revision=8258
2003-08-25 22:14:07 +00:00
Guy Harris 4901c45334 From Greg Morris:
1. Added support for defragmentation of NDS packets

	2. Moved the run_info_string logic outside of the
	   pinfo->fd->flags->visited because of the dissection of info
	   strings is not processed on subsequent decodes then the
	   find/string/info will not locate info string values.  By moving
	   this outside then when the find logic runs a tvb_dissect_new
	   then the info string gets processed again and all data is
	   visible.  Otherwise only info column data that is processed by
	   the NCP dissector is visible not any data from ncp2222.py
	   processed by the info string function.

svn path=/trunk/; revision=8257
2003-08-25 22:12:04 +00:00
Guy Harris aae16c9178 From Greg Morris:
1. Added Secret Store Services group
	2. Added a number of NCP return values
	3. Added support for NDS defragmentation
	4. Fixed type from file to bindery on ncp's 23/20, 23/21, 23/22, 23/24,
	   23/27, 23/28, 23/29, 23/30, and 23/31
	5. Fixed type from comm to nmas on ncp 91
	6. Fixed ncp 92 to include 92/01, 92/02, 92/03, 92/04, 92/05, 92/06,
	   92/07, 92/08, 92/09, and 92/10
	7. Added return value for 104/02
	8. Fixed reply structures for NCP 123/60 and NCP 123/79

svn path=/trunk/; revision=8256
2003-08-25 22:06:38 +00:00
Guy Harris d5a4e68262 From Greg Morris: fix reassembly not to use global variables, and to use
the SPX EOM flag as a "last fragment" indication.

svn path=/trunk/; revision=8255
2003-08-25 21:59:18 +00:00
Guy Harris 1884bfa986 H.263 updates from Niklas Ogren.
Put him in the authors list in the Ethereal man page.

svn path=/trunk/; revision=8254
2003-08-25 21:48:44 +00:00
Guy Harris e22b6afeb7 From Matthijs Melchior:
make the "Help" menu the rightmost menu item, as is done in

		recent versions of Windows;

		Mac OS X;

		recent versions of KDE;

		recent versions of GNOME;

	rather than making it an item on the far right side.

	Make the "Protocol" display in the help mention the number of
	entries, and give it has 3 columns, starting with the one that
	was used to sort this list.

	Make the "Display Filters" display mention the number of fields
	for each protocol and at the end the total number of fields.
	Give it 4 columns, including the 'blurb'.

	List all fields with the correct protocol.

svn path=/trunk/; revision=8253
2003-08-25 21:42:33 +00:00
Guy Harris 0333b96fbf Include the header files required by new APIs in the plugin API table.
svn path=/trunk/; revision=8252
2003-08-25 21:35:36 +00:00
Ronnie Sahlberg cd016e69a9 Update to IO-Stat to put the capture filename on the titlebar
to make it easier to navigate when having multiple instances of ethereal
and io-stat open
at the same time.

Updates to all endpoint talkers and service response time windows to do this as well.

Bonus, when the user opens a new capture file when having these windows open,
the title bar will be updated to reflect the name of the new capture file.

svn path=/trunk/; revision=8251
2003-08-25 11:06:32 +00:00
Ronnie Sahlberg 764114e914 Due to popular demand:
The heuristic for RPC detection sometimes mistakenly decodes something as RPC when in reality it is payload.

Since the heuristics is based on the PDU suze as specified in the record marker
make this limit settable from the preferences.

Arbitrary limit of 256kb is choosen as default instead of the original limit of 2mb.
(face it, the largest common oncrpc pdus are those for nfs read/write anyway and these seldom go above 32kb.)

svn path=/trunk/; revision=8250
2003-08-25 10:17:38 +00:00
Guy Harris a3498321dd Use "XXX Talkers", rather than "IO-USERS Statistics" and "Type:xxx", as
the title on the Tethereal -z talkers,xxx output, along the lines of
what the Ethereal version uses as the title.

svn path=/trunk/; revision=8249
2003-08-25 00:44:20 +00:00
Guy Harris e4e0150ffa From Matthijs Melchior:
support for registering fields after all the protocol
	    registration routines are called (i.e., adding fields to the
	    named field tree as they're registered);

	fix the GTK 2.x version of the field list dialog to show the
	    correct name.

svn path=/trunk/; revision=8248
2003-08-25 00:15:02 +00:00
Guy Harris 6c1c67f702 From Matthijs Melchior: "P" in "PER" stands for "Packed", not "Packet".
svn path=/trunk/; revision=8247
2003-08-25 00:00:20 +00:00
Gerald Combs 3303295c84 Add default development package locations to README.win32. Use zlib 1.1.4
by default in config.nmake.

svn path=/trunk/; revision=8246
2003-08-24 23:25:40 +00:00
Guy Harris 7540493b20 Get rid of the wrappers around "address_to_str()".
svn path=/trunk/; revision=8245
2003-08-24 22:34:32 +00:00
Guy Harris 5d678857de Clean up the text, and boldface "-z talkers" in "These statistics
windows can also be invoked from the Ethereal command line using the -z
talkers argument" (as pod2man suggests be done).

svn path=/trunk/; revision=8244
2003-08-24 20:32:40 +00:00
Guy Harris 0558b4406d Put in some comments about possible future work on "address_to_str()".
Put in some additional "case AT_" statements to

	1) squelch compiler warnings;

	2) add AT_ARCNET (cheap and easy);

	3) add placeholders for some other address types.

svn path=/trunk/; revision=8243
2003-08-24 20:30:46 +00:00
Ronnie Sahlberg f713d7da88 Update for the tethereal talkers to amke it support IPX.
Useage is   -z talkers,ipx[,<filter>]

svn path=/trunk/; revision=8242
2003-08-24 05:44:48 +00:00
Ronnie Sahlberg 0f9440cb55 The IPX endpoint talkers implementation
svn path=/trunk/; revision=8241
2003-08-24 05:39:05 +00:00
Ronnie Sahlberg 38e52de283 Add endpoint talker support for IPX
svn path=/trunk/; revision=8240
2003-08-24 05:38:23 +00:00
Ronnie Sahlberg ffa253abd0 Minor update to IPX. Move a lot of proto_tree_add_items outside of the if(tree) where the subtree is (optionally) created.
svn path=/trunk/; revision=8239
2003-08-24 05:21:01 +00:00
Ronnie Sahlberg 48cb09e9b2 Add a tap to the IPX protocol
svn path=/trunk/; revision=8238
2003-08-24 05:17:51 +00:00
Ronnie Sahlberg a443a66277 Add support for Fibre Channel talker statistics for tethereal.
-z talkers,fc[,<filter>]  to invoke it.

svn path=/trunk/; revision=8237
2003-08-24 04:58:32 +00:00
Ronnie Sahlberg 628e8108dc Update manpage for ethereal.
Update the talkers tap for tethereal (iousers) and change the command line to invoke the tethereal version from  -z io,users,   to -z talkers, to be the same
as for ethereal.

Sorry if it breaks some scripts but io,users was a very nonintuitive name for this option.
talkers is not much better  but at least a little bit more descriptive/intuitive.   Anyone with a better name for this are welcome to provide a patch.

The tethereal version is now agnostic to wether v4 or v6 are transporting UDP/TCP

svn path=/trunk/; revision=8236
2003-08-24 03:31:54 +00:00
Ronnie Sahlberg bcfc2719b9 Update address_to_str to handle FC and ETH addresses as well.
Update the fc and eth and tr  endpoint talker list to use the new api

svn path=/trunk/; revision=8235
2003-08-24 03:00:11 +00:00
Ronnie Sahlberg 521db7b61f Add a new function address_to_str to to_str.c
Implement conersion from address to string for IPv4 and IPv6
and update the conversation tables to use the new interface.

svn path=/trunk/; revision=8234
2003-08-24 02:50:32 +00:00
Ronnie Sahlberg dd59725fc1 From Erwin Rol, updates to teh ArtNet plugin dissector
svn path=/trunk/; revision=8233
2003-08-24 01:44:00 +00:00
Guy Harris 03ff66eefb Cast the argument to "ip6_to_str()" to avoid compiler warnings.
Use "%u", not "%d", for unsigned values.

svn path=/trunk/; revision=8232
2003-08-24 01:39:55 +00:00
Guy Harris 1edf69590f Cast arguments to "g_free()" to avoid compiler warnings (those are known
to be mallocated, so it's safe to cast them).

Use "%u", not "%d", for unsigned values.

svn path=/trunk/; revision=8231
2003-08-24 01:39:04 +00:00
Guy Harris 5b70103557 Use "ip_to_str_buf()" to turn a pointer to an IP address to a string.
svn path=/trunk/; revision=8230
2003-08-24 01:37:34 +00:00
Guy Harris 7879c6848f "tvb_get_ptr()" returns a "const guint8 *"; make the pointers to which
you assign its return value pointers to "const" as well.

svn path=/trunk/; revision=8229
2003-08-24 01:36:44 +00:00
Ronnie Sahlberg 7b06f1814f From Devin H, update to NTLMSSP to better handle address lists
svn path=/trunk/; revision=8228
2003-08-24 01:29:50 +00:00
Ronnie Sahlberg 50c1df3a43 From Niklas O
Add the blurb description to the hF fields in the H.263 dissector

svn path=/trunk/; revision=8227
2003-08-24 01:25:19 +00:00
Guy Harris 29b99f4e69 FC addresses are no longer extracted into guint32s, so "fc32_to_str()"
is no longer needed.

svn path=/trunk/; revision=8226
2003-08-24 01:06:21 +00:00
Ronnie Sahlberg 7f0f29dced Write Token Ring as Token Ring and not TokenRing
svn path=/trunk/; revision=8225
2003-08-23 13:58:54 +00:00
Ronnie Sahlberg cb92d3284b Update the UDP and the TCP conversation list tool so that it can handle IPv6 as well.
Make no distinction between UDP/TCP over IPv4 and UDP/TCP over IPv6
and present them in the same list.

svn path=/trunk/; revision=8224
2003-08-23 13:56:40 +00:00
Ronnie Sahlberg 5cf0634041 Add FibreChannel to the types of protocols we can show a conversation list for
svn path=/trunk/; revision=8223
2003-08-23 13:35:06 +00:00
Ronnie Sahlberg ba74395cbe New feature. Statistics/EndpointTalkjers can now present a sortable table with a list of all seen conversations of a certain type.
Supported types are Ethernet/TokenRing/IP/UDP and TCP.
Will add FibreChannel soon.

The framework for this feature needs to be enhanced in the future so that by selecting one entry and click the right mousebutton, this will bring up a menu with  Prepare/Match options  with suboptions for AnyDirection, ForwardOnly or ReverseOnly   which updates the display filter accordingly.

Had to update some of the taps as well to change them to use a proper address structure for the address fields.
We should now be able to to these stats correctly even for ip tunneled over ip tunnelled over ip ...

svn path=/trunk/; revision=8222
2003-08-23 09:09:35 +00:00
Guy Harris fb0480ae43 Use "file_access.c", not "file_io.c", as the latter is already in use in
a not-yet-ready-for-prime-time project of mine (fast random access to
gzipped files, plus an mechanism to allow support for other forms of
compression).

svn path=/trunk/; revision=8221
2003-08-23 08:34:12 +00:00
Guy Harris 6fa81431b9 From Tomas Kukosa: export the PER dissection routines, and some
H.225/H.245 routines, to plugins on platforms where they have to go
through the function call table.

svn path=/trunk/; revision=8220
2003-08-23 08:23:24 +00:00
Guy Harris 99c609e333 From Tomas Kukosa: export the PER dissection routines, and some
H.225/H.245 routines, to plugins on platforms where they have to go
through the function call table.

svn path=/trunk/; revision=8219
2003-08-23 07:35:50 +00:00
Guy Harris e045533feb The Python 1.5.2 I have installed didn't seem to like "+=", so use "x =
x + y" instead.

svn path=/trunk/; revision=8218
2003-08-23 07:34:31 +00:00