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
Guy Harris
ef77cb578a
In the policy handle hashing, handle more than one policy handle having
...
the same value, as an open might return handle XXX, handle XXX might
then be closed, and a subsequent handle might return handle XXX, and we
want to keep the two handles distinct to avoid, for example, displaying
handles closed before they're opened.
In policy handle open replies, store the handle name only if the
operation succeeded. We can now do that without parsing the packet
twice.
Have "dissect_nt_policy_hnd()" optionally return, through a pointer, the
protocol tree item for the handle, so that its caller can decorate the
item with the name of the handle - that's done on opens, where we do
that only if the operation succeeds.
svn path=/trunk/; revision=7787
2003-06-05 04:22:04 +00:00
Guy Harris
084b87c9c2
Move the value_string of platform ID values to "packet-dcerpc-nt.c", and
...
declare it in "packet-dcerpc-nt.h", as it's used both by the srvsvc and
wkssvc dissectors.
svn path=/trunk/; revision=7672
2003-05-15 05:24:19 +00:00
Ronnie Sahlberg
bca3332efd
Not all strings in MS interfaces are unicode.
...
Rename cb_str_postprocess which handles unicode strings to cb_wstr_postprocess.
Add cb_str_postprocess which handles ASCII strings
svn path=/trunk/; revision=7572
2003-04-27 00:49:14 +00:00
Richard Sharpe
c03272a8f5
Finish the dissection of what we know here. My, Ronnie has made this easy.
...
svn path=/trunk/; revision=7568
2003-04-26 00:44:21 +00:00
Tim Potter
3031823bed
Dissect the server type bitfield in NetServerGetInfo for SERVER_INFO_101
...
and SERVER_INFO_102.
Modify all callers to use the new interface.
svn path=/trunk/; revision=7158
2003-02-17 01:59:39 +00:00
Guy Harris
e9f0f4b74f
Rename "dissect_ndr_char_string()" and "dissect_ndr_wchar_string()" to
...
"dissect_ndr_char_cvstring()" and "dissect_ndr_wchar_cvstring()", to
indicate that they're for conformant varying strings.
Rename "dissect_ndr_character_array()" to "dissect_ndr_cvstring()", to
indicate that it's for conformant varying strings.
svn path=/trunk/; revision=7096
2003-02-07 22:44:54 +00:00
Guy Harris
9a348d5736
Rename "dissect_ndr_char_array" and "disect_ndr_wchar_array" to
...
"dissect_ndr_char_string" and "dissect_ndr_wchar_string", to make it
clearer what it does.
svn path=/trunk/; revision=7095
2003-02-07 22:31:32 +00:00
Tim Potter
6b8a47a691
Convert to new DCERPC string handling functions. There are still some
...
cosmetic bugs to work out though.
svn path=/trunk/; revision=7069
2003-02-03 02:14:01 +00:00
Guy Harris
2f725ad0d3
Top-level share entries are now decorated with the share name; put a
...
colon after "Share:".
svn path=/trunk/; revision=7057
2003-01-31 06:24:50 +00:00
Guy Harris
5dc66497b7
Generalize "cb_str_postprocess()" to allow the string to be appended to
...
items N levels up from the item being processed, and use that to
decorate the tree as it was decorated before.
svn path=/trunk/; revision=7043
2003-01-30 08:19:39 +00:00
Tim Potter
1d68476f15
Factor out srvsvc_dissect_pointer_UNICODE_STRING() and replace it with
...
calls to our dissect_ndr_str_pointer_item() helper function.
svn path=/trunk/; revision=7039
2003-01-30 05:35:10 +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
Tim Potter
56b60052cd
Convert some incidental prs_* calls to dissect_dcerpc_*
...
equivalents.
svn path=/trunk/; revision=6898
2003-01-11 04:35:57 +00:00
Tim Potter
559b6aa26e
The error codes returned by srvsvc rpcs are actually DOS error codes, not NT codes.
...
svn path=/trunk/; revision=6186
2002-09-05 00:17:05 +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
2b78d4d7c6
Added a few new infromation levels for the share structs based
...
on samba sources.
svn path=/trunk/; revision=6044
2002-08-21 09:58:59 +00:00
Guy Harris
0946e90553
Put in a note about the result of a SRVSVC NetRemoteTOD call.
...
svn path=/trunk/; revision=5753
2002-06-24 01:59:23 +00:00
Tim Potter
5c3035ae9d
Whoops - compile fix for opnum value_string stuff.
...
svn path=/trunk/; revision=5750
2002-06-24 00:08:17 +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
Ronnie Sahlberg
008c41a753
Added last remaining reply dissectors for this interface.
...
Im finished with this dissector for the time being so if anyone
wants to prettify it, go ahead.
The dissector should be fairly complete and includes the IDL definition.
svn path=/trunk/; revision=5744
2002-06-23 12:00:38 +00:00
Ronnie Sahlberg
96a6420c25
Added some more reply dissectors
...
svn path=/trunk/; revision=5743
2002-06-23 10:58:50 +00:00
Guy Harris
d866b27a88
Note the routine that can dissect server type flags.
...
Fix a typo in a field name.
svn path=/trunk/; revision=5740
2002-06-22 22:55:17 +00:00
Ronnie Sahlberg
4becc0cdea
Added some more reply packet dissectors.
...
svn path=/trunk/; revision=5736
2002-06-22 14:04:56 +00:00
Ronnie Sahlberg
eb7f8890ff
Added some reply dissectors.
...
svn path=/trunk/; revision=5733
2002-06-22 06:27:36 +00:00
Ronnie Sahlberg
3fe829fca2
Added my name at the top of the file
...
svn path=/trunk/; revision=5725
2002-06-21 14:27:46 +00:00
Ronnie Sahlberg
f841b1a3fc
Added request dissection of functions NetrShareEnumSticky, NetrShareDelStart, NetrShareDelCommit, NetrGetFileSecurity, NetrSetFileSecurity, NetrServerTransportAddEx and NetrServerSetServiceBits2
...
svn path=/trunk/; revision=5724
2002-06-21 14:24:38 +00:00
Ronnie Sahlberg
3a71fd9c63
Added dissection of the requests to functions NetrRemoteTOD, NetrServerSetServiceBits, NetrPathType, NetrPathCanonicalize, NetrPathCompare, NetrNameValidate, NetrNameCanonicalize and NetrNameCompare
...
svn path=/trunk/; revision=5723
2002-06-21 12:41:37 +00:00
Ronnie Sahlberg
ccdf38626a
Added dissection of the requests to functions NetrServerDiskEnum, NetrServerStatisticsGet, NetrServerTransportAdd, NetrServerTransportEnum and NetrServerTransportDel
...
svn path=/trunk/; revision=5722
2002-06-21 10:58:48 +00:00
Ronnie Sahlberg
6515ac849e
Added dissection of SERVER_INFO union and rewrote functions NetrServerGetInfo and added NetrServerSetInfo.
...
svn path=/trunk/; revision=5714
2002-06-20 12:34:51 +00:00
Ronnie Sahlberg
895d2000d4
Some infolevels for SERVER_INFO_UNION
...
svn path=/trunk/; revision=5713
2002-06-20 10:25:24 +00:00
Ronnie Sahlberg
ba367e801d
Added dissection of the request packets for the functions NetrShareSetInfo, NetrShareDel, NetrShareDelSticky and NetrShareCheck
...
svn path=/trunk/; revision=5705
2002-06-19 10:22:55 +00:00
Ronnie Sahlberg
a089150169
Added/Rewrote dissection of NetrShareEnum NetrShareGetInfo
...
svn path=/trunk/; revision=5703
2002-06-19 09:59:42 +00:00
Ronnie Sahlberg
2cdcbf6d3c
Added dissection of the request to NetrShareAdd
...
svn path=/trunk/; revision=5698
2002-06-18 13:18:30 +00:00
Ronnie Sahlberg
e704cfe808
Added dissection of the request packets for NetrSessionEnum and NetrSessionDel functions.
...
svn path=/trunk/; revision=5697
2002-06-18 10:19:47 +00:00
Ronnie Sahlberg
8be2488a32
Added dissectors for the request packets of functions NetrConnectionEnum, NetrFileEnum, NetrFileGetInfo and NetrFileClose
...
svn path=/trunk/; revision=5693
2002-06-17 13:04:14 +00:00
Ronnie Sahlberg
f5493bbdf1
Added dissection of the requests to functions NetrCharDevQGetInfo, NetrCharDevQSetInfo, NetrCharDevQPurge and NetrCharDevQPurgeSelf
...
svn path=/trunk/; revision=5692
2002-06-17 10:39:41 +00:00
Ronnie Sahlberg
0087a8a56e
Forgot again to remove test changes. Must update my testscripts so I dont need this change anymore.
...
svn path=/trunk/; revision=5685
2002-06-16 14:43:17 +00:00
Ronnie Sahlberg
b410479691
Added dissectors for the requests for functions NetrCharDevGetInfo, NetrCharDevControl, NetrCharDevQEnum.
...
svn path=/trunk/; revision=5684
2002-06-16 14:29:15 +00:00
Ronnie Sahlberg
5bece57634
Forgot to remove one change only used for local testing from last checkin
...
svn path=/trunk/; revision=5681
2002-06-16 11:55:46 +00:00
Ronnie Sahlberg
78299a48a5
Added dissection of the request for NetrCharDevEnum function.
...
svn path=/trunk/; revision=5680
2002-06-16 11:46:18 +00:00
Ronnie Sahlberg
231973f571
Changed one function name that was a duplicate.
...
svn path=/trunk/; revision=5679
2002-06-16 01:52:26 +00:00
Ronnie Sahlberg
96c27779ba
Added all missing function names.
...
Changed all existing function names to match MS naming of these functions.
svn path=/trunk/; revision=5671
2002-06-15 10:24:25 +00:00
Guy Harris
9920d2c257
Tweak some of the "levels" arguments to properly decorate the protocol
...
tree with share names.
svn path=/trunk/; revision=5655
2002-06-08 10:58:46 +00:00
Ronnie Sahlberg
50fa0c9345
Updates to netshareenumall to correctly decode reply packets
...
svn path=/trunk/; revision=5654
2002-06-07 23:05:12 +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
Tim Potter
1852e00c8a
Removed debugging fprintf calls.
...
svn path=/trunk/; revision=5595
2002-05-30 00:20:32 +00:00
Ronnie Sahlberg
259903dc66
Changed toplevel REF pointer dissection to create a subtree. Not creating a subtree was a design mistake which caused ugliness in the unicode string str dissector and in other places.
...
Dissectors will temporarily have less pretty output for topleve ref pointers until their output is retuned.
svn path=/trunk/; revision=5573
2002-05-27 09:50:58 +00:00
Richard Sharpe
1303868b7d
Account for hidden share types in share_types.
...
svn path=/trunk/; revision=5572
2002-05-27 04:11:06 +00:00