2 This filter was automatically generated
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 http://wiki.wireshark.org/Pidl
17 #pragma warning(disable:4005)
18 #pragma warning(disable:4013)
19 #pragma warning(disable:4018)
20 #pragma warning(disable:4101)
25 #include <epan/packet.h>
27 #include "packet-dcerpc.h"
28 #include "packet-dcerpc-nt.h"
29 #include "packet-windows-common.h"
30 #include "packet-dcerpc-rfr.h"
32 /* Ett declarations */
33 static gint ett_dcerpc_rfr
= -1;
36 /* Header field declarations */
37 static gint hf_rfr_MAPISTATUS_status
= -1;
38 static gint hf_rfr_RfrGetFQDNFromLegacyDN_ulFlags
= -1;
39 static gint hf_rfr_RfrGetFQDNFromLegacyDN_szMailboxServerDN
= -1;
40 static gint hf_rfr_opnum
= -1;
41 static gint hf_rfr_RfrGetNewDSA_ulFlags
= -1;
42 static gint hf_rfr_RfrGetFQDNFromLegacyDN_cbMailboxServerDN
= -1;
43 static gint hf_rfr_RfrGetNewDSA_pUserDN
= -1;
44 static gint hf_rfr_RfrGetNewDSA_ppszUnused
= -1;
45 static gint hf_rfr_RfrGetNewDSA_ppszServer
= -1;
46 static gint hf_rfr_RfrGetFQDNFromLegacyDN_ppszServerFQDN
= -1;
48 static gint proto_dcerpc_rfr
= -1;
49 /* Version information */
52 static e_uuid_t uuid_dcerpc_rfr
= {
53 0x1544f5e0, 0x613c, 0x11d1,
54 { 0x93, 0xdf, 0x00, 0xc0, 0x4f, 0xd7, 0xbd, 0x09 }
56 static guint16 ver_dcerpc_rfr
= 1;
58 const value_string rfr_MAPISTATUS_vals
[] = {
59 { MAPI_E_SUCCESS
, "MAPI_E_SUCCESS" },
60 { MAPI_E_NO_SUPPORT
, "MAPI_E_NO_SUPPORT" },
61 { MAPI_E_BAD_CHARWIDTH
, "MAPI_E_BAD_CHARWIDTH" },
62 { MAPI_E_STRING_TOO_LONG
, "MAPI_E_STRING_TOO_LONG" },
63 { MAPI_E_UNKNOWN_FLAGS
, "MAPI_E_UNKNOWN_FLAGS" },
64 { MAPI_E_INVALID_ENTRYID
, "MAPI_E_INVALID_ENTRYID" },
65 { MAPI_E_INVALID_OBJECT
, "MAPI_E_INVALID_OBJECT" },
66 { MAPI_E_OBJECT_CHANGED
, "MAPI_E_OBJECT_CHANGED" },
67 { MAPI_E_OBJECT_DELETED
, "MAPI_E_OBJECT_DELETED" },
68 { MAPI_E_BUSY
, "MAPI_E_BUSY" },
69 { MAPI_E_NOT_ENOUGH_DISK
, "MAPI_E_NOT_ENOUGH_DISK" },
70 { MAPI_E_NOT_ENOUGH_RESOURCES
, "MAPI_E_NOT_ENOUGH_RESOURCES" },
71 { MAPI_E_NOT_FOUND
, "MAPI_E_NOT_FOUND" },
72 { MAPI_E_VERSION
, "MAPI_E_VERSION" },
73 { MAPI_E_LOGON_FAILED
, "MAPI_E_LOGON_FAILED" },
74 { MAPI_E_SESSION_LIMIT
, "MAPI_E_SESSION_LIMIT" },
75 { MAPI_E_USER_CANCEL
, "MAPI_E_USER_CANCEL" },
76 { MAPI_E_UNABLE_TO_ABORT
, "MAPI_E_UNABLE_TO_ABORT" },
77 { MAPI_E_NETWORK_ERROR
, "MAPI_E_NETWORK_ERROR" },
78 { MAPI_E_DISK_ERROR
, "MAPI_E_DISK_ERROR" },
79 { MAPI_E_TOO_COMPLEX
, "MAPI_E_TOO_COMPLEX" },
80 { MAPI_E_BAD_COLUMN
, "MAPI_E_BAD_COLUMN" },
81 { MAPI_E_EXTENDED_ERROR
, "MAPI_E_EXTENDED_ERROR" },
82 { MAPI_E_COMPUTED
, "MAPI_E_COMPUTED" },
83 { MAPI_E_CORRUPT_DATA
, "MAPI_E_CORRUPT_DATA" },
84 { MAPI_E_UNCONFIGURED
, "MAPI_E_UNCONFIGURED" },
85 { MAPI_E_FAILONEPROVIDER
, "MAPI_E_FAILONEPROVIDER" },
86 { MAPI_E_UNKNOWN_CPID
, "MAPI_E_UNKNOWN_CPID" },
87 { MAPI_E_UNKNOWN_LCID
, "MAPI_E_UNKNOWN_LCID" },
88 { MAPI_E_PASSWORD_CHANGE_REQUIRED
, "MAPI_E_PASSWORD_CHANGE_REQUIRED" },
89 { MAPI_E_PASSWORD_EXPIRED
, "MAPI_E_PASSWORD_EXPIRED" },
90 { MAPI_E_INVALID_WORKSTATION_ACCOUNT
, "MAPI_E_INVALID_WORKSTATION_ACCOUNT" },
91 { MAPI_E_INVALID_ACCESS_TIME
, "MAPI_E_INVALID_ACCESS_TIME" },
92 { MAPI_E_ACCOUNT_DISABLED
, "MAPI_E_ACCOUNT_DISABLED" },
93 { MAPI_E_END_OF_SESSION
, "MAPI_E_END_OF_SESSION" },
94 { MAPI_E_UNKNOWN_ENTRYID
, "MAPI_E_UNKNOWN_ENTRYID" },
95 { MAPI_E_MISSING_REQUIRED_COLUMN
, "MAPI_E_MISSING_REQUIRED_COLUMN" },
96 { MAPI_W_NO_SERVICE
, "MAPI_W_NO_SERVICE" },
97 { MAPI_E_BAD_VALUE
, "MAPI_E_BAD_VALUE" },
98 { MAPI_E_INVALID_TYPE
, "MAPI_E_INVALID_TYPE" },
99 { MAPI_E_TYPE_NO_SUPPORT
, "MAPI_E_TYPE_NO_SUPPORT" },
100 { MAPI_E_UNEXPECTED_TYPE
, "MAPI_E_UNEXPECTED_TYPE" },
101 { MAPI_E_TOO_BIG
, "MAPI_E_TOO_BIG" },
102 { MAPI_E_DECLINE_COPY
, "MAPI_E_DECLINE_COPY" },
103 { MAPI_E_UNEXPECTED_ID
, "MAPI_E_UNEXPECTED_ID" },
104 { MAPI_W_ERRORS_RETURNED
, "MAPI_W_ERRORS_RETURNED" },
105 { MAPI_E_UNABLE_TO_COMPLETE
, "MAPI_E_UNABLE_TO_COMPLETE" },
106 { MAPI_E_TIMEOUT
, "MAPI_E_TIMEOUT" },
107 { MAPI_E_TABLE_EMPTY
, "MAPI_E_TABLE_EMPTY" },
108 { MAPI_E_TABLE_TOO_BIG
, "MAPI_E_TABLE_TOO_BIG" },
109 { MAPI_E_INVALID_BOOKMARK
, "MAPI_E_INVALID_BOOKMARK" },
110 { MAPI_W_POSITION_CHANGED
, "MAPI_W_POSITION_CHANGED" },
111 { MAPI_W_APPROX_COUNT
, "MAPI_W_APPROX_COUNT" },
112 { MAPI_E_WAIT
, "MAPI_E_WAIT" },
113 { MAPI_E_CANCEL
, "MAPI_E_CANCEL" },
114 { MAPI_E_NOT_ME
, "MAPI_E_NOT_ME" },
115 { MAPI_W_CANCEL_MESSAGE
, "MAPI_W_CANCEL_MESSAGE" },
116 { MAPI_E_CORRUPT_STORE
, "MAPI_E_CORRUPT_STORE" },
117 { MAPI_E_NOT_IN_QUEUE
, "MAPI_E_NOT_IN_QUEUE" },
118 { MAPI_E_NO_SUPPRESS
, "MAPI_E_NO_SUPPRESS" },
119 { MAPI_E_COLLISION
, "MAPI_E_COLLISION" },
120 { MAPI_E_NOT_INITIALIZED
, "MAPI_E_NOT_INITIALIZED" },
121 { MAPI_E_NON_STANDARD
, "MAPI_E_NON_STANDARD" },
122 { MAPI_E_NO_RECIPIENTS
, "MAPI_E_NO_RECIPIENTS" },
123 { MAPI_E_SUBMITTED
, "MAPI_E_SUBMITTED" },
124 { MAPI_E_HAS_FOLDERS
, "MAPI_E_HAS_FOLDERS" },
125 { MAPI_E_HAS_MESAGES
, "MAPI_E_HAS_MESAGES" },
126 { MAPI_E_FOLDER_CYCLE
, "MAPI_E_FOLDER_CYCLE" },
127 { MAPI_W_PARTIAL_COMPLETION
, "MAPI_W_PARTIAL_COMPLETION" },
128 { MAPI_E_AMBIGUOUS_RECIP
, "MAPI_E_AMBIGUOUS_RECIP" },
129 { MAPI_E_RESERVED
, "MAPI_E_RESERVED" },
132 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_
, guint8
*drep _U_
);
133 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_
, guint8
*drep _U_
);
134 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_
, guint8
*drep _U_
);
135 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_
, guint8
*drep _U_
);
136 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_
, guint8
*drep _U_
);
137 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_
, guint8
*drep _U_
);
138 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_
, guint8
*drep _U_
);
139 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_
, guint8
*drep _U_
);
140 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_
, guint8
*drep _U_
);
141 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_
, guint8
*drep _U_
);
142 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_
, guint8
*drep _U_
);
143 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_
, guint8
*drep _U_
);
144 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_
, guint8
*drep _U_
);
145 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_
, guint8
*drep _U_
);
146 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_
, guint8
*drep _U_
);
147 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_
, guint8
*drep _U_
);
151 /* IDL: MAPI_E_SUCCESS=0x00000000, */
152 /* IDL: MAPI_E_NO_SUPPORT=0x80040102, */
153 /* IDL: MAPI_E_BAD_CHARWIDTH=0x80040103, */
154 /* IDL: MAPI_E_STRING_TOO_LONG=0x80040105, */
155 /* IDL: MAPI_E_UNKNOWN_FLAGS=0x80040106, */
156 /* IDL: MAPI_E_INVALID_ENTRYID=0x80040107, */
157 /* IDL: MAPI_E_INVALID_OBJECT=0x80040108, */
158 /* IDL: MAPI_E_OBJECT_CHANGED=0x80040109, */
159 /* IDL: MAPI_E_OBJECT_DELETED=0x8004010A, */
160 /* IDL: MAPI_E_BUSY=0x8004010B, */
161 /* IDL: MAPI_E_NOT_ENOUGH_DISK=0x8004010D, */
162 /* IDL: MAPI_E_NOT_ENOUGH_RESOURCES=0x8004010E, */
163 /* IDL: MAPI_E_NOT_FOUND=0x8004010F, */
164 /* IDL: MAPI_E_VERSION=0x80040110, */
165 /* IDL: MAPI_E_LOGON_FAILED=0x80040111, */
166 /* IDL: MAPI_E_SESSION_LIMIT=0x80040112, */
167 /* IDL: MAPI_E_USER_CANCEL=0x80040113, */
168 /* IDL: MAPI_E_UNABLE_TO_ABORT=0x80040114, */
169 /* IDL: MAPI_E_NETWORK_ERROR=0x80040115, */
170 /* IDL: MAPI_E_DISK_ERROR=0x80040116, */
171 /* IDL: MAPI_E_TOO_COMPLEX=0x80040117, */
172 /* IDL: MAPI_E_BAD_COLUMN=0x80040118, */
173 /* IDL: MAPI_E_EXTENDED_ERROR=0x80040119, */
174 /* IDL: MAPI_E_COMPUTED=0x8004011A, */
175 /* IDL: MAPI_E_CORRUPT_DATA=0x8004011B, */
176 /* IDL: MAPI_E_UNCONFIGURED=0x8004011C, */
177 /* IDL: MAPI_E_FAILONEPROVIDER=0x8004011D, */
178 /* IDL: MAPI_E_UNKNOWN_CPID=0x8004011E, */
179 /* IDL: MAPI_E_UNKNOWN_LCID=0x8004011F, */
180 /* IDL: MAPI_E_PASSWORD_CHANGE_REQUIRED=0x80040120, */
181 /* IDL: MAPI_E_PASSWORD_EXPIRED=0x80040121, */
182 /* IDL: MAPI_E_INVALID_WORKSTATION_ACCOUNT=0x80040122, */
183 /* IDL: MAPI_E_INVALID_ACCESS_TIME=0x80040123, */
184 /* IDL: MAPI_E_ACCOUNT_DISABLED=0x80040124, */
185 /* IDL: MAPI_E_END_OF_SESSION=0x80040200, */
186 /* IDL: MAPI_E_UNKNOWN_ENTRYID=0x80040201, */
187 /* IDL: MAPI_E_MISSING_REQUIRED_COLUMN=0x80040202, */
188 /* IDL: MAPI_W_NO_SERVICE=0x80040203, */
189 /* IDL: MAPI_E_BAD_VALUE=0x80040301, */
190 /* IDL: MAPI_E_INVALID_TYPE=0x80040302, */
191 /* IDL: MAPI_E_TYPE_NO_SUPPORT=0x80040303, */
192 /* IDL: MAPI_E_UNEXPECTED_TYPE=0x80040304, */
193 /* IDL: MAPI_E_TOO_BIG=0x80040305, */
194 /* IDL: MAPI_E_DECLINE_COPY=0x80040306, */
195 /* IDL: MAPI_E_UNEXPECTED_ID=0x80040307, */
196 /* IDL: MAPI_W_ERRORS_RETURNED=0x80040380, */
197 /* IDL: MAPI_E_UNABLE_TO_COMPLETE=0x80040400, */
198 /* IDL: MAPI_E_TIMEOUT=0x80040401, */
199 /* IDL: MAPI_E_TABLE_EMPTY=0x80040402, */
200 /* IDL: MAPI_E_TABLE_TOO_BIG=0x80040403, */
201 /* IDL: MAPI_E_INVALID_BOOKMARK=0x80040405, */
202 /* IDL: MAPI_W_POSITION_CHANGED=0x80040481, */
203 /* IDL: MAPI_W_APPROX_COUNT=0x80040482, */
204 /* IDL: MAPI_E_WAIT=0x80040500, */
205 /* IDL: MAPI_E_CANCEL=0x80040501, */
206 /* IDL: MAPI_E_NOT_ME=0x80040502, */
207 /* IDL: MAPI_W_CANCEL_MESSAGE=0x80040580, */
208 /* IDL: MAPI_E_CORRUPT_STORE=0x80040600, */
209 /* IDL: MAPI_E_NOT_IN_QUEUE=0x80040601, */
210 /* IDL: MAPI_E_NO_SUPPRESS=0x80040602, */
211 /* IDL: MAPI_E_COLLISION=0x80040604, */
212 /* IDL: MAPI_E_NOT_INITIALIZED=0x80040605, */
213 /* IDL: MAPI_E_NON_STANDARD=0x80040606, */
214 /* IDL: MAPI_E_NO_RECIPIENTS=0x80040607, */
215 /* IDL: MAPI_E_SUBMITTED=0x80040608, */
216 /* IDL: MAPI_E_HAS_FOLDERS=0x80040609, */
217 /* IDL: MAPI_E_HAS_MESAGES=0x8004060A, */
218 /* IDL: MAPI_E_FOLDER_CYCLE=0x8004060B, */
219 /* IDL: MAPI_W_PARTIAL_COMPLETION=0x80040680, */
220 /* IDL: MAPI_E_AMBIGUOUS_RECIP=0x80040700, */
221 /* IDL: MAPI_E_RESERVED=0xFFFFFFFF, */
225 rfr_dissect_enum_MAPISTATUS(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
, int hf_index _U_
, guint32
*param _U_
)
229 parameter
=(guint32
)*param
;
231 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_index
, ¶meter
);
233 *param
=(guint32
)parameter
;
239 rfr_dissect_element_RfrGetNewDSA_ulFlags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
241 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_RfrGetNewDSA_ulFlags
, 0);
247 rfr_dissect_element_RfrGetNewDSA_pUserDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
249 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
);
255 rfr_dissect_element_RfrGetNewDSA_pUserDN_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
259 offset
= dissect_ndr_cvstring(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(guint8
), hf_rfr_RfrGetNewDSA_pUserDN
, FALSE
, &data
);
260 proto_item_append_text(tree
, ": %s", data
);
266 rfr_dissect_element_RfrGetNewDSA_ppszUnused(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
268 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
);
274 rfr_dissect_element_RfrGetNewDSA_ppszUnused_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
276 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
);
282 rfr_dissect_element_RfrGetNewDSA_ppszUnused__(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
286 offset
= dissect_ndr_cvstring(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(guint8
), hf_rfr_RfrGetNewDSA_ppszUnused
, FALSE
, &data
);
287 proto_item_append_text(tree
, ": %s", data
);
293 rfr_dissect_element_RfrGetNewDSA_ppszServer(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
295 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
);
301 rfr_dissect_element_RfrGetNewDSA_ppszServer_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
303 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
);
309 rfr_dissect_element_RfrGetNewDSA_ppszServer__(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
313 offset
= dissect_ndr_cvstring(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(guint8
), hf_rfr_RfrGetNewDSA_ppszServer
, FALSE
, &data
);
314 proto_item_append_text(tree
, ": %s", data
);
319 /* IDL: MAPISTATUS RfrGetNewDSA( */
320 /* IDL: [in] uint32 ulFlags, */
321 /* IDL: [ref] [in] [charset(DOS)] uint8 *pUserDN, */
322 /* IDL: [out] [unique(1)] [in] [charset(DOS)] uint8 **ppszUnused, */
323 /* IDL: [out] [unique(1)] [in] [charset(DOS)] uint8 **ppszServer */
327 rfr_dissect_RfrGetNewDSA_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
331 pinfo
->dcerpc_procedure_name
="RfrGetNewDSA";
332 offset
= rfr_dissect_element_RfrGetNewDSA_ppszUnused(tvb
, offset
, pinfo
, tree
, di
, drep
);
333 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
335 offset
= rfr_dissect_element_RfrGetNewDSA_ppszServer(tvb
, offset
, pinfo
, tree
, di
, drep
);
336 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
338 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_MAPISTATUS_status
, &status
);
340 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Status: %s", val_to_str(status
, rfr_MAPISTATUS_vals
, "Unknown MAPISTATUS error 0x%08x"));
346 rfr_dissect_RfrGetNewDSA_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
348 pinfo
->dcerpc_procedure_name
="RfrGetNewDSA";
349 offset
= rfr_dissect_element_RfrGetNewDSA_ulFlags(tvb
, offset
, pinfo
, tree
, di
, drep
);
350 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
351 offset
= rfr_dissect_element_RfrGetNewDSA_pUserDN(tvb
, offset
, pinfo
, tree
, di
, drep
);
352 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
353 offset
= rfr_dissect_element_RfrGetNewDSA_ppszUnused(tvb
, offset
, pinfo
, tree
, di
, drep
);
354 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
355 offset
= rfr_dissect_element_RfrGetNewDSA_ppszServer(tvb
, offset
, pinfo
, tree
, di
, drep
);
356 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
361 rfr_dissect_element_RfrGetFQDNFromLegacyDN_ulFlags(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
363 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_RfrGetFQDNFromLegacyDN_ulFlags
, 0);
369 rfr_dissect_element_RfrGetFQDNFromLegacyDN_cbMailboxServerDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
371 offset
= PIDL_dissect_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_RfrGetFQDNFromLegacyDN_cbMailboxServerDN
, 0);
377 rfr_dissect_element_RfrGetFQDNFromLegacyDN_szMailboxServerDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
379 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
);
385 rfr_dissect_element_RfrGetFQDNFromLegacyDN_szMailboxServerDN_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
389 offset
= dissect_ndr_cvstring(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(guint8
), hf_rfr_RfrGetFQDNFromLegacyDN_szMailboxServerDN
, FALSE
, &data
);
390 proto_item_append_text(tree
, ": %s", data
);
396 rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
398 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
);
404 rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN_(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
406 offset
= dissect_ndr_embedded_pointer(tvb
, offset
, pinfo
, tree
, di
, drep
, rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN__
, NDR_POINTER_REF
, "Pointer to Ppszserverfqdn (uint8)",hf_rfr_RfrGetFQDNFromLegacyDN_ppszServerFQDN
);
412 rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN__(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
416 offset
= dissect_ndr_cvstring(tvb
, offset
, pinfo
, tree
, di
, drep
, sizeof(guint8
), hf_rfr_RfrGetFQDNFromLegacyDN_ppszServerFQDN
, FALSE
, &data
);
417 proto_item_append_text(tree
, ": %s", data
);
422 /* IDL: MAPISTATUS RfrGetFQDNFromLegacyDN( */
423 /* IDL: [in] uint32 ulFlags, */
424 /* IDL: [in] [range(10 1024)] uint32 cbMailboxServerDN, */
425 /* IDL: [ref] [in] [charset(DOS)] [size_is(cbMailboxServerDN)] uint8 *szMailboxServerDN, */
426 /* IDL: [out] [ref] [charset(DOS)] uint8 **ppszServerFQDN */
430 rfr_dissect_RfrGetFQDNFromLegacyDN_response(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
434 pinfo
->dcerpc_procedure_name
="RfrGetFQDNFromLegacyDN";
435 offset
= rfr_dissect_element_RfrGetFQDNFromLegacyDN_ppszServerFQDN(tvb
, offset
, pinfo
, tree
, di
, drep
);
436 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
438 offset
= dissect_ndr_uint32(tvb
, offset
, pinfo
, tree
, di
, drep
, hf_rfr_MAPISTATUS_status
, &status
);
440 col_append_fstr(pinfo
->cinfo
, COL_INFO
, ", Status: %s", val_to_str(status
, rfr_MAPISTATUS_vals
, "Unknown MAPISTATUS error 0x%08x"));
446 rfr_dissect_RfrGetFQDNFromLegacyDN_request(tvbuff_t
*tvb _U_
, int offset _U_
, packet_info
*pinfo _U_
, proto_tree
*tree _U_
, dcerpc_info
* di _U_
, guint8
*drep _U_
)
448 pinfo
->dcerpc_procedure_name
="RfrGetFQDNFromLegacyDN";
449 offset
= rfr_dissect_element_RfrGetFQDNFromLegacyDN_ulFlags(tvb
, offset
, pinfo
, tree
, di
, drep
);
450 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
451 offset
= rfr_dissect_element_RfrGetFQDNFromLegacyDN_cbMailboxServerDN(tvb
, offset
, pinfo
, tree
, di
, drep
);
452 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
453 offset
= rfr_dissect_element_RfrGetFQDNFromLegacyDN_szMailboxServerDN(tvb
, offset
, pinfo
, tree
, di
, drep
);
454 offset
= dissect_deferred_pointers(pinfo
, tvb
, offset
, di
, drep
);
459 static dcerpc_sub_dissector rfr_dissectors
[] = {
461 rfr_dissect_RfrGetNewDSA_request
, rfr_dissect_RfrGetNewDSA_response
},
462 { 1, "RfrGetFQDNFromLegacyDN",
463 rfr_dissect_RfrGetFQDNFromLegacyDN_request
, rfr_dissect_RfrGetFQDNFromLegacyDN_response
},
464 { 0, NULL
, NULL
, NULL
}
467 void proto_register_dcerpc_rfr(void)
469 static hf_register_info hf
[] = {
470 { &hf_rfr_MAPISTATUS_status
,
471 { "MAPISTATUS", "rfr.MAPISTATUS_status", FT_UINT32
, BASE_HEX
, VALS(rfr_MAPISTATUS_vals
), 0, NULL
, HFILL
}},
472 { &hf_rfr_RfrGetFQDNFromLegacyDN_ulFlags
,
473 { "Ulflags", "rfr.RfrGetFQDNFromLegacyDN.ulFlags", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
474 { &hf_rfr_RfrGetFQDNFromLegacyDN_szMailboxServerDN
,
475 { "Szmailboxserverdn", "rfr.RfrGetFQDNFromLegacyDN.szMailboxServerDN", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
477 { "Operation", "rfr.opnum", FT_UINT16
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
478 { &hf_rfr_RfrGetNewDSA_ulFlags
,
479 { "Ulflags", "rfr.RfrGetNewDSA.ulFlags", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
480 { &hf_rfr_RfrGetFQDNFromLegacyDN_cbMailboxServerDN
,
481 { "Cbmailboxserverdn", "rfr.RfrGetFQDNFromLegacyDN.cbMailboxServerDN", FT_UINT32
, BASE_DEC
, NULL
, 0, NULL
, HFILL
}},
482 { &hf_rfr_RfrGetNewDSA_pUserDN
,
483 { "Puserdn", "rfr.RfrGetNewDSA.pUserDN", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
484 { &hf_rfr_RfrGetNewDSA_ppszUnused
,
485 { "Ppszunused", "rfr.RfrGetNewDSA.ppszUnused", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
486 { &hf_rfr_RfrGetNewDSA_ppszServer
,
487 { "Ppszserver", "rfr.RfrGetNewDSA.ppszServer", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
488 { &hf_rfr_RfrGetFQDNFromLegacyDN_ppszServerFQDN
,
489 { "Ppszserverfqdn", "rfr.RfrGetFQDNFromLegacyDN.ppszServerFQDN", FT_STRING
, BASE_NONE
, NULL
, 0, NULL
, HFILL
}},
493 static gint
*ett
[] = {
497 proto_dcerpc_rfr
= proto_register_protocol("Exchange 2003 Directory Request For Response", "RFR", "rfr");
498 proto_register_field_array(proto_dcerpc_rfr
, hf
, array_length (hf
));
499 proto_register_subtree_array(ett
, array_length(ett
));
502 void proto_reg_handoff_dcerpc_rfr(void)
504 dcerpc_init_uuid(proto_dcerpc_rfr
, ett_dcerpc_rfr
,
505 &uuid_dcerpc_rfr
, ver_dcerpc_rfr
,
506 rfr_dissectors
, hf_rfr_opnum
);