Commit Graph

4571 Commits

Author SHA1 Message Date
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
Guy Harris 393fba6ff2 If the user requested a ring buffer but didn't specify a capture file or
maximum capture file size, treat that as an error.

svn path=/trunk/; revision=4436
2001-12-21 20:06:43 +00:00
Guy Harris 095d803437 Don't let the user specify a maximum capture file size if they're not
saving the capture to a file.

svn path=/trunk/; revision=4435
2001-12-21 19:58:30 +00:00
Guy Harris 7ff0e8e3ce It's not possible to check whether the capture file has reached its
maximum size if there is no capture file; in fact, if you do, you get a
core dump.  Skip the capture file size test if not capturing to a file.

svn path=/trunk/; revision=4434
2001-12-21 19:51:03 +00:00
Guy Harris ec46daf88b Work around Windows' annoying decision to map 0.0.0.0 to the local host
name in "gethostbyaddr()".

svn path=/trunk/; revision=4433
2001-12-20 19:19:41 +00:00
Guy Harris e9121f9498 Put the Hello, LSP, and {C,P}SNP ISIS stuff into the ISIS protocol,
rather than having them each have their own protocol.

svn path=/trunk/; revision=4432
2001-12-20 07:33:21 +00:00
Guy Harris 49effaa0f1 Again, leave the SET_ADDRESS() stuff for IP to the IP dissector.
svn path=/trunk/; revision=4431
2001-12-20 06:32:19 +00:00
Guy Harris b9de49243d Make the address and control fields in the PPP/HDLC header, and the
protocol field in the PPP header, filterable fields.

Show the FCS value with a leading "0x".

svn path=/trunk/; revision=4430
2001-12-20 06:22:24 +00:00
Guy Harris 02e40b69f3 Set the PPP direction flag for transmitted or received PPP frames.
svn path=/trunk/; revision=4429
2001-12-20 05:34:50 +00:00
Guy Harris b34c47e4d2 Make the object attached to a frame for VJ decompression be a structure
containing a 4-byte offset and 128 bytes of data, rather than a 1-byte
offset and 128 bits of data, so that the data is aligned on a 4-byte
boundary and doesn't upset processors with strict alignment
requirements.

We don't free individual memory chunks containing those objects, so make
the memory chunk pool an "allocate-only" pool.

svn path=/trunk/; revision=4428
2001-12-19 22:39:59 +00:00
Guy Harris 3624071a79 Van Jacobson decompression support for PPP, from Irfan Khan.
svn path=/trunk/; revision=4427
2001-12-19 21:14:49 +00:00
Guy Harris b2e832d9ca From Michael Tuexen - SCTP updates:
- Support for the Add-IP extension defined in
 http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-addip-sctp-03.txt
- Support for the Limited Retransmission extension of SCTP defined in
 http://www.sctp.org/draft-ietf-tsvwg-usctp-01.txt
- Defining sctp.checksum_correct as a hidden boolean item to be able
 to search for SCTP packet with an incorrect checksum.

svn path=/trunk/; revision=4426
2001-12-19 20:01:56 +00:00
Guy Harris 1e8ca8af4d From Motonori Shindo: don't put the PDB files into the release, as
they're not built and the executables already contain debugging
information, and update the README.win32 file appropriately and add
Text2Pcap and Mergecap to it.

svn path=/trunk/; revision=4425
2001-12-19 19:16:12 +00:00
Guy Harris 887799e01a From Bernd Becker: don't clear COL_INFO until the GIOP subdissecrors are
fixed to put something interesting there, fix the GIOP dissector to
restore the Protocol column if no heuristic dissector succeeded, and fix
up the plugin GIOP subdissectors to use "col_set_str()" to set the
Protocol column.

svn path=/trunk/; revision=4424
2001-12-19 08:59:08 +00:00
Gilbert Ramirez e1dc772471 Use new, correct method for retrieving field_info* from a proto_item*
(aka GNode*).

svn path=/trunk/; revision=4423
2001-12-18 21:31:02 +00:00
Gilbert Ramirez 791f5774d0 Provide for per-protocol-tree data in the proto_tree code.
Put a hash-table of "interesting" fields in the per-proto-tree data.
The dfilter code records which fields/protocols are "interesting" (by which
I mean, their value or existence is checked). Thus, the proto_tree routines
can create special arrays of field_info*'s that are ready for the dfilter
engine to use during a filter operation.

Also store the "proto_tree_is_visible" boolean, renamed "visible", in
the per-proto-tree data.

Move epan_dissect_t to its own header file to make #include dependencies
easier to handle.

Provide epan_dissect_fill_in_columns(), which accepts just the epan_dissect_t*
as an argument.

epan_dissect_new() needs to be followed by epan_dissect_run() for the
dissection to actually take place. Between those two calls,
epan_dissect_prime_dfilter() can be run 0, 1, or multiple times in order to
prime the empty proto_tree with the "intersesting" fields from the dfilter_t.

svn path=/trunk/; revision=4422
2001-12-18 19:09:08 +00:00
Guy Harris 4e013a44de Reassembly of fragmented NT Transaction responses, from Ronnie Sahlberg.
svn path=/trunk/; revision=4421
2001-12-18 08:55:49 +00:00
Guy Harris f370747531 From Ronnie Sahlberg: dissect security descriptor flags.
Clean up the display of the access control list entry flags.

Treat the access control list entry mask bits as NT permission bits (as
that's what they are).

svn path=/trunk/; revision=4420
2001-12-18 08:27:06 +00:00
Guy Harris 3ba6c2e708 Get rid of calls to "proto_is_protocol_enabled()" in heuristic
dissectors - the infrastructure for calling heuristic dissectors won't
call a heuristic dissector for a protocol if the protocol isn't enabled,
so there's no need for the dissector itself to check that.

svn path=/trunk/; revision=4419
2001-12-17 23:17:34 +00:00
Guy Harris 4eb3462238 Check whether the protocol for a DCERPC subdissector is enabled, and
don't call the subdissector (or even create a subtree for the protocol)
if it's not enabled.

Save the current protocol string, and set it to the string for the
subdissector's protocol, before calling the subdissector, and restore it
after the subdissector returns.

svn path=/trunk/; revision=4418
2001-12-17 23:08:51 +00:00
Guy Harris ee04f7826f Now that the GIOP dissector sets "pinfo->current_proto" before calling
subdissectors, the subdissectors don't have to set it themselves.

svn path=/trunk/; revision=4417
2001-12-17 22:51:42 +00:00