Commit Graph

25 Commits

Author SHA1 Message Date
Jörg Mayer 3e2633a0f4 char *drep -> guint8 *drep
svn path=/trunk/; revision=9735
2004-01-19 20:10:37 +00:00
Guy Harris 809cc0c765 A "handle_t" as the first argument to a call doesn't seem to be sent
over the wire, at least in the DCE RPC 1.1 code.

That suggests that the first 24 bytes of a Map request are the UUID
pointer that the EPM IDL says should be there, not a context handle.

svn path=/trunk/; revision=9057
2003-11-21 08:40:00 +00:00
Guy Harris 28ecc3eecb From Yaniv Kaul:
1. Add dissection of inquiry type (rpc_c_ep_all_elts /
	   rpc_c_ep_match_by_if / rpc_c_ep_match_by_obj /
	   rpc_c_ep_match_by_both).

	2. The version field seems incorrect to me - I believe it is usually
	   should be version 2.0, not 0.2.
	   I suspect that the insertion of version information to the hash
	   table is also wrong, (and the get for the version should have
	   used _letohl() ) - but I did not change it.

	3. Clean up some white space.

svn path=/trunk/; revision=8929
2003-11-10 20:22:39 +00:00
Guy Harris e6251ad712 From Jim McDonough: add the text sservice name for a UUID/version string
at the top level of a floor, falling back to the UUID/version strings
themselves if the service isn't found.

Use #defines for protocol IDs.

svn path=/trunk/; revision=8739
2003-10-20 20:18:52 +00:00
Tim Potter 4ccbfa3edc Guy suggested that the dcerpc opnum value_string code could be simplified
somewhat.  Now the dynamic initialisation of the value_string is contained
in the value_string_from_subdissectors() function instead of being
distributed amongst the dcerpc dissectors.

svn path=/trunk/; revision=8123
2003-08-04 02:49:04 +00:00
Tim Potter 623f5b865d Dynamically create DCERPC opnum value_strings from the subdissector
list rather than duplicating this information in the dissector.  Some
of the opnum strings were starting to get out of date as developers
forgot to update the information in both places.

svn path=/trunk/; revision=7936
2003-06-26 04:30:31 +00:00
Tim Potter 1d6acba45c Convert dissector to callback based version of dissect_ndr_pointer().
Strings that used to call with levels != -1 should call the
callback helper which will append the string to the pointer item.

svn path=/trunk/; revision=7017
2003-01-28 06:39:41 +00:00
Guy Harris a56c79201d Arguments to hash routines are gconstpointer's; assign them to const
pointers.

The first argument to "sscanf()" is a "const char *"; don't cast const
pointers to "char *" when passing them to "sscanf()".

Assign the result of "tvb_get_ptr()" to const pointers, not non-const
pointers.

Make the "pdata" argument to various DCE routines a const pointer.

svn path=/trunk/; revision=6688
2002-11-28 03:57:50 +00:00
Guy Harris 00b3eed033 From Ronnie Sahlberg: dissect the LookupHandleFree call.
svn path=/trunk/; revision=6502
2002-10-25 01:16:02 +00:00
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
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
Jörg Mayer 7c4176d868 Removed trailing whitespaces from .h and .c files using the
winapi_cleanup tool written by Patrik Stridvall for the wine
project.

svn path=/trunk/; revision=6117
2002-08-28 21:04:11 +00:00
Ronnie Sahlberg 183929aad4 From Sergei Shokhor, bug in EPM dissector
svn path=/trunk/; revision=5946
2002-08-04 00:45:49 +00:00
Jörg Mayer 173fe5aef4 Replace the types from sys/types.h and netinet/in.h by their glib.h
equivalents for the toplevel directory. The removal of winsock2.h will
hopefully not cause any problems under MSVC++, as those files using
struct timeval still include wtap.h, which still includes winsock2.h.

svn path=/trunk/; revision=5932
2002-08-02 23:36:07 +00:00
Tim Potter 6d6dce305d Change each DCERPC dissector to pass in a hf value on initialisation
for a value_string that corresponds to that dissectors opnums.  Pass
in -1 if no such table is available.

svn path=/trunk/; revision=5749
2002-06-24 00:03:18 +00:00
Tim Potter 501daf1770 Removed some trailing commas from various DCERPC dissectors.
svn path=/trunk/; revision=5604
2002-05-31 00:31:13 +00:00
Ronnie Sahlberg 7a5c795f50 More dissection of EPM. Tower and tower floors dissected. (partially)
svn path=/trunk/; revision=5577
2002-05-28 11:45:56 +00:00
Ronnie Sahlberg b4f0142c07 Added dissecton of the Map command for EPM
svn path=/trunk/; revision=5569
2002-05-26 10:51:06 +00:00
Guy Harris f7724391aa From Joerg Mayer: get rid of some unused variables and arguments, and
mark other unused arguments as such.

svn path=/trunk/; revision=5366
2002-05-02 21:47:47 +00:00
Guy Harris ffac667c3b Put back an unused variable, as a reminder that the routine it's in
needs more work.

svn path=/trunk/; revision=5291
2002-04-29 09:41:45 +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 ee5ca25d31 Include files from the "epan" directory and subdirectories thereof with
"epan/..." pathnames, so as to avoid collisions with header files in any
of the directories in which we look (e.g., "proto.h", as some other
package has its own "proto.h" file which it installs in the top-level
include directory).

Don't add "-I" flags to search "epan", as that's no longer necessary
(and we want includes of "epan" headers to fail if the "epan/" is left
out, so that we don't re-introduce includes lacking "epan/").

svn path=/trunk/; revision=4586
2002-01-21 07:37:49 +00:00
Guy Harris 787a331ae6 From Todd Sabin:
add "dissect_ndr_ctx_hnd()" for dissecting context handles, and
	use it in various DCERPC dissectors;

	beef up the MS Security Account Manager dissector.

Also, export "NT_errors[]" for use by that dissector.

svn path=/trunk/; revision=4350
2001-12-06 23:30:36 +00:00
Guy Harris 5ebf118bf3 From Todd Sabin:
o Modifies the dcerpc handoff to subdissectors slightly.  It
	  also needs to pass the data representation to the
	  subdissector.  Also, if no subdissector is found, it puts a
	  "Stub data" entry in the tree.

	o Adds optional TCP desegmentation to the dcerpc layer.  Note
	  that dcerpc has it's own ability to fragment PDUs.  This isn't
	  for dealing with that, but with the case of a single PDU being
	  broken over more than one TCP segment.

	o Adds a little bit of dissection to packet-dcerpc-epm.c.
	  Mainly just proof of concept for the dcerpc handoff stuff.
	  (Writing this is how I realized the need for the drep.)

	o Adds packet-dcerpc-ndr.c, which will contain NDR dissection
	  routines for use by subdissectors.

Also, support added for multiple PDUs per segment for DCERPC-over-TCP
(and, potentially, other byte-stream transports).

svn path=/trunk/; revision=4285
2001-11-27 09:27:29 +00:00
Guy Harris 317a2651f9 Support for dissectors of protocols running atop DCE RPC registering
themselves with the DCE RPC dissector, and support for some of the
protocols atop DCE RPC that are part of DCE RPC, from Todd Sabin.

svn path=/trunk/; revision=3681
2001-07-11 01:25:45 +00:00