Commit Graph

6393 Commits

Author SHA1 Message Date
Guy Harris c655158489 Don't assume that we're building a protocol tree; dereference tree
pointers only if we are.

svn path=/trunk/; revision=6478
2002-10-23 00:48:33 +00:00
Jörg Mayer bdf8645b06 Update manuf
svn path=/trunk/; revision=6477
2002-10-23 00:11:08 +00:00
Jörg Mayer 40e1ec7fad Minimalistic support for counting IPv6 packets during capture
svn path=/trunk/; revision=6476
2002-10-22 22:04:23 +00:00
Jörg Mayer 4c80b2ac3f Wes Hardaker: Support NET-SNMP in addition to UCD-SNMP
svn path=/trunk/; revision=6475
2002-10-22 20:06:15 +00:00
Guy Harris 671ba8b6a6 Put in a comment noting that not *all* captures with a network type of 3
look like Ethernet captures.

svn path=/trunk/; revision=6474
2002-10-22 18:48:15 +00:00
Guy Harris 2a54cd2a76 Add a Wiretap encapsulation type for RFC 2625 IP-over-Fibre Channel, and
map libpcap's DLT_IP_OVER_FC to it.

svn path=/trunk/; revision=6473
2002-10-22 09:11:13 +00:00
Guy Harris 75ef739627 From Jamie Fournier: AFS 4 UPDATE server support.
Merge two CREDITS entries for Jamie.

svn path=/trunk/; revision=6472
2002-10-22 08:47:46 +00:00
Guy Harris 3205a6e888 Add in a notion of "circuits", which are for virtual circuit-oriented
protocols (where there's a virtual circuit ID of some sort in packets)
what conversations are for protocols ultimately running atop
connectionless network layers.  Have circuit type and ID values in the
"packet_info" structure.

Have the Frame Relay dissector set the circuit type and ID values, and
have the Wellfleet compression protocol set up circuit information and
store compression information with the circuit.

svn path=/trunk/; revision=6471
2002-10-22 08:44:33 +00:00
Guy Harris d97d0803b3 Put in a note about the completion code not appearing to be present in
replies to continuation messages (or, at least, not present in the
obvious place).

svn path=/trunk/; revision=6470
2002-10-22 08:24:39 +00:00
Guy Harris 28c1a65e85 Add in a notion of "circuits", which are for virtual circuit-oriented
protocols (where there's a virtual circuit ID of some sort in packets)
what conversations are for protocols ultimately running atop
connectionless network layers.  Have circuit type and ID values in the
"packet_info" structure.

Have the Frame Relay dissector set the circuit type and ID values, and
have the Wellfleet compression protocol set up circuit information and
store compression information with the circuit.

svn path=/trunk/; revision=6469
2002-10-22 08:22:07 +00:00
Guy Harris 6ba1ee899b Add support for desegmentation of NDPS-over-TCP.
svn path=/trunk/; revision=6468
2002-10-22 08:09:57 +00:00
Guy Harris 252667a153 Get rid of extra blanks at ends of program names (they're not needed; in
fact, they cause an extra blank to appear).

Turn "get_string()" into a routine that fetches the length of a string,
fetches the string, puts the string into the tree with the offset of the
length as the starting offset, and returns the new offset.

Make routines that return offsets return an "int", as packet offset
variables are "int"s.

Fix up a bunch of "proto_tree_add_uint()" calls, including presumably
properly updating the offset after the call.

Clean up the handling of qualified names, integer-or-OID types, and even
objects a bit.

Put octet strings into the protocol tree with the offset of the length
as the starting offset.

Fix up the record length variable to be decimal, and just use
"proto_tree_add_uint()" to put it into the tree.

In at least one capture I've seen, there are only two bytes after the
NDPS tree field in a Bind PA request, not 4, even if the NDPS tree name
isn't an empty string.

FT_BYTES and FT_BOOLEAN don't have a base for display, so use BASE_NONE.

Fix the field for address bytes to have the right name (it's not just
the length, it's the length *and* the bytes).

svn path=/trunk/; revision=6467
2002-10-22 07:50:07 +00:00
Guy Harris 173b01f830 Do a full dissection of NDPS packets regardless of whether we're
building a protocol tree or not - we need to do that in order to set
various state variables and to set the columns.

svn path=/trunk/; revision=6466
2002-10-22 06:09:06 +00:00
Guy Harris abbd3e0dea From Ronnie Sahlberg: track and display the time between requests and
replies for DCERPC similar to what is already done for ONC-RPC.

svn path=/trunk/; revision=6465
2002-10-22 00:59:25 +00:00
Guy Harris 1780e3e10b From Solomon Peachy: display "(correct)" or "(not verified)" for the WEP
ICV, depending on whether it was successfully verified or not.

svn path=/trunk/; revision=6464
2002-10-21 19:05:21 +00:00
Guy Harris c9900e6390 From Greg Morris:
Various NDS dissector enhancements including NDS verb 0x07, and
	proper ping flags for NDS ping version 10 request.

	Updated error codes for several NCP reply packets.

	NDPS enhancements.

svn path=/trunk/; revision=6463
2002-10-21 18:56:52 +00:00
Guy Harris ca2b0a3283 From Ronnie Sahlberg:
A small cosmetic change to make it highlight the proper bytes in
	the hex pane.

From Ronnie and me:

	use the length from the PPPoE header to set the length of the
	tvbuff we hand to the PPP dissector.

svn path=/trunk/; revision=6462
2002-10-21 18:17:41 +00:00
Guy Harris 074e1fe9ca From Ronnie Sahlberg:
Addition of Lookup, Insert and Delete calls.

	Changes to make presentation of tower floors nicer.

svn path=/trunk/; revision=6461
2002-10-21 18:07:20 +00:00
Guy Harris 62e7954c94 Get rid of all places where "vstring" is set to point to a null string
constant, as that won't work with "get_string()" (it'll try to overwrite
the constant, and either crash, trash memory, or both).

svn path=/trunk/; revision=6460
2002-10-19 20:28:54 +00:00
Guy Harris 926a65f2f0 Suppress compiler warnings on platforms where "time_t" is a "long",
without introducing warnings where it's an "int".

svn path=/trunk/; revision=6459
2002-10-19 07:52:12 +00:00
Guy Harris 213c136c6f Label UUID's with the name of the field.
svn path=/trunk/; revision=6458
2002-10-19 03:03:42 +00:00
Guy Harris ff9dc1e77b Only hand off the SPX payload to a subdissector if there's payload to
hand off.

svn path=/trunk/; revision=6457
2002-10-19 01:17:13 +00:00
Guy Harris b619b0410b From Greg Morris: put a buffer into "nw_uni_t", and make "get_string()"
fill that in.

svn path=/trunk/; revision=6456
2002-10-19 01:05:44 +00:00
Guy Harris dbfeea3620 The Frame Relay DLCI is a virtual circuit identifer, not a source or
destination address, so yank out the AT_DLCI stuff.

Clean up indentation.

svn path=/trunk/; revision=6455
2002-10-19 00:40:05 +00:00
Guy Harris a4d1704b63 "addr->data", not "addr", points to the DLCI.
svn path=/trunk/; revision=6454
2002-10-19 00:10:50 +00:00
Guy Harris bdda1b8b08 Put in code to handle AT_DLCI.
svn path=/trunk/; revision=6453
2002-10-18 22:10:53 +00:00
Guy Harris c7cacdf4b7 Add an AT_ARCNET address type for ARCNET addresses, and have the ARCNET
dissector set the source and destination link-layer addresses.

svn path=/trunk/; revision=6452
2002-10-18 21:40:13 +00:00
Guy Harris 1a25bf1cfd Get rid of (probably-)unnecessary #includes.
svn path=/trunk/; revision=6451
2002-10-18 21:10:38 +00:00
Guy Harris 27df774d0b From Peter Fales: ARCNET support.
Sort the lists of dissectors in the DISSECTOR_SRC macros in
"Makefile.am" and "Makefile.nmake".

svn path=/trunk/; revision=6450
2002-10-18 21:00:01 +00:00
Guy Harris 5b99f89521 From Didier Gautheron: better AFP 3.x dissector.
svn path=/trunk/; revision=6449
2002-10-17 22:38:19 +00:00
Guy Harris 18dd6eff9e Flag fragment overlaps when reassembling based on sequence number, and,
when displaying the fragment tree for reassembly based on sequence
number, show the correct offset.

svn path=/trunk/; revision=6448
2002-10-17 21:14:17 +00:00
Guy Harris 3618a128a6 Put in a missing check for fragment overlaps, and add an assertion to
check for bogus dfpos values before using the value.

svn path=/trunk/; revision=6447
2002-10-17 20:51:35 +00:00
Guy Harris 9ce0f18987 Put in a note telling people not to use "long" for 32-bit quantities.
svn path=/trunk/; revision=6446
2002-10-17 20:05:04 +00:00
Guy Harris 0bba015d3e Don't use "unsigned long" when you mean "unsigned 32-bit integer", as
"unsigned long" is an unsigned *64-bit* integer on many platforms.

While we're at it, use "guint8" rather than "unsigned char" for
"unsigned 8-bit integer", and use "guint16" rather than "unsigned short"
for "unsigned 16-bit integer".

Make the seconds field of a libpcap time stamp signed, as it's supposed
to be.

svn path=/trunk/; revision=6445
2002-10-17 20:02:00 +00:00
Michael Tüxen e87b15d031 Fixed a bug on 64 bit machines in the CRC32C algorithm. Thanks to
Jerome Forissier.

svn path=/trunk/; revision=6444
2002-10-17 18:44:10 +00:00
Guy Harris 5b77ebc32d From Ronnie Sahlberg: use the frame number of a TCP segment, rather than
its starting sequence number, as the "fragment ID" when reassembling,
and include the source and destination port numbers in a
"tcp_segment_key" structure and use that as part of the key in the hash
table for segments, so that we don't get spoofed by segments in two
directions in the same conversation, or by segments in two separate
conversations between the same hosts, having the same starting sequence
number (which is not unlikely to happen if relative sequence numbers are
being used).

svn path=/trunk/; revision=6443
2002-10-17 02:19:29 +00:00
Guy Harris 79308de612 From Ronnie Sahlberg: don't have the tap code do a dissection, leave
that up to its callers, so only one dissection need be done when reading
a capture file.

svn path=/trunk/; revision=6442
2002-10-17 02:11:20 +00:00
Guy Harris 9fb669df43 The Boolean field for EndVerifyAck messages was missing, causing a crash
if such a message (or something that happened to look enough like such a
message) was ever seen.

svn path=/trunk/; revision=6441
2002-10-17 01:29:30 +00:00
Guy Harris b99f379f55 From Ulf Lamping: show total running time of capture in capture progress
dialog box.

svn path=/trunk/; revision=6440
2002-10-16 23:34:52 +00:00
Guy Harris 97222e340b Clean up white space.
Clean up the stuff to handle MVTYPE_PROC_ENTRY_SPECIFIERS a bit, and put
in comments explaining what's going on for that and MVTYPE_ATTR_REQUEST.

svn path=/trunk/; revision=6439
2002-10-16 23:24:21 +00:00
Guy Harris f27452006f Use #defines for multivalue types.
svn path=/trunk/; revision=6438
2002-10-16 23:04:53 +00:00
Guy Harris 84b245903c Make some counters 32-bit, as the upper limit on the loop in which
they're used is 32-bit.

Use "%u" rather than "%d" to print unsigned values.

svn path=/trunk/; revision=6437
2002-10-16 22:44:58 +00:00
Guy Harris 11b8825bcb Use #defines for vtype values, rather than numbers.
svn path=/trunk/; revision=6436
2002-10-16 22:20:30 +00:00
Guy Harris cd747aaeba Make arrays of "nds_val" structures rather than declaring a bunch of
individual structures, and initialize them, and put them into
the protocol tree, in a loop.

svn path=/trunk/; revision=6435
2002-10-16 21:57:24 +00:00
Gilbert Ramirez 1ba73660c0 Make the dfilter code support multiple header_field_info's with
the same name (abbreviation). Thus, if multiple protocols or fields
are registered with the same name, you can still filter on the name
and have the filtering work as expected.

svn path=/trunk/; revision=6434
2002-10-16 16:32:59 +00:00
Gerald Combs e0cf132365 Add support for building randpkt under Windows.
svn path=/trunk/; revision=6433
2002-10-16 14:45:27 +00:00
Guy Harris 103fafbb74 Make a routine to check for NTLMSSP authentication and to do the NTLMSSP
dissection if found, with a table of headers that indicate NTLMSSP
authentication.

Add some more headers to that table.

Constify the code a bit.

svn path=/trunk/; revision=6432
2002-10-15 22:28:35 +00:00
Guy Harris ddf3c6140b Fully initialize an ncp_req_hash_value after allocating it.
svn path=/trunk/; revision=6431
2002-10-15 17:31:20 +00:00
Guy Harris a03e90ad09 From Hannes Gredler: dissect the graceful restart capability in BGP OPEN
messages.

svn path=/trunk/; revision=6430
2002-10-15 17:19:06 +00:00
Guy Harris 01bd6435e4 We'll be building a protocol tree for all NDS Ping packets, so we can
just wrap the entire dissection in an "if", as was done before.
(Actually, we can just skip the "if" entirely, I guess....)

svn path=/trunk/; revision=6429
2002-10-15 07:47:57 +00:00