Commit Graph

5077 Commits

Author SHA1 Message Date
Guy Harris f970451d95 Add a cleanup function to close a potential memory leak.
Get rid of an assigned-to-but-not-used variable.

From Steven French: add names for some additional calls.

svn path=/trunk/; revision=5003
2002-03-22 10:03:36 +00:00
Guy Harris 29607a5107 For DCE RPC requests and replies, put an item into the protocol tree for
the sub-protocol containing the actual operation number (which isn't
necessarily the operation number in a connectionless reply's PDU;
sometimes the operation number in a connectionless reply appears to be
garbage, and it's not what we use to dissect the reply in any case), and
also giving the name of the operation, if we know it.

Show the authentication data in connectionless PDUs, if present, as an
item in the protocol tree.

svn path=/trunk/; revision=5002
2002-03-22 09:44:58 +00:00
Guy Harris 61130a5f65 Additional vendor (Issani) for Radius, and Issani VSA support for
Radius, from Jim Sienicki.

Put Jakob Schlyter into the contributors list in the Ethereal man page.

svn path=/trunk/; revision=5001
2002-03-22 02:38:54 +00:00
Guy Harris db1428be21 Improve the media payload type names some more, and add some new ones I
found in a Cisco document.

svn path=/trunk/; revision=5000
2002-03-21 11:18:44 +00:00
Guy Harris 3f4fdd2af4 Use somewhat nicer names for the media payload types.
svn path=/trunk/; revision=4999
2002-03-21 11:08:39 +00:00
Guy Harris 030cea2057 From Todd Sabin: set the tvbuff length of the stub data for
connectionless calls to the fragment length.

Add value_string tables for authentication protocol and level values.

Show the authentication protocol in decimal in connectionless PDUs, just
as we do in connection-oriented PDUs.

Get the authentication level from connection-oriented request and reply
PDUs and, if it's DCE_C_AUTHN_LEVEL_PKT_PRIVACY, don't hand the stub
data to subdissectors, just show it as encrypted stub data.

svn path=/trunk/; revision=4998
2002-03-21 09:35:52 +00:00
Gerald Combs c3881d8a9d From Jakob Schlyter, add the "MESSAGE" method.
Add the "QAUTH" and "DO" methods as well.

svn path=/trunk/; revision=4997
2002-03-21 03:08:46 +00:00
Guy Harris 0410cab974 Updates from Paul Erkkila.
svn path=/trunk/; revision=4996
2002-03-20 23:32:54 +00:00
Guy Harris 8cf3c7bd6b Update to draft 11, from Mark Burton.
svn path=/trunk/; revision=4995
2002-03-20 21:28:14 +00:00
Guy Harris 5c7464c673 Updates from Paul E. Erkkila.
svn path=/trunk/; revision=4994
2002-03-20 21:01:21 +00:00
Gilbert Ramirez fbc43449fb Produce ethereal-setup-$VERSION.exe instead of ethereal-setup.exe.
From Andrew C. Feren <aferen@cetacean.com>

svn path=/trunk/; revision=4993
2002-03-20 19:45:51 +00:00
Guy Harris b38e3f4e99 The length argument to "fake_unicode()" is in characters, not bytes.
svn path=/trunk/; revision=4992
2002-03-20 09:09:07 +00:00
Guy Harris b25cfdba75 When dissecting an SID with more than 4 authorities, increment the
offset to go past the last authority (the RID).

svn path=/trunk/; revision=4991
2002-03-20 07:55:51 +00:00
Guy Harris 3c012e8e6e In "fake_unicode()", check to make sure we have all the data in the
string available in the tvbuff before we allocate the buffer; this means
that

	1) we don't have to register a cleanup function to free the
	   buffer if we throw an exception trying to fetch some of the
	   data, because we won't even try to allocate the buffer if we
	   don't have all the data

and

	2) we won't try to allocate a buffer with a bogus too-large
	   length, as if the length is too large, we'll throw an
	   exception in the check.

svn path=/trunk/; revision=4990
2002-03-20 07:39:18 +00:00
Guy Harris 4d52bb3267 Handle Read operations on IPC trees as DCE RPC.
svn path=/trunk/; revision=4989
2002-03-20 06:51:14 +00:00
Richard Sharpe e2f5d92cb8 Express the RID separately of more than 4 sub-authorities. It is always the
last sub-authority.

svn path=/trunk/; revision=4988
2002-03-19 23:14:39 +00:00
Guy Harris 031c4ec27f Treat WriteAndX operations on IPC trees as containing DCERPC call
information, just as is done for Write.

Squelch a compiler warning.

svn path=/trunk/; revision=4987
2002-03-19 22:12:03 +00:00
Guy Harris ad8b000445 There is no guarantee that a buffer obtained using "tvb_get_ptr()" is
neatly aligned on a 2-byte or a 4-byte boundary, and there is no
guarantee that a misaligned pointer can be dereferenced without getting
a fault.

Furthermore, there is no guarantee that, even if you *can* dereference a
pointer to a 2-byte or 4-byte quantity in a packet, the resulting number
you get back is in the right byte order; the data in the packet might
have a different byte order from the machine on which you're running.

Therefore, we change "prs_uint8s()", "prs_uint16s()", and
"prs_uint32s()" to return the starting offset, in the tvbuff, of the
collection of 8-bit, 16-bit, or 32-bit integral values, rather than a
pointer to the raw packet data, and change their callers to fetch the
data using "tvb_get_guint8()", "tvb_get_letohs()", and
"tvb_get_letohl()" (the stuff in all the NT protocols is presumed to be
little-endian here).  We also change "fake_unicode()" to take a tvbuff
and an offset, rather than a data pointer, as arguments, and to use
"tvb_get_letohs()" to fetch the Unicode characters (again, we assume
little-endian Unicode).

This requires "fake_unicode()" to establish a cleanup handler, so we
don't leak memory if it throws an exception.

We also make "fake_unicode()" use "g_malloc()" to allocate its buffer
(we weren't checking for allocation failures in any case; with
"g_malloc()", we'll abort on an allocation failure - if we can come up
with a cleverer way of handling them, fine), and the matching frees to
use "g_free()".  (We also insert some missing frees....)

Fix some formats to print unsigned quantities with "%u", not "%d".

Don't append text to items in the tree for non-string values in
"dissect_ndr_nt_STRING_string()".

svn path=/trunk/; revision=4986
2002-03-19 22:09:23 +00:00
Guy Harris 3795d7d240 From Adam Sulmicki: add support for NOTIFY and NAK EAP types, fix the
entry for the ID EAP type, and do some miscellaneous cleanups.

svn path=/trunk/; revision=4985
2002-03-19 20:55:40 +00:00
Guy Harris 44e195e9b7 The data for EAP_TYPE_ID is just a string; display it with
"tvb_format_text()", as per Adam Sulmicki's suggestion.

svn path=/trunk/; revision=4984
2002-03-19 12:02:03 +00:00
Guy Harris adfba076ee From Adam Sulmicki: add all known EAP types.
Use "tvb_bytes_to_str()", not "tvb_format_text()", for binary data such
as challenges and responses.

svn path=/trunk/; revision=4983
2002-03-19 11:33:08 +00:00
Guy Harris 58387eb63b Updates from Paul E. Erkkila.
svn path=/trunk/; revision=4982
2002-03-19 11:26:23 +00:00
Guy Harris 09acc1c074 Secondary addresses are NUL-terminated strings; treat them as such.
svn path=/trunk/; revision=4981
2002-03-19 11:10:40 +00:00
Ronnie Sahlberg 84806766db Tiny quota updates
svn path=/trunk/; revision=4980
2002-03-19 10:16:40 +00:00
Guy Harris 43ad415d55 Fix some comments.
svn path=/trunk/; revision=4979
2002-03-19 09:18:42 +00:00
Guy Harris dec54cc52a Set the length for topology change BPDUs to 4, and leave the length of
unknown BPDU types alone.

Use the tvbuff's length in as the length of the top-level protocol tree
item.

svn path=/trunk/; revision=4978
2002-03-19 09:17:54 +00:00
Guy Harris 5c42850e62 Use "set_actual_length()" to set the reported length of the packet's
tvbuff, so we don't increase it past what was in the packet.

For packets with unknown BPDU types, put the value of the type into the
Info column.

svn path=/trunk/; revision=4977
2002-03-19 09:02:01 +00:00
Guy Harris b793e3c67d Give all the items in the packet filterable fields, including the
bitfields in the flags field.

Put a summary of the flags in the protocol tree item for the flags
field.

Give the Protocol Identifier and BPDU Type fields value_string tables.
Don't bother with "proto_tree_add_uint_format()" for fields with
value_string tables - use the default format.

Put the "Version 1 Length" field into Rapid Spanning Tree packets.

Don't fetch items until you put them into the protocol tree.

Make the length of the top-level item be the correct length of the
packet, including the "Version 1 Length" field in RST packets.  (XXX -
should it be really short for Topology Change Notification packets?)

For packets with unknown BPDU types, put the value of the type into the
Info column.

svn path=/trunk/; revision=4976
2002-03-19 09:00:44 +00:00
Guy Harris 99c86dd9b1 The protocol ID is an 8-bit field in the DEC spanning tree protocol.
svn path=/trunk/; revision=4975
2002-03-19 08:47:11 +00:00
Guy Harris af914f5a74 Give all the items in the packet filterable fields, including the
bitfields in the flags field.

Put a summary of the flags in the protocol tree item for the flags
field.

svn path=/trunk/; revision=4974
2002-03-19 08:44:41 +00:00
Guy Harris 165a8253b2 Allow "proto_item_append_text()" to an item that doesn't have a
representation string - set the representation string to the default
representation.  This lets you append to an item that's been added with
"proto_tree_add_XXX" calls that don't explicitly format the
representation string.

svn path=/trunk/; revision=4973
2002-03-19 08:42:16 +00:00
Guy Harris 3a3f044570 Put in desegmentation support.
Use "proto_tree_add_item()" to add items to the protocol tree; don't
fetch to a variable if the variable isn't later used (except for the
"unknown" fields).  Put fields into the protocol tree as soon as they're
fetched, so that if an exception is thrown when dissecting a packet, the
fields that didn't cause an exception get put into the protocol tree.

Fix some typos.

svn path=/trunk/; revision=4972
2002-03-19 06:31:16 +00:00
Guy Harris da785cee2e LDP support for draft-martini-l2circuit-encap-mpls for
Ethernet-over-MPLS, from Aamer Akhter.

svn path=/trunk/; revision=4971
2002-03-18 18:56:53 +00:00
Ronnie Sahlberg 0c7d8b3b30 Quota updates. GetUserQuota implemented and support for list of userquota structures
svn path=/trunk/; revision=4970
2002-03-18 09:45:27 +00:00
Ronnie Sahlberg fd54563f5b Add dissection of one more bit in Quota FS Flags bitmask
svn path=/trunk/; revision=4969
2002-03-18 08:34:18 +00:00
Guy Harris 0ab2b8b50f Don't show a secondary address if the secondary address length is 0.
svn path=/trunk/; revision=4968
2002-03-18 07:56:06 +00:00
Guy Harris 428f280a40 Skinny Client Control Protocol enhancements, from Paul E. Erkkila.
svn path=/trunk/; revision=4967
2002-03-18 00:45:11 +00:00
Guy Harris d29d38d864 Cisco LEAP support, from Adam Sulmicki.
svn path=/trunk/; revision=4966
2002-03-18 00:26:27 +00:00
Guy Harris 0b4145f7d7 Add information about 64-bit integral field support.
Fix some items on the tvbuff accessors for integers.

svn path=/trunk/; revision=4965
2002-03-18 00:20:18 +00:00
Ronnie Sahlberg 7f50e21a7e quota update partial NTGetUserQuota support
svn path=/trunk/; revision=4964
2002-03-17 12:16:11 +00:00
Ronnie Sahlberg 7fa1fcaaba Partial dissection of NT Set User Quota data block
svn path=/trunk/; revision=4963
2002-03-17 11:59:36 +00:00
Ronnie Sahlberg e9bd31fdbd SMB Quota updates
svn path=/trunk/; revision=4962
2002-03-17 11:24:16 +00:00
Ronnie Sahlberg 6ac7d7f7ac Updates for NT QUOTA in packet-smb.c
svn path=/trunk/; revision=4961
2002-03-17 10:59:35 +00:00
Ronnie Sahlberg 6836cadee8 Some minor bugfixes for netlogon
svn path=/trunk/; revision=4960
2002-03-17 07:43:11 +00:00
Guy Harris 13e6565ff4 From Aamer Akhter: LDP support for draft-martini-l2circuit-trans-mpls,
LDP status code updates, and small LDP cleanups.

svn path=/trunk/; revision=4959
2002-03-16 23:15:45 +00:00
Guy Harris f911953894 Put an item into the protocol tree for the secondary address in a bind
ack PDU.

svn path=/trunk/; revision=4958
2002-03-16 22:54:20 +00:00
Guy Harris fcf8cd8807 The service is just called "IPC"; the pipe is what's called "IPC$".
svn path=/trunk/; revision=4957
2002-03-16 22:39:45 +00:00
Guy Harris 949b2d4131 Whether the data returned from a read or sent in a write is DCERPC
traffic or not, that data doesn't include the padding; handle padding
if you're dissecting it as DCERPC traffic.

Don't treat the traffic as DCERPC traffic unless it's to the IPC$ share.

svn path=/trunk/; revision=4956
2002-03-16 22:35:51 +00:00
Guy Harris d5cd7aca15 A double-click in a filter name in the list-of-filters dialog box should
activate the text widget into which the filter text is put only if
clicking "OK" in the list-of-filters dialog box does so.  Make it so.

svn path=/trunk/; revision=4955
2002-03-16 22:02:55 +00:00
Guy Harris 0b60f086ef There is no guarantee that, when processing an SMB response, "si->sip"
is non-null, as there's no guarantee that the corresponding SMB request
is in the capture.  Check whether it's null before using it.

svn path=/trunk/; revision=4954
2002-03-16 22:01:27 +00:00