Commit Graph

5373 Commits

Author SHA1 Message Date
Tim Potter 70a045e948 Added subdissectors for StartDocPrinter and EndDocPrinter RPCs.
svn path=/trunk/; revision=5454
2002-05-13 01:27:07 +00:00
Guy Harris b6e941027f Add a "tvb_ensure_bytes_exist()", which is like "tvb_bytes_exist()" only
it throws the appropriate exception if the bytes don't exist.  Use it in
the GIOP and ASN.1 code to check whether the bytes to be copied to a
buffer exist before allocating the buffer.

Make "check_offset_length_no_exception()" check for an overflow, so that
it can be used in "tvb_ensure_bytes_exist()" and do all the checking
that the code "tvb_ensure_bytes_exist()" replaces did.

Make "get_CDR_wchar()" return a "gint", so that if the length octet it
fetched has a value between 128 and 255, the length can be returned
correctly.

Fix some comments not to specify the exception thrown by various
routines that can throw various exceptions.

svn path=/trunk/; revision=5453
2002-05-13 01:24:47 +00:00
Gerald Combs ef67bf2d2f Fix a bounds checking error in get_CDR_octet_seq.
svn path=/trunk/; revision=5452
2002-05-12 20:43:29 +00:00
Guy Harris d64506ff6d Put in a note about date and time formats.
svn path=/trunk/; revision=5451
2002-05-11 23:04:53 +00:00
Guy Harris 3479848f3f Mark unused arguments as such.
svn path=/trunk/; revision=5450
2002-05-11 22:53:58 +00:00
Guy Harris aadc22d704 From Didier Gautheron: do case-insensitive comparison against the
authentication mode, and add support for the "exchange file" operation.

svn path=/trunk/; revision=5449
2002-05-11 22:40:40 +00:00
Guy Harris 6a79ad7e91 In "dissect_nt_policy_hnd()":
add arguments to specify whether the policy handle is being
	opened or closed, and don't set the "open frame" for the handle
	unless it's being opened and don't set the "close frame" for the
	handle unless it's being closed;

	store the policy handle before fetching it, so that an open or
	close is marked appropriately in the protocol tree on the first
	pass;

	if the policy handle has a name associated with it, put that
	name into the top-level item for the policy handle.

In "packet-dcerpc-spoolss.c":

	get rid of aun unused variable;

	make "setjob_commands[]" static, as it's not used outside
	"packet-dcerpc-spoolss.c";

	put a "VALS()" call around the reference to "setjob_commands",
	to squelch compiler warnings;

	give the SPOOLSS return code field the appropriate
	"value_string" array.

svn path=/trunk/; revision=5448
2002-05-11 22:29:43 +00:00
Guy Harris 3ffd657e1d Handle an LSA length <= the length of an LSA header.
svn path=/trunk/; revision=5447
2002-05-11 22:22:11 +00:00
Guy Harris 0bcf2de0d9 Add a mechanism for registering "obsolete" preference modules, so that
if a dissector had preferences at one point but no longer does, it can
register that fact, so that the old preferences in the preference file
are silently ignored.

Use that mechanism in the NCP dissector.

svn path=/trunk/; revision=5446
2002-05-11 18:58:02 +00:00
Guy Harris e694a0fbe2 Instead of creating two handles for the RPC-over-TCP and
RPC-over-everything-else dissectors, one registered by name and one
anonymous, just fetch the handles for the registered dissectors.

svn path=/trunk/; revision=5445
2002-05-11 18:55:22 +00:00
Guy Harris c709d10b6f Use a name, not a number, to refer to the IP protocol number for UDP.
svn path=/trunk/; revision=5444
2002-05-11 18:52:55 +00:00
Guy Harris 60e2475556 From Graeme Hewson: add some sanity checks to DNS dissector to avoid
loops.

svn path=/trunk/; revision=5443
2002-05-11 18:46:38 +00:00
Guy Harris 00e94b5ca0 Get rid of an unused variable.
svn path=/trunk/; revision=5442
2002-05-11 18:43:09 +00:00
Guy Harris ae88c45ef0 From Joerg Mayer: make a pile of stuff not used outside one source file
static, and add a new "packet-data.h" to declare "proto_data".

Display escape sequences in octal in the IAPP dissector, as is now done
in the RADIUS dissector.

svn path=/trunk/; revision=5441
2002-05-10 23:20:38 +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
Guy Harris 58324cf3b3 Mark an unused argument as such.
Fix a couple of typos in comments.

svn path=/trunk/; revision=5439
2002-05-10 20:02:40 +00:00
Guy Harris 83188c261c The two entries for Martin Thomas are for the same person; combine them
under the e-mail address he says should be used.

svn path=/trunk/; revision=5438
2002-05-10 19:34:15 +00:00
Ashok Narayanan 292d541884 - Added support for LMP draft versions -02 and -03 (selectable in
protocol preferences)

- Added OSPF display filtering support, including OSPF/TE extensions

svn path=/trunk/; revision=5437
2002-05-10 18:37:38 +00:00
Gilbert Ramirez 38dafc2bfa Register FT_UINT_BYTES with correct structure.
svn path=/trunk/; revision=5436
2002-05-10 02:44:08 +00:00
Tim Potter 0a84144f2d Add printer name to COL_INFO for ClosePrinter request.
Converted enumjobs command to Ronnie's NDR dissection routines.

Implemented getjob, setjob, startpageprinter, endpageprinter commands using
NDR routines.

svn path=/trunk/; revision=5435
2002-05-10 02:41:48 +00:00
Tim Potter 8b5ff6898b Added a private data member to the dcerpc_info structure. This second
level of private data turns out to be needed to pass something other than
an int to dcerpc_dissect_fnct_t functions passed to dissect_ndr_pointer.

A nicer way of doing this would be to convert the levels parameter to a
void *state type of variable but this turns out to be a lot more work as
opposed to a one line change here.  (-:

svn path=/trunk/; revision=5434
2002-05-10 02:30:22 +00:00
Gilbert Ramirez 41cc7f0707 Merge the work in Novell_NCP_branch into the mainline code.
A little work still needs to be done on the new NCP dissector -- make
some of the COL_INFO texts more useful, handle a Unicode issue, and
modify some of the cases that use "request conditions".
But the NCP dissector as it stands is very usable now.

Note: I didn't merge in the PROTO_LENGTH_UNTIL_END macro... I wanted
to think about the various possible macros and review an email conversation
I had with Guy on the subject.

svn path=/trunk/; revision=5432
2002-05-09 23:50:34 +00:00
Ronnie Sahlberg 9625720a39 Added parsing of PORTMAP GETPORT functions.
When we see PRTOMAP GETPORT calls for UDP, make sure all further UDP packets to  or from
this port goes to the ONC-RPC dissector regardless of the port on the other side.

We need this because if there is ONC-RPC traffic going between the ONC-RPC Program port to a port which has a normal ethereal dissector, ethereal would dissect the traffic as the protocol associated with the other port instead.

svn path=/trunk/; revision=5430
2002-05-09 12:10:06 +00:00
Guy Harris a0c1d24f5f Process address lengths according to the X.25 spec.
Put in a comment noting that the address data should, if the A bit is
set, be processed according to the spec.

Label addresses for registration requests and confirmations
appropriately.

svn path=/trunk/; revision=5429
2002-05-09 11:18:47 +00:00
Guy Harris 5f3ec8a741 Put in a comment noting that the previous change came from a real
capture, so if an IDL disagrees, the IDL is wrong.

svn path=/trunk/; revision=5428
2002-05-09 09:54:13 +00:00
Guy Harris 94f3f3479e As Ronnie Sahlberg notes, the problem is that the QueryDomainInfo
response starts with a UNIQUE pointer to a DOMAIN_INFO, not with a REF
pointer to a DOMAIN_INFO - and also not with a UNIQUE pointer to a
DOMAIN_INFO REF pointer; fix the code to match that.

svn path=/trunk/; revision=5427
2002-05-09 09:49:34 +00:00
Guy Harris c5312df095 In at least one capture, a QueryDomainInfo response starts with what is,
I guess, a UNIQUE pointer to a DOMAIN_INFO REF pointer; dissect it as
such.

svn path=/trunk/; revision=5426
2002-05-09 08:36:45 +00:00
Guy Harris 6495ee6eef Fix another place where the heuristic dissector was checking data before
it new it was available.

Fix some comments.

svn path=/trunk/; revision=5425
2002-05-09 08:27:51 +00:00
Guy Harris c9c26fce69 In the heuristic dissector, check to make sure the data being looked at
is available before looking at it, so we don't throw an exception before
we conclude whether the packet is, or isn't, one of ours.

svn path=/trunk/; revision=5424
2002-05-09 07:42:07 +00:00
Guy Harris cbad622d0e From Martin Thomas: handle address lengths based on TOA bit in X.25.
svn path=/trunk/; revision=5423
2002-05-09 05:49:28 +00:00
Tim Potter e932bc78a9 Added a routine to dissect a DOS error code. These are used in the spoolss
(also registry and srvsvc?) pipe dissectors.

Also added some helper routines for decoding a range of uint8s.  These map
nicely to the dissect_{dcerpc,ndr}_foo() format with the addition of a
length parameter, but aren't really part of the NDR specification and are
probably only going to be used in the NT dcerpc dissectors.

svn path=/trunk/; revision=5421
2002-05-09 02:44:22 +00:00
Guy Harris 904ecac64a From Didier Gautheron:
DSI and ASP updates to better handle addresses in replies.

	Dissect DSI "open session" and "attention" messages.

svn path=/trunk/; revision=5420
2002-05-08 23:46:34 +00:00
Guy Harris 4f82062233 From Joerg Mayer:
autoconf 2.53 creates directories named autom4te.cache
        Add them to .cvsignore

svn path=/trunk/; revision=5419
2002-05-08 22:24:03 +00:00
Guy Harris 9c6a759e7e From Stefan Wenk: SIP heuristic dissector.
svn path=/trunk/; revision=5418
2002-05-08 20:29:47 +00:00
Ronnie Sahlberg 5b8ad79cb6 Added option to match async NLM MSG with RES packets, to print which MSG packet matches which RES packet and v.v as well as (in RES packets) how long the call took to execute.
svn path=/trunk/; revision=5417
2002-05-08 12:51:45 +00:00
Guy Harris 7181a4d327 From Kan Sasaki: VSA decoding and other changes to RADIUS.
svn path=/trunk/; revision=5416
2002-05-08 08:13:08 +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 95a095a1c4 From Chenjiang Hu: use the correct offset when fetching unreserved
bandwidth values.

svn path=/trunk/; revision=5414
2002-05-07 18:52:27 +00:00
Ronnie Sahlberg dad31088e2 Several bugfixes for SAMR
svn path=/trunk/; revision=5413
2002-05-07 11:26:46 +00:00
Ronnie Sahlberg 04158638ae Added extra check in the function that parses NDR pointers.
When the representation for a pointer type gets dissected, the dissector
is actually called twice. Once with conformant_run==1 and once ==0.
The idea is that when conformant_run is ==1, the ONLY bytes that will be
dissected and would be the array structure preceeding the actual data.
And the normal data and content will be dissected when conformant_run ==0.
This is to handle the case properly when conformant arrays are embedded inside
aggregated types, in which case there will be other data inserted between
these array control data, and the array content.

The check that is added will assert that no other data is actually eaten
for conformant_run==1 than just this data.
This will help debugging dcerpc dissectors.

svn path=/trunk/; revision=5412
2002-05-07 10:07:55 +00:00
Guy Harris d471f94388 Traffic with a traffic type of 0x06 is Signalling AAL traffic, including
non-Q.2931 SSCOP traffic; change comments to reflect that.

svn path=/trunk/; revision=5411
2002-05-07 06:25:30 +00:00
Tim Potter ea89f9f772 Fix up item lengths for policy handle subtree and subitems under it.
svn path=/trunk/; revision=5410
2002-05-07 00:35:14 +00:00
Guy Harris c23a824fa5 Remove the unused "offset_saved" variable, as per the changes to
"ethereal_gen.py" not to generate the line setting it.

svn path=/trunk/; revision=5409
2002-05-06 21:53:33 +00:00
Guy Harris 937c162036 Get rid of "template_main_dissector_switch_msgtype_end", and get rid of
the unused "offset_saved" variable, as per comments by Frank Singleton.

svn path=/trunk/; revision=5408
2002-05-06 21:50:28 +00:00
Guy Harris 1d97fc6d8c From Frank Singleton: fix for the handling of enum types.
svn path=/trunk/; revision=5407
2002-05-06 21:41:07 +00:00
Guy Harris 76e8a255f6 Note that not all attribute values are text strings.
svn path=/trunk/; revision=5406
2002-05-06 02:12:36 +00:00
Guy Harris 8d1b21c57c Conversations aren't being used, so don't bother including
<epan/conversation.h>.

svn path=/trunk/; revision=5405
2002-05-06 01:45:58 +00:00
Guy Harris 1bff9074ef Note a problem with "GETSTR".
svn path=/trunk/; revision=5404
2002-05-06 01:25:45 +00:00
Guy Harris 08b87db529 Note in comments that we should perhaps get all the information for
RADIUS attributes from files like the FreeRadius dictionary files,
rather than compiling them into the RADIUS dissector.

svn path=/trunk/; revision=5403
2002-05-06 00:58:28 +00:00
Guy Harris 87b92007d1 Fix a typo in a comment.
When displaying text strings, show escapes in octal (as is done C)
rather than decimal.

Display RADIUS_BINSTRING values as strings of hex digits rather than as
text strings.

Make some items that apparently *are* text strings RADIUS_STRING rather
than RADIUS_BINSTRING.

The return value of "rdconvertbufftostr()" is never used; get rid of it.

svn path=/trunk/; revision=5402
2002-05-06 00:49:19 +00:00