Commit Graph

270 Commits

Author SHA1 Message Date
Guy Harris 4f9508837a Add "show_fragment_seq_tree()", which is like "show_fragment_tree()",
but for stuff reassembled with "fragment_add_seq()" or
"fragment_add_seq_check()".

Add a "fragment tag" string to the "fragment_items", so that packets
with fragmentation errors can be properly flagged as having "Illegal
fragments" or "Illegal segments" depending on the term used with the
protocol in question.

Make all the dissectors that can use "show_fragment_tree()" or
"show_fragment_seq_tree()", and don't already use them, do so.

svn path=/trunk/; revision=5644
2002-06-07 10:11:41 +00:00
Ronnie Sahlberg 31823cb851 Added show_fragment_tree() to reassemble. This function will do the common
task of creating a fregment tree for the fragmented packets.
Having this identical code to create this tree in every dissector that does
PDU reassembly is a huge waste and duplication of code.

Updated IP, SMB and DCERPC to use the new function.

svn path=/trunk/; revision=5626
2002-06-05 11:21:49 +00:00
Guy Harris 392a7dfc04 Get rid of the "data_src" member of the "frame_data" structure; put it
in the "packet_info" structure instead, as we don't need a pointer for
every single frame in the capture file, just for each frame for which we
currently have an open "epan_dissect_t".

svn path=/trunk/; revision=5614
2002-06-04 07:03:57 +00:00
Ronnie Sahlberg c9f2880cff Another small DCERPC interface from the winsows world implemented. TAPI.
svn path=/trunk/; revision=5608
2002-06-02 12:32:10 +00:00
Guy Harris 1504346601 SMB 0x31 is "Close And Tree Disconnect", not "Close And Tree Discover",
and it looks like "Close" (it's a close that also disconnects the tree
used for the SMB).

svn path=/trunk/; revision=5603
2002-05-30 11:29:38 +00:00
Guy Harris 2a8dfde425 Display unsigned quantities with "%u".
svn path=/trunk/; revision=5592
2002-05-29 19:55:55 +00:00
Guy Harris 37c5eef9cb Put back the stuff to dissect the last 2 bytes of
TRANS2_SET_FILE_INFORMATION parameters as reserved.

Change/add comments to reflect information from Microsoft Networks SMB
File Sharing Protocol Extensions Version 3.0, Document Version 1.11,
July 19, 1990.

svn path=/trunk/; revision=5568
2002-05-26 09:47:47 +00:00
Guy Harris 130b2e755a Fix "dissect_unknown()" to properly step through the word and byte
parameters.

svn path=/trunk/; revision=5567
2002-05-26 01:42:48 +00:00
Guy Harris 83dde747ff Put in some additional information from:
Microsoft Networks SMB File Sharing Protocol Extensions Version
	2.0, Document Version 3.3, November 7, 1988;

	Microsoft Networks SMB File Sharing Protocol Extensions Version
	3.0, Document Version 1.11, July 19, 1990.

svn path=/trunk/; revision=5566
2002-05-26 01:30:05 +00:00
Guy Harris e2a33ae644 Add messaging SMBs.
Fix a typo.

svn path=/trunk/; revision=5563
2002-05-25 12:33:59 +00:00
Ronnie Sahlberg c33e33fb7e Additions to the MAPI dissector. Function 02 for MAPI.
The function request/call are dissected but the main body of the function
in/out parameters consists of a unidimensional conformant and varying array of bytes which content is encrypted/obfuscated.
Whoever can tell me how to decrypt/unobfuscate these bytes will get
a case of VB next time in Sydney.

svn path=/trunk/; revision=5532
2002-05-23 12:23:29 +00:00
Guy Harris 529e38321f From Andrew Esh: support for additional interest levels in
TRANS2_QUERY_FS_INFORMATION, and fix handling of level 1022 to treat the
file name as always being in Unicode.

svn path=/trunk/; revision=5494
2002-05-16 23:36:43 +00:00
Guy Harris 870c706685 From Andrew Esh: support for interest level 1003 and 1007 in
TRANS2_QUERY_FS_INFORMATION.

svn path=/trunk/; revision=5477
2002-05-15 19:37:26 +00:00
Guy Harris 42c395b0e2 Update the URL and comment for the SNIA CIFS spec, now that it's final.
svn path=/trunk/; revision=5440
2002-05-10 22:09:24 +00:00
Tim Potter b4248be92d Added constant and value_string for invalid security descriptor owner
error.

svn path=/trunk/; revision=5415
2002-05-08 05:15:11 +00:00
Guy Harris a06dd1c724 From Joerg Mayer: get rid of unused "pinfo" argument to
"dissect_nt_sec_desc()".

Also, get rid of code to handle lengths of -1 in "dissect_nt_sec_desc()"
- we never pass it a length of -1, as security descriptors aren't sent
over the wire with NDR syntax.

svn path=/trunk/; revision=5317
2002-04-30 23:48:15 +00:00
Guy Harris da74615c79 Get rid of some unused arguments, and mark some others as unused.
Remove the declaration of "dissect_nt_sid()" from
"packet-dcerpc-samr.c"; get it by including "packet-smb-common.h",
instead.

svn path=/trunk/; revision=5313
2002-04-30 11:03:08 +00:00
Guy Harris d61cb7942d There's no need to allocate and fill in an array of sub-authorities and
then later construct the sub-authority string from that array; we can
just construct the string as we fetch the sub-authorities.

Given that we're doing that, use the cleanup handler to free the string,
so that we don't leak memory if we throw an exception when fetching the
RID, for example.

svn path=/trunk/; revision=5294
2002-04-29 10:23:04 +00:00
Guy Harris 9a80f0a521 Removal (or, at least, #ifdeffing out) of unused variables and
functions, from David Frascone.

svn path=/trunk/; revision=5288
2002-04-29 08:20:18 +00:00
Guy Harris 8c5b9c06e8 Put in a note about the "primary domain" in the Negotiate Protocol
response if the negotiated dialect is Windows for Workgroups 3.1a.

svn path=/trunk/; revision=5264
2002-04-28 01:19:27 +00:00
Guy Harris d9d5677510 Fix the test in "dissect_smb_datetime()" for "no date/time specified"
values.

Note that in a Negotiate Protocol response, the primary domain won't be
present if the negotiated dialect isn't "DOS LANMAN 2.1" or "LANMAN2.1".

At least for Info Standard replies for Transaction2 Find First2
requests, if the request had the "return resume keys" flag set, the
reply will have a resume key at the beginning of each entry.  We assume
that to be the case for Info Query EA Size and Info QUery EAs From List;
it does *not* appear to be the case for Find File Directory Info, Find
File Full Directory Info, or Find File Both Directory Info (they don't
have it even if the flag is set, at least in the captures I've seen).

The length of the name string in Find First2 entries doesn't include the
terminating '\0'; count that as well.

svn path=/trunk/; revision=5259
2002-04-27 21:23:48 +00:00
Tim Potter 0aaf9da3fe Sometimes there is some junk at the end of an ACE so use the size field
within the ACE to work out where the end is.

svn path=/trunk/; revision=5235
2002-04-24 07:19:25 +00:00
Tim Potter c08c275702 Added 'invalid security descriptor' error to list of dos errors.
svn path=/trunk/; revision=5234
2002-04-24 06:18:51 +00:00
Guy Harris 80078ecbf4 Clean up the descriptions of reassembly preferences.
svn path=/trunk/; revision=5230
2002-04-23 19:19:57 +00:00
Guy Harris d8110d00ad Support for NT Rename SMB, from Steven French.
svn path=/trunk/; revision=5217
2002-04-22 06:26:08 +00:00
Guy Harris 14caf2a9a5 Fix the return value of "dissect_nt_sec_desc()".
svn path=/trunk/; revision=5213
2002-04-22 01:54:51 +00:00
Guy Harris 677ad9ee25 Correctly dissect LSA security descriptors, at least as they appear
inside a Netlogon security descriptor.

Correctly dissect NT security descriptors as they appear inside an LSA
security descriptor (at least as those appear inside a Netlogon security
descriptor) - they get sent over the wire, apparently, as an opaque blob
from the point of view of DCE RPC, at least from one capture I've seen,
they do *not* get sent over the wire in DCE RPC NDR syntax.

svn path=/trunk/; revision=5212
2002-04-22 01:07:19 +00:00
Ronnie Sahlberg 1e24ac236f Bugfixes for LSA dissector and a small change to the security_descriptor dissector in packet-smb.c so we can call it from DCERPC NDR encoded services.
svn path=/trunk/; revision=5194
2002-04-17 15:11:30 +00:00
Guy Harris 827426c4d1 Do the standard "next entry offset" stuff in NT NOTIFY replies, so as to
1) handle inter-entry padding;

	2) quit when the "next entry offset" is 0 (that being the signal
	   for the last entry).

svn path=/trunk/; revision=5171
2002-04-16 02:42:24 +00:00
Tim Potter 86a0e134e0 Fixed two instances where si->sip was being not checked for NULL before
being dereferenced.

svn path=/trunk/; revision=5137
2002-04-09 23:56:57 +00:00
Gilbert Ramirez 5c10ad55a8 More static-ization.
svn path=/trunk/; revision=5131
2002-04-08 20:30:56 +00:00
Ronnie Sahlberg 25972db6bb copylen should be unsigned when we check the range since tvb_memcpy will be upset if a negative value is passed as len
svn path=/trunk/; revision=5044
2002-03-29 21:55:05 +00:00
Guy Harris bacadc18cd The Unicode Consortium's country code table has been updated to
incorporate the fixes I sent them, so it now matches what we have.

svn path=/trunk/; revision=5032
2002-03-27 20:58:43 +00:00
Guy Harris 588c50944d In the protocol tree entries for lists of fragments/segments, make the
top-level item correspond to the reassembled data, and make the item for
each fragment/segment correspond to the part of that reassembled data
that came from that fragment/segment.

svn path=/trunk/; revision=5025
2002-03-27 04:27:05 +00:00
Guy Harris 807bf4ead2 The Unicode Consortium's table has some errors in it; fix those errors
in our table.

svn path=/trunk/; revision=5023
2002-03-26 08:23:58 +00:00
Guy Harris f4bbdc9bc3 The Cygwin "winnls.h" header, and the Microsoft "winnls.h" headers, says
that a country code of 0 is for the "default", presumably meaning "don't
override the setting on the desktop machine" or something such as that.

svn path=/trunk/; revision=5015
2002-03-25 20:01:13 +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 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
Ronnie Sahlberg 84806766db Tiny quota updates
svn path=/trunk/; revision=4980
2002-03-19 10:16:40 +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
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
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 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