Commit Graph

4641 Commits

Author SHA1 Message Date
Guy Harris 8c464ca6cc Fix a typo.
svn path=/trunk/; revision=4487
2002-01-05 21:49:36 +00:00
Guy Harris 8289dd46d2 From Ronnie Sahlberg: use size from encapsulation instead of how many
bytes were dissected since there can be padding bytes after the ndmp pdu
and to the end of what size said it would be, and some other cleanups.

svn path=/trunk/; revision=4486
2002-01-05 20:08:47 +00:00
Guy Harris ba74898e8c Additional sanity checks, from Ronnie Sahlberg.
svn path=/trunk/; revision=4485
2002-01-05 20:05:53 +00:00
Gilbert Ramirez 0b9b02c6ea Long NCP traces can easily have many packets whose "uniqueness"
variables wrap-around. Since the request/reply packets are related via
a hash based on these uniqueness variables, long NCP traces can
have mis-matches reqeust/reply records.

Thus, only do the hash-lookup for the reply packet during the first
sequential scan of the trace file. Once the pertinent info is found,
store it in the packet's private data area.

Since the memory allocated for the hash and for the structures that make
up the keys are no longer needed after the first sequential run through
the trace file, arrange to free that memory after the first sequential
run. Similar to the register_init_routine() that allows dissectors
to register callbacks for calling *before* a capture file is loaded,
set up a register_postseq_cleanup_routine() function that allows
dissectors to register callbacks for calling *after* the first
sequential run-through of the trace file is made. This is not
a *final* cleanup callback, since Ethereal will still have that trace file
open for random-access reading.

I didn't have tethereal call postseq_cleanup_all_protocols() since
tethereal doesn't keep the trace file open for random-access reading.
I could easily be swayed to make tethereal call that function, however.

svn path=/trunk/; revision=4484
2002-01-05 04:12:17 +00:00
Guy Harris 3ed03cadf6 Further updates from Ronnie Sahlberg.
svn path=/trunk/; revision=4483
2002-01-04 23:53:40 +00:00
Guy Harris e0593df4a7 If the "parent directory" of what would be the personal configuration
file directory is just a drive letter (e.g., if the directory is
"c:\Ethereal"), don't "stat()" it to see if it exists (as that'll fail,
falsely leading us to believe it needs to be created; the attempt to do
so will fail), just assume it exists.

svn path=/trunk/; revision=4482
2002-01-04 21:50:26 +00:00
Guy Harris cb489a92bb From Hamish Moffatt:
Additional Windows Makefile dependencies, so more stuff gets
	built as needed.

	Additional stuff cleaned up by "make clean" (well, "nmake -f
	makefile.nmake clean", anyway)

	Make PDB_FILE be "vc*.pdb", so it referes to the PDB files
	either for VC++ 5.0 or VC++ 6.0.

svn path=/trunk/; revision=4481
2002-01-04 21:20:20 +00:00
Guy Harris 8ee4e324f5 WTP reassembly, from Tom Uijldert.
svn path=/trunk/; revision=4480
2002-01-04 20:20:08 +00:00
Guy Harris 5b288fc0da Most of NDMP, from Ronnie Sahlberg.
svn path=/trunk/; revision=4479
2002-01-04 19:55:03 +00:00
Guy Harris a94eccb20c Fix up white space.
svn path=/trunk/; revision=4478
2002-01-04 08:57:09 +00:00
Guy Harris 7494218b47 "proto_tree_is_visible" no longer exists as a global variable, so remove
its declaration.

svn path=/trunk/; revision=4477
2002-01-04 08:56:11 +00:00
Guy Harris abbebafa78 TCP desegmentation support in SSL, from Scott Renfro.
svn path=/trunk/; revision=4476
2002-01-04 07:01:54 +00:00
Guy Harris 5027073407 From Hamish Moffatt:
Add some missing files in the "clean" targets.

	Use pod2html rather than man2html to build HTML man pages.

	Fix ethereal.nsi.in for recent versions of NSIS, and fix a typo.

svn path=/trunk/; revision=4475
2002-01-04 06:57:10 +00:00
Gilbert Ramirez a2251afaff Throw a BoundsError if a length parameter in a tvbuff-accessor is < -1.
svn path=/trunk/; revision=4474
2002-01-04 06:45:14 +00:00
Guy Harris 9588f37fac As per Michael Tuexen's suggestion, set the libpcap open timeout to 1
second rather than 1/4 second on MacOS X, to workaround what appears to
be a MacOS BPF bug.

svn path=/trunk/; revision=4473
2002-01-04 06:27:42 +00:00
Guy Harris ae760a4caa In "change_time_formats()" we can now check at the beginning whether
there are any columns whose time formats will change, and just return if
there aren't.

We also, however, need to set the "writable" flag on the columns before
doing that check, as "check_col()" checks whether the column in question
is writable; in this context, all columns are writable.

svn path=/trunk/; revision=4472
2002-01-03 22:27:44 +00:00
Guy Harris b1f4093d1a Make the "go" member of the "loop_data" structure in Ethereal a
"gboolean", as it's a Boolean value, and move it to the beginning of the
structure in Tethereal, as it is in Ethereal.

From Graeme Hewson:

	Check for "pcap_dispatch()" returning -1, meaning an error
	occurred; if it does, stop capturing, and report the error.

	If we get a signal in tethereal, stop the capture with a
	"longjmp()", rather than by clearning the "go" flag;
	"pcap_dispatch()", on many platforms, keeps reading rather than
	returning a captured packet count of 0 if the system call to
	read packets returns -1 with an errno of EINTR, so the
	"pcap_dispatch()" won't be broken out of if the signal handler
	returns.

	Fix a typo in an error message.

svn path=/trunk/; revision=4471
2002-01-03 22:03:24 +00:00
Guy Harris 98b2ecb304 SPOOLSS RPC dissector, from Tim Potter. This includes adding additional
DOS error codes to the table of them, and exporting that table to other
dissectors for protocols using DOS error codes.

svn path=/trunk/; revision=4470
2002-01-03 20:42:41 +00:00
Guy Harris c57411dbb9 PPP multiplexing support, from Jayaram V.R.
svn path=/trunk/; revision=4469
2002-01-03 20:30:33 +00:00
Guy Harris 8a3a289875 From Albert Chin: simplify some autoconf code - AC_CHECK_FUNC can, by
itself, be made to run some code only if the function isn't found,
there's no need to check the result yourself.

svn path=/trunk/; revision=4468
2002-01-03 20:09:55 +00:00
Guy Harris 6b2ee38ad3 From Albert Chin: eliminate a GCCism.
svn path=/trunk/; revision=4467
2002-01-03 20:01:07 +00:00
Guy Harris 5ce2931d0c Now that there's a protocol ID for "raw", use it when creating the
dissector handle for the "raw" protocol.

svn path=/trunk/; revision=4466
2002-01-03 02:10:01 +00:00
Gilbert Ramirez 8168fb74a0 Register a protocol for "Raw packet data". This makes it filterable,
but the real point is to make it look better in a Protocol-Hierarchy
Statistics summary; without the header_field_info for "Raw packet data",
there was no name to display in the statistics GUI. (Yes, I could have
re-designed ph_stats_node_t to accomodate an string if there was not
a registered hfinfo for a protocol, but then the side-effect of being
able to filter for the "raw" protocol made me choose this route).

svn path=/trunk/; revision=4465
2002-01-02 20:33:46 +00:00
Gilbert Ramirez 8d6b722b3d A proper fix for pulling the header_field_info* from a stat_node.
Gerald's fix wasn't the real problem; the original code was wrong in
treating a GNode containing a ph_stats_node_t as a GNode that is part
of a proto_tree; it worked because of the coincidental layout of the
two structs.

Now the code has been fixed, and some macros have been added for
accessing the GNodes and some variables renamed so that the code
is clearer.

svn path=/trunk/; revision=4464
2002-01-02 20:23:46 +00:00
Gerald Combs e8839785ad Fix a pointer error in find_stat_node.
Define a default width and maximum height for the stats dialog.

svn path=/trunk/; revision=4463
2001-12-31 20:40:34 +00:00
Gerald Combs 30c5551caa Add preferences to save the main window size and position. If enabled,
the geometry is saved at exit.  Should we save the main window pane
sizes as well?

Move the DEF_WIDTH and DEF_HEIGHT #defines from gtk/main.h to prefs.h.
Remove the reference to DEF_WIDTH from proto_hier_stats_dlg.c.

svn path=/trunk/; revision=4462
2001-12-31 04:41:50 +00:00
Guy Harris 0fa63e3baf Dissection of ypbind calls, from Ronnie Sahlberg.
svn path=/trunk/; revision=4461
2001-12-29 22:23:07 +00:00
Guy Harris 8053f4839a Make "dscp_vals[]" a "const" array again.
svn path=/trunk/; revision=4460
2001-12-29 22:01:11 +00:00
Ashok Narayanan b18512d444 Changes to RSVP:
- Cleaned up TSpec and Flowspec support to handle multiple parameters
- Added support for Compression Hint (RFC3006)
- Added support for DCLASS (RFC2996)
- Corrected some bugs in support for Null Service (RFC2997)

svn path=/trunk/; revision=4459
2001-12-29 00:43:55 +00:00
Guy Harris 378bcd4198 Correctly handle the nanoseconds fields in strings representing absolute
and relative times - "0.4" is 400,000,000 nanoseconds, not 4
nanoseconds.

svn path=/trunk/; revision=4458
2001-12-28 21:30:34 +00:00
Guy Harris 6e4c4ab00a From Ronnie Sahlberg: add time between request and reply as a field to
ONC RPC replies.

svn path=/trunk/; revision=4457
2001-12-28 20:18:45 +00:00
Guy Harris 853b34a828 RFC 2132 says
The end option marks the end of valid information in the vendor
   field.  Subsequent octets should be filled with pad options.

rather than "must be filled with pad options", so just treat stuff after
the end option as padding by marking it all as padding, rather than
treating stuff after the end option as additional options, so that if
it's not all pad options (bytes containing 0), we don't treat that as an
error.

svn path=/trunk/; revision=4456
2001-12-27 23:53:10 +00:00
Guy Harris e678fdece2 On the first pass through the BOOTP options, check whether data exists
before fetching it, so if an option is malformed, we don't throw an
exception before the second pass through the option, which is the pass
where they're dissected.

svn path=/trunk/; revision=4455
2001-12-27 22:49:02 +00:00
Guy Harris 2a5c22e024 Add in the SliMP3 data protocol dissector.
svn path=/trunk/; revision=4454
2001-12-27 20:58:35 +00:00
Ashok Narayanan e70d85c80b Adds support for the data protocol used by the SliMP3 embedded MP3
player. See www.slimdevices.com for details.

svn path=/trunk/; revision=4453
2001-12-27 05:24:20 +00:00
Ashok Narayanan 3a0b573c9c Added support for Generalized MPLS (GMPLS) to RSVP
svn path=/trunk/; revision=4452
2001-12-26 22:32:57 +00:00
Guy Harris 319892c608 From Hannes Gredler:
System IDs in IS neighbor CLVs in Hello PDUs are assumed to be
	MAC addresses, so use "get_ether_name()" on them to try to
	resolve them to host names.

	Properly label IS type values of ISIS_LSP_TYPE_LEVEL_2 as being
	"Level 1 and Level 2 IS".

svn path=/trunk/; revision=4451
2001-12-26 21:37:21 +00:00
Guy Harris dfa2f0eb06 There's no need for the DLSw handle variable to be static; make it local
to "proto_reg_handoff_dlsw()".

svn path=/trunk/; revision=4450
2001-12-26 21:21:00 +00:00
Guy Harris c0ff48d6d0 DLSw support, from Paul Ionescu.
svn path=/trunk/; revision=4449
2001-12-26 21:17:49 +00:00
Gerald Combs 99502224b9 Cisco HDLC and frame relay direction reporting, from Tom Nisbet.
svn path=/trunk/; revision=4447
2001-12-24 17:06:53 +00:00
Gerald Combs e2106afbf2 VMS TCPIPtrace efficiency improvments, from Marc Milgram.
svn path=/trunk/; revision=4446
2001-12-24 17:00:01 +00:00
Gerald Combs 9a8c861166 Remove the black border from the XPM and PNG icons. Do the same for
the Windows icon file, courtesy of Gordon McKinney.

svn path=/trunk/; revision=4445
2001-12-24 05:21:10 +00:00
Guy Harris 6f0d79c0d7 From Ronnie Sahlberg: initial NDMPv3 support, and an update to his
e-mail address.

svn path=/trunk/; revision=4444
2001-12-23 21:36:58 +00:00
Guy Harris 914061d436 Fix some news items.
svn path=/trunk/; revision=4443
2001-12-23 21:22:46 +00:00
Gerald Combs f2b009d21e Periodic update.
svn path=/trunk/; revision=4442
2001-12-23 21:18:56 +00:00
Guy Harris a495f4920d The key change made for preferences on Windows is that they're *not* in
the user's "home directory", they're in the user's "profile directory".

svn path=/trunk/; revision=4441
2001-12-23 21:14:59 +00:00
Gerald Combs 2701bbc077 Bump the version up to 0.9.0. Update the NEWS file.
svn path=/trunk/; revision=4440
2001-12-23 21:11:24 +00:00
Guy Harris fef1e91788 Print out messages if any of the ring buffer checks fail.
Do the ring buffer checks at the same time other command-line argument
checks are done.

svn path=/trunk/; revision=4439
2001-12-21 20:33:47 +00:00
Guy Harris b1abeeb5f0 Clean up the comments for the ring buffer checks.
svn path=/trunk/; revision=4438
2001-12-21 20:32:53 +00:00
Guy Harris b89a117a61 There is no such thing as an optional parameter to a command-line flag
if you're using "getopt" - if a flag requires a parameter, not
specifying the parameter is an error.

svn path=/trunk/; revision=4437
2001-12-21 20:18:40 +00:00