2 This file was automatically generated by Pidl
3 from rfr.idl and rfr.cnf.
5 Pidl is a perl based IDL compiler for DCE/RPC idl files.
6 It is maintained by the Samba team, not the Wireshark team.
7 Instructions on how to download and install Pidl can be
8 found at https://wiki.wireshark.org/Pidl
14 #include <wsutil/array.h>
15 #include <epan/packet.h>
18 #include "packet-dcerpc.h"
19 #include "packet-dcerpc-nt.h"
20 #include "packet-windows-common.h"
21 #include "packet-dcerpc-rfr.h"
22 void proto_register_dcerpc_rfr(void);
23 void proto_reg_handoff_dcerpc_rfr(void);
25 /* Ett declarations */
26 static int ett_dcerpc_rfr
;
29 /* Header field declarations */
30 static int hf_rfr_MAPISTATUS_status
;
31 static int hf_rfr_RfrGetFQDNFromLegacyDN_cbMailboxServerDN
;
32 static int hf_rfr_RfrGetFQDNFromLegacyDN_ppszServerFQDN
;
33 static int hf_rfr_RfrGetFQDNFromLegacyDN_szMailboxServerDN
;
34 static int hf_rfr_RfrGetFQDNFromLegacyDN_ulFlags
;
35 static int hf_rfr_RfrGetNewDSA_pUserDN
;
36 static int hf_rfr_RfrGetNewDSA_ppszServer
;
37 static int hf_rfr_RfrGetNewDSA_ppszUnused
;
38 static int hf_rfr_RfrGetNewDSA_ulFlags
;
39 static int hf_rfr_opnum
;
41 static int proto_dcerpc_rfr
;
42 /* Version information */
45 static e_guid_t uuid_dcerpc_rfr
= {
46 0x1544f5e0, 0x613c, 0x11d1,
47 { 0x93, 0xdf, 0x00, 0xc0, 0x4f, 0xd7, 0xbd, 0x09 }
49 static uint16_t ver_dcerpc_rfr
= 1;
51 const value_string rfr_MAPISTATUS_vals
[] = {
52 { MAPI_E_SUCCESS
, "MAPI_E_SUCCESS" },
53 { MAPI_E_NO_SUPPORT
, "MAPI_E_NO_SUPPORT" },
54 { MAPI_E_BAD_CHARWIDTH
, "MAPI_E_BAD_CHARWIDTH" },
55 { MAPI_E_STRING_TOO_LONG
, "MAPI_E_STRING_TOO_LONG" },
56 { MAPI_E_UNKNOWN_FLAGS
, "MAPI_E_UNKNOWN_FLAGS" },
57 { MAPI_E_INVALID_ENTRYID
, "MAPI_E_INVALID_ENTRYID" },
58 { MAPI_E_INVALID_OBJECT
, "MAPI_E_INVALID_OBJECT" },
59 { MAPI_E_OBJECT_CHANGED
, "MAPI_E_OBJECT_CHANGED" },
60 { MAPI_E_OBJECT_DELETED
, "MAPI_E_OBJECT_DELETED" },
61 { MAPI_E_BUSY
, "MAPI_E_BUSY" },
62 { MAPI_E_NOT_ENOUGH_DISK
, "MAPI_E_NOT_ENOUGH_DISK" },
63 { MAPI_E_NOT_ENOUGH_RESOURCES
, "MAPI_E_NOT_ENOUGH_RESOURCES" },
64 { MAPI_E_NOT_FOUND
, "MAPI_E_NOT_FOUND" },
65 { MAPI_E_VERSION
, "MAPI_E_VERSION" },
66 { MAPI_E_LOGON_FAILED
, "MAPI_E_LOGON_FAILED" },
67 { MAPI_E_SESSION_LIMIT
, "MAPI_E_SESSION_LIMIT" },
68 { MAPI_E_USER_CANCEL
, "MAPI_E_USER_CANCEL" },
69 { MAPI_E_UNABLE_TO_ABORT
, "MAPI_E_UNABLE_TO_ABORT" },
70 { MAPI_E_NETWORK_ERROR
, "MAPI_E_NETWORK_ERROR" },
71 { MAPI_E_DISK_ERROR
, "MAPI_E_DISK_ERROR" },
72 { MAPI_E_TOO_COMPLEX
, "MAPI_E_TOO_COMPLEX" },
73 { MAPI_E_BAD_COLUMN
, "MAPI_E_BAD_COLUMN" },
74 { MAPI_E_EXTENDED_ERROR
, "MAPI_E_EXTENDED_ERROR" },
75 { MAPI_E_COMPUTED
, "MAPI_E_COMPUTED" },
76 { MAPI_E_CORRUPT_DATA
, "MAPI_E_CORRUPT_DATA" },
77 { MAPI_E_UNCONFIGURED
, "MAPI_E_UNCONFIGURED" },
78 { MAPI_E_FAILONEPROVIDER
, "MAPI_E_FAILONEPROVIDER" },
79 { MAPI_E_UNKNOWN_CPID
, "MAPI_E_UNKNOWN_CPID" },
80 { MAPI_E_UNKNOWN_LCID
, "MAPI_E_UNKNOWN_LCID" },
81 { MAPI_E_PASSWORD_CHANGE_REQUIRED
, "MAPI_E_PASSWORD_CHANGE_REQUIRED" },
82 { MAPI_E_PASSWORD_EXPIRED
, "MAPI_E_PASSWORD_EXPIRED" },
83 { MAPI_E_INVALID_WORKSTATION_ACCOUNT
, "MAPI_E_INVALID_WORKSTATION_ACCOUNT" },
84 { MAPI_E_INVALID_ACCESS_TIME
, "MAPI_E_INVALID_ACCESS_TIME" },
85 { MAPI_E_ACCOUNT_DISABLED
, "MAPI_E_ACCOUNT_DISABLED" },
86 { MAPI_E_END_OF_SESSION
, "MAPI_E_END_OF_SESSION" },
87 { MAPI_E_UNKNOWN_ENTRYID
, "MAPI_E_UNKNOWN_ENTRYID" },
88 { MAPI_E_MISSING_REQUIRED_COLUMN
, "MAPI_E_MISSING_REQUIRED_COLUMN" },
89 { MAPI_W_NO_SERVICE
, "MAPI_W_NO_SERVICE" },
90 { MAPI_E_BAD_VALUE
, "MAPI_E_BAD_VALUE" },
91 { MAPI_E_INVALID_TYPE
, "MAPI_E_INVALID_TYPE" },
92 { MAPI_E_TYPE_NO_SUPPORT
, "MAPI_E_TYPE_NO_SUPPORT" },
93 { MAPI_E_UNEXPECTED_TYPE
, "MAPI_E_UNEXPECTED_TYPE" },
94 { MAPI_E_TOO_BIG
, "MAPI_E_TOO_BIG" },
95 { MAPI_E_DECLINE_COPY
, "MAPI_E_DECLINE_COPY" },
96 { MAPI_E_UNEXPECTED_ID
, "MAPI_E_UNEXPECTED_ID" },
97 { MAPI_W_ERRORS_RETURNED
, "MAPI_W_ERRORS_RETURNED" },
98 { MAPI_E_UNABLE_TO_COMPLETE
, "MAPI_E_UNABLE_TO_COMPLETE" },
99 { MAPI_E_TIMEOUT
, "MAPI_E_TIMEOUT" },
100 { MAPI_E_TABLE_EMPTY
, "MAPI_E_TABLE_EMPTY" },
101 { MAPI_E_TABLE_TOO_BIG
, "MAPI_E_TABLE_TOO_BIG" },
102 { MAPI_E_INVALID_BOOKMARK
, "MAPI_E_INVALID_BOOKMARK" },
103 { MAPI_W_POSITION_CHANGED
, "MAPI_W_POSITION_CHANGED" },
104 { MAPI_W_APPROX_COUNT
, "MAPI_W_APPROX_COUNT" },
105 { MAPI_E_WAIT
, "MAPI_E_WAIT" },
106 { MAPI_E_CANCEL
, "MAPI_E_CANCEL" },
107 { MAPI_E_NOT_ME
, "MAPI_E_NOT_ME" },
108 { MAPI_W_CANCEL_MESSAGE
, "MAPI_W_CANCEL_MESSAGE" },
109 { MAPI_E_CORRUPT_STORE
, "MAPI_E_CORRUPT_STORE" },
110 { MAPI_E_NOT_IN_QUEUE
, "MAPI_E_NOT_IN_QUEUE" },
111 { MAPI_E_NO_SUPPRESS
, "MAPI_E_NO_SUPPRESS" },
112 { MAPI_E_COLLISION
, "MAPI_E_COLLISION" },
113 { MAPI_E_NOT_INITIALIZED
, "MAPI_E_NOT_INITIALIZED" },
114 { MAPI_E_NON_STANDARD
, "MAPI_E_NON_STANDARD" },
115 { MAPI_E_NO_RECIPIENTS
, "MAPI_E_NO_RECIPIENTS" },
116 { MAPI_E_SUBMITTED
, "MAPI_E_SUBMITTED" },
117 { MAPI_E_HAS_FOLDERS
, "MAPI_E_HAS_FOLDERS" },
118 { MAPI_E_HAS_MESSAGES
, "MAPI_E_HAS_MESSAGES" },
119 { MAPI_E_FOLDER_CYCLE
, "MAPI_E_FOLDER_CYCLE" },
120 { MAPI_W_PARTIAL_COMPLETION
, "MAPI_W_PARTIAL_COMPLETION" },
121 { MAPI_E_AMBIGUOUS_RECIP
, "MAPI_E_AMBIGUOUS_RECIP" },
122 { MAPI_E_RESERVED
, "MAPI_E_RESERVED" },
125 static int rfr_dissect_element_RfrGetNewDSA_ulFlags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
126 static int rfr_dissect_element_RfrGetNewDSA_pUserDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
127 static int rfr_dissect_element_RfrGetNewDSA_pUserDN_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
128 static int rfr_dissect_element_RfrGetNewDSA_ppszUnused(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
129 static int rfr_dissect_element_RfrGetNewDSA_ppszUnused_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
130 static int rfr_dissect_element_RfrGetNewDSA_ppszUnused__(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
131 static int rfr_dissect_element_RfrGetNewDSA_ppszServer(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
132 static int rfr_dissect_element_RfrGetNewDSA_ppszServer_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
133 static int rfr_dissect_element_RfrGetNewDSA_ppszServer__(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
134 static int rfr_dissect_element_RfrGetFQDNFromLegacyDN_ulFlags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
135 static int rfr_dissect_element_RfrGetFQDNFromLegacyDN_cbMailboxServerDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
136 static int rfr_dissect_element_RfrGetFQDNFromLegacyDN_szMailboxServerDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
137 static int rfr_dissect_element_RfrGetFQDNFromLegacyDN_szMailboxServerDN_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
138 static int rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
139 static int rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
140 static int rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN__(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
);
144 /* IDL: MAPI_E_SUCCESS=0x00000000, */
145 /* IDL: MAPI_E_NO_SUPPORT=0x80040102, */
146 /* IDL: MAPI_E_BAD_CHARWIDTH=0x80040103, */
147 /* IDL: MAPI_E_STRING_TOO_LONG=0x80040105, */
148 /* IDL: MAPI_E_UNKNOWN_FLAGS=0x80040106, */
149 /* IDL: MAPI_E_INVALID_ENTRYID=0x80040107, */
150 /* IDL: MAPI_E_INVALID_OBJECT=0x80040108, */
151 /* IDL: MAPI_E_OBJECT_CHANGED=0x80040109, */
152 /* IDL: MAPI_E_OBJECT_DELETED=0x8004010A, */
153 /* IDL: MAPI_E_BUSY=0x8004010B, */
154 /* IDL: MAPI_E_NOT_ENOUGH_DISK=0x8004010D, */
155 /* IDL: MAPI_E_NOT_ENOUGH_RESOURCES=0x8004010E, */
156 /* IDL: MAPI_E_NOT_FOUND=0x8004010F, */
157 /* IDL: MAPI_E_VERSION=0x80040110, */
158 /* IDL: MAPI_E_LOGON_FAILED=0x80040111, */
159 /* IDL: MAPI_E_SESSION_LIMIT=0x80040112, */
160 /* IDL: MAPI_E_USER_CANCEL=0x80040113, */
161 /* IDL: MAPI_E_UNABLE_TO_ABORT=0x80040114, */
162 /* IDL: MAPI_E_NETWORK_ERROR=0x80040115, */
163 /* IDL: MAPI_E_DISK_ERROR=0x80040116, */
164 /* IDL: MAPI_E_TOO_COMPLEX=0x80040117, */
165 /* IDL: MAPI_E_BAD_COLUMN=0x80040118, */
166 /* IDL: MAPI_E_EXTENDED_ERROR=0x80040119, */
167 /* IDL: MAPI_E_COMPUTED=0x8004011A, */
168 /* IDL: MAPI_E_CORRUPT_DATA=0x8004011B, */
169 /* IDL: MAPI_E_UNCONFIGURED=0x8004011C, */
170 /* IDL: MAPI_E_FAILONEPROVIDER=0x8004011D, */
171 /* IDL: MAPI_E_UNKNOWN_CPID=0x8004011E, */
172 /* IDL: MAPI_E_UNKNOWN_LCID=0x8004011F, */
173 /* IDL: MAPI_E_PASSWORD_CHANGE_REQUIRED=0x80040120, */
174 /* IDL: MAPI_E_PASSWORD_EXPIRED=0x80040121, */
175 /* IDL: MAPI_E_INVALID_WORKSTATION_ACCOUNT=0x80040122, */
176 /* IDL: MAPI_E_INVALID_ACCESS_TIME=0x80040123, */
177 /* IDL: MAPI_E_ACCOUNT_DISABLED=0x80040124, */
178 /* IDL: MAPI_E_END_OF_SESSION=0x80040200, */
179 /* IDL: MAPI_E_UNKNOWN_ENTRYID=0x80040201, */
180 /* IDL: MAPI_E_MISSING_REQUIRED_COLUMN=0x80040202, */
181 /* IDL: MAPI_W_NO_SERVICE=0x80040203, */
182 /* IDL: MAPI_E_BAD_VALUE=0x80040301, */
183 /* IDL: MAPI_E_INVALID_TYPE=0x80040302, */
184 /* IDL: MAPI_E_TYPE_NO_SUPPORT=0x80040303, */
185 /* IDL: MAPI_E_UNEXPECTED_TYPE=0x80040304, */
186 /* IDL: MAPI_E_TOO_BIG=0x80040305, */
187 /* IDL: MAPI_E_DECLINE_COPY=0x80040306, */
188 /* IDL: MAPI_E_UNEXPECTED_ID=0x80040307, */
189 /* IDL: MAPI_W_ERRORS_RETURNED=0x80040380, */
190 /* IDL: MAPI_E_UNABLE_TO_COMPLETE=0x80040400, */
191 /* IDL: MAPI_E_TIMEOUT=0x80040401, */
192 /* IDL: MAPI_E_TABLE_EMPTY=0x80040402, */
193 /* IDL: MAPI_E_TABLE_TOO_BIG=0x80040403, */
194 /* IDL: MAPI_E_INVALID_BOOKMARK=0x80040405, */
195 /* IDL: MAPI_W_POSITION_CHANGED=0x80040481, */
196 /* IDL: MAPI_W_APPROX_COUNT=0x80040482, */
197 /* IDL: MAPI_E_WAIT=0x80040500, */
198 /* IDL: MAPI_E_CANCEL=0x80040501, */
199 /* IDL: MAPI_E_NOT_ME=0x80040502, */
200 /* IDL: MAPI_W_CANCEL_MESSAGE=0x80040580, */
201 /* IDL: MAPI_E_CORRUPT_STORE=0x80040600, */
202 /* IDL: MAPI_E_NOT_IN_QUEUE=0x80040601, */
203 /* IDL: MAPI_E_NO_SUPPRESS=0x80040602, */
204 /* IDL: MAPI_E_COLLISION=0x80040604, */
205 /* IDL: MAPI_E_NOT_INITIALIZED=0x80040605, */
206 /* IDL: MAPI_E_NON_STANDARD=0x80040606, */
207 /* IDL: MAPI_E_NO_RECIPIENTS=0x80040607, */
208 /* IDL: MAPI_E_SUBMITTED=0x80040608, */
209 /* IDL: MAPI_E_HAS_FOLDERS=0x80040609, */
210 /* IDL: MAPI_E_HAS_MESSAGES=0x8004060A, */
211 /* IDL: MAPI_E_FOLDER_CYCLE=0x8004060B, */
212 /* IDL: MAPI_W_PARTIAL_COMPLETION=0x80040680, */
213 /* IDL: MAPI_E_AMBIGUOUS_RECIP=0x80040700, */
214 /* IDL: MAPI_E_RESERVED=0xFFFFFFFF, */
218 rfr_dissect_enum_MAPISTATUS(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
, int hf_index _U_
, uint32_t *param _U_
)
220 uint32_t parameter
=0;
224 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_index
, ¶meter
);
232 rfr_dissect_element_RfrGetNewDSA_ulFlags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
234 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_RfrGetNewDSA_ulFlags
, 0);
240 rfr_dissect_element_RfrGetNewDSA_pUserDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
242 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, rfr_dissect_element_RfrGetNewDSA_pUserDN_
, NDR_POINTER_REF
, "Pointer to PUserDN (uint8)",hf_rfr_RfrGetNewDSA_pUserDN
);
248 rfr_dissect_element_RfrGetNewDSA_pUserDN_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
251 struct ndr_generic_array nga
= { .is_conformant
= false, };
253 offset
= dissect_ndr_conformant_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
255 offset
= dissect_ndr_varying_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
256 offset
= dissect_ndr_generic_array_string(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(uint8_t), hf_rfr_RfrGetNewDSA_pUserDN
, false, &nga
, &data
);
257 proto_item_append_text(tree
, ": %s", data
);
263 rfr_dissect_element_RfrGetNewDSA_ppszUnused(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
265 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, rfr_dissect_element_RfrGetNewDSA_ppszUnused_
, NDR_POINTER_UNIQUE
, "Pointer to PpszUnused (uint8)",hf_rfr_RfrGetNewDSA_ppszUnused
);
271 rfr_dissect_element_RfrGetNewDSA_ppszUnused_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
273 offset
= dissect_ndr_embedded_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, rfr_dissect_element_RfrGetNewDSA_ppszUnused__
, NDR_POINTER_UNIQUE
, "Pointer to PpszUnused (uint8)",hf_rfr_RfrGetNewDSA_ppszUnused
);
279 rfr_dissect_element_RfrGetNewDSA_ppszUnused__(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
282 struct ndr_generic_array nga
= { .is_conformant
= false, };
284 offset
= dissect_ndr_conformant_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
286 offset
= dissect_ndr_varying_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
287 offset
= dissect_ndr_generic_array_string(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(uint8_t), hf_rfr_RfrGetNewDSA_ppszUnused
, false, &nga
, &data
);
288 proto_item_append_text(tree
, ": %s", data
);
294 rfr_dissect_element_RfrGetNewDSA_ppszServer(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
296 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, rfr_dissect_element_RfrGetNewDSA_ppszServer_
, NDR_POINTER_UNIQUE
, "Pointer to PpszServer (uint8)",hf_rfr_RfrGetNewDSA_ppszServer
);
302 rfr_dissect_element_RfrGetNewDSA_ppszServer_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
304 offset
= dissect_ndr_embedded_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, rfr_dissect_element_RfrGetNewDSA_ppszServer__
, NDR_POINTER_UNIQUE
, "Pointer to PpszServer (uint8)",hf_rfr_RfrGetNewDSA_ppszServer
);
310 rfr_dissect_element_RfrGetNewDSA_ppszServer__(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
313 struct ndr_generic_array nga
= { .is_conformant
= false, };
315 offset
= dissect_ndr_conformant_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
317 offset
= dissect_ndr_varying_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
318 offset
= dissect_ndr_generic_array_string(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(uint8_t), hf_rfr_RfrGetNewDSA_ppszServer
, false, &nga
, &data
);
319 proto_item_append_text(tree
, ": %s", data
);
324 /* IDL: MAPISTATUS RfrGetNewDSA( */
325 /* IDL: [in] uint32 ulFlags, */
326 /* IDL: [charset(DOS)] [in] [ref] uint8 *pUserDN, */
327 /* IDL: [charset(DOS)] [in] [out] [unique(1)] uint8 **ppszUnused, */
328 /* IDL: [charset(DOS)] [in] [out] [unique(1)] uint8 **ppszServer */
332 rfr_dissect_RfrGetNewDSA_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
336 di
->dcerpc_procedure_name
="RfrGetNewDSA";
337 offset
= rfr_dissect_element_RfrGetNewDSA_ppszUnused(tvb
, offset
, pinfo
, tree
, di
, drep
);
338 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
340 offset
= rfr_dissect_element_RfrGetNewDSA_ppszServer(tvb
, offset
, pinfo
, tree
, di
, drep
);
341 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
343 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_MAPISTATUS_status
, &status
);
345 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Status: %s", val_to_str(status
, rfr_MAPISTATUS_vals
, "Unknown MAPISTATUS error 0x%08x"));
351 rfr_dissect_RfrGetNewDSA_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
353 di
->dcerpc_procedure_name
="RfrGetNewDSA";
354 offset
= rfr_dissect_element_RfrGetNewDSA_ulFlags(tvb
, offset
, pinfo
, tree
, di
, drep
);
355 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
356 offset
= rfr_dissect_element_RfrGetNewDSA_pUserDN(tvb
, offset
, pinfo
, tree
, di
, drep
);
357 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
358 offset
= rfr_dissect_element_RfrGetNewDSA_ppszUnused(tvb
, offset
, pinfo
, tree
, di
, drep
);
359 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
360 offset
= rfr_dissect_element_RfrGetNewDSA_ppszServer(tvb
, offset
, pinfo
, tree
, di
, drep
);
361 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
366 rfr_dissect_element_RfrGetFQDNFromLegacyDN_ulFlags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
368 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_RfrGetFQDNFromLegacyDN_ulFlags
, 0);
374 rfr_dissect_element_RfrGetFQDNFromLegacyDN_cbMailboxServerDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
376 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_RfrGetFQDNFromLegacyDN_cbMailboxServerDN
, 0);
382 rfr_dissect_element_RfrGetFQDNFromLegacyDN_szMailboxServerDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
384 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, rfr_dissect_element_RfrGetFQDNFromLegacyDN_szMailboxServerDN_
, NDR_POINTER_REF
, "Pointer to SzMailboxServerDN (uint8)",hf_rfr_RfrGetFQDNFromLegacyDN_szMailboxServerDN
);
390 rfr_dissect_element_RfrGetFQDNFromLegacyDN_szMailboxServerDN_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
393 struct ndr_generic_array nga
= { .is_conformant
= false, };
395 offset
= dissect_ndr_conformant_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
397 offset
= dissect_ndr_varying_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
398 offset
= dissect_ndr_generic_array_string(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(uint8_t), hf_rfr_RfrGetFQDNFromLegacyDN_szMailboxServerDN
, false, &nga
, &data
);
399 proto_item_append_text(tree
, ": %s", data
);
405 rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
407 offset
= dissect_ndr_toplevel_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN_
, NDR_POINTER_REF
, "Pointer to PpszServerFQDN (uint8)",hf_rfr_RfrGetFQDNFromLegacyDN_ppszServerFQDN
);
413 rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
415 offset
= dissect_ndr_embedded_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN__
, NDR_POINTER_UNIQUE
, "Pointer to PpszServerFQDN (uint8)",hf_rfr_RfrGetFQDNFromLegacyDN_ppszServerFQDN
);
421 rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN__(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
424 struct ndr_generic_array nga
= { .is_conformant
= false, };
426 offset
= dissect_ndr_conformant_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
428 offset
= dissect_ndr_varying_array_hdr(tvb
, offset
, pinfo
, tree
, di
, drep
, &nga
);
429 offset
= dissect_ndr_generic_array_string(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(uint8_t), hf_rfr_RfrGetFQDNFromLegacyDN_ppszServerFQDN
, false, &nga
, &data
);
430 proto_item_append_text(tree
, ": %s", data
);
435 /* IDL: MAPISTATUS RfrGetFQDNFromLegacyDN( */
436 /* IDL: [in] uint32 ulFlags, */
437 /* IDL: [in] [range(10,1024)] uint32 cbMailboxServerDN, */
438 /* IDL: [charset(DOS)] [in] [ref] [size_is(cbMailboxServerDN)] uint8 *szMailboxServerDN, */
439 /* IDL: [charset(DOS)] [out] [ref] uint8 **ppszServerFQDN */
443 rfr_dissect_RfrGetFQDNFromLegacyDN_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
447 di
->dcerpc_procedure_name
="RfrGetFQDNFromLegacyDN";
448 offset
= rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN(tvb
, offset
, pinfo
, tree
, di
, drep
);
449 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
451 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_MAPISTATUS_status
, &status
);
453 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Status: %s", val_to_str(status
, rfr_MAPISTATUS_vals
, "Unknown MAPISTATUS error 0x%08x"));
459 rfr_dissect_RfrGetFQDNFromLegacyDN_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, uint8_t *drep _U_
)
461 di
->dcerpc_procedure_name
="RfrGetFQDNFromLegacyDN";
462 offset
= rfr_dissect_element_RfrGetFQDNFromLegacyDN_ulFlags(tvb
, offset
, pinfo
, tree
, di
, drep
);
463 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
464 offset
= rfr_dissect_element_RfrGetFQDNFromLegacyDN_cbMailboxServerDN(tvb
, offset
, pinfo
, tree
, di
, drep
);
465 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
466 offset
= rfr_dissect_element_RfrGetFQDNFromLegacyDN_szMailboxServerDN(tvb
, offset
, pinfo
, tree
, di
, drep
);
467 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
472 static const dcerpc_sub_dissector rfr_dissectors
[] = {
474 rfr_dissect_RfrGetNewDSA_request
, rfr_dissect_RfrGetNewDSA_response
},
475 { 1, "RfrGetFQDNFromLegacyDN",
476 rfr_dissect_RfrGetFQDNFromLegacyDN_request
, rfr_dissect_RfrGetFQDNFromLegacyDN_response
},
477 { 0, NULL
, NULL
, NULL
}
480 void proto_register_dcerpc_rfr(void)
482 static hf_register_info hf
[] = {
483 { &hf_rfr_MAPISTATUS_status
,
484 { "MAPISTATUS", "rfr.MAPISTATUS_status", FT_UINT32
, BASE_HEX
, VALS(rfr_MAPISTATUS_vals
), 0, NULL
, HFILL
}},
485 { &hf_rfr_RfrGetFQDNFromLegacyDN_cbMailboxServerDN
,
486 { "CbMailboxServerDN", "rfr.RfrGetFQDNFromLegacyDN.cbMailboxServerDN", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
487 { &hf_rfr_RfrGetFQDNFromLegacyDN_ppszServerFQDN
,
488 { "PpszServerFQDN", "rfr.RfrGetFQDNFromLegacyDN.ppszServerFQDN", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
489 { &hf_rfr_RfrGetFQDNFromLegacyDN_szMailboxServerDN
,
490 { "SzMailboxServerDN", "rfr.RfrGetFQDNFromLegacyDN.szMailboxServerDN", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
491 { &hf_rfr_RfrGetFQDNFromLegacyDN_ulFlags
,
492 { "UlFlags", "rfr.RfrGetFQDNFromLegacyDN.ulFlags", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
493 { &hf_rfr_RfrGetNewDSA_pUserDN
,
494 { "PUserDN", "rfr.RfrGetNewDSA.pUserDN", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
495 { &hf_rfr_RfrGetNewDSA_ppszServer
,
496 { "PpszServer", "rfr.RfrGetNewDSA.ppszServer", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
497 { &hf_rfr_RfrGetNewDSA_ppszUnused
,
498 { "PpszUnused", "rfr.RfrGetNewDSA.ppszUnused", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
499 { &hf_rfr_RfrGetNewDSA_ulFlags
,
500 { "UlFlags", "rfr.RfrGetNewDSA.ulFlags", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
502 { "Operation", "rfr.opnum", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
506 static int *ett
[] = {
510 proto_dcerpc_rfr
= proto_register_protocol("Exchange 2003 Directory Request For Response", "RFR", "rfr");
511 proto_register_field_array(proto_dcerpc_rfr
, hf
, array_length (hf
));
512 proto_register_subtree_array(ett
, array_length(ett
));
515 void proto_reg_handoff_dcerpc_rfr(void)
517 dcerpc_init_uuid(proto_dcerpc_rfr
, ett_dcerpc_rfr
,
518 &uuid_dcerpc_rfr
, ver_dcerpc_rfr
,
519 rfr_dissectors
, hf_rfr_opnum
);