HACK: pinfo->private_data points to smb_info again
[wireshark-wip.git] / epan / dissectors / packet-dcerpc-wzcsvc.c
blob42fac9067f7aa9809e67150f1b7027bc1eb950e2
1 /* DO NOT EDIT
2 This filter was automatically generated
3 from wzcsvc.idl and wzcsvc.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
10 $Id$
14 #include "config.h"
15 #ifdef _MSC_VER
16 #pragma warning(disable:4005)
17 #pragma warning(disable:4013)
18 #pragma warning(disable:4018)
19 #pragma warning(disable:4101)
20 #endif
22 #include <glib.h>
23 #include <string.h>
24 #include <epan/packet.h>
26 #include "packet-dcerpc.h"
27 #include "packet-dcerpc-nt.h"
28 #include "packet-windows-common.h"
29 #include "packet-dcerpc-wzcsvc.h"
31 /* Ett declarations */
32 static gint ett_dcerpc_wzcsvc = -1;
35 /* Header field declarations */
36 static gint hf_wzcsvc_opnum = -1;
38 static gint proto_dcerpc_wzcsvc = -1;
39 /* Version information */
42 static e_uuid_t uuid_dcerpc_wzcsvc = {
43 0x621dff68, 0x3c39, 0x4c6c,
44 { 0xaa, 0xe3, 0xe6, 0x8e, 0x2c, 0x65, 0x03, 0xad }
46 static guint16 ver_dcerpc_wzcsvc = 1;
49 /* IDL: void wzcsvc_EnumInterfaces( */
50 /* IDL: */
51 /* IDL: ); */
53 static int
54 wzcsvc_dissect_EnumInterfaces_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
56 pinfo->dcerpc_procedure_name="EnumInterfaces";
57 return offset;
60 static int
61 wzcsvc_dissect_EnumInterfaces_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
63 pinfo->dcerpc_procedure_name="EnumInterfaces";
64 return offset;
67 /* IDL: void wzcsvc_QueryInterface( */
68 /* IDL: */
69 /* IDL: ); */
71 static int
72 wzcsvc_dissect_QueryInterface_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
74 pinfo->dcerpc_procedure_name="QueryInterface";
75 return offset;
78 static int
79 wzcsvc_dissect_QueryInterface_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
81 pinfo->dcerpc_procedure_name="QueryInterface";
82 return offset;
85 /* IDL: void wzcsvc_SetInterface( */
86 /* IDL: */
87 /* IDL: ); */
89 static int
90 wzcsvc_dissect_SetInterface_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
92 pinfo->dcerpc_procedure_name="SetInterface";
93 return offset;
96 static int
97 wzcsvc_dissect_SetInterface_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
99 pinfo->dcerpc_procedure_name="SetInterface";
100 return offset;
103 /* IDL: void wzcsvc_RefreshInterface( */
104 /* IDL: */
105 /* IDL: ); */
107 static int
108 wzcsvc_dissect_RefreshInterface_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
110 pinfo->dcerpc_procedure_name="RefreshInterface";
111 return offset;
114 static int
115 wzcsvc_dissect_RefreshInterface_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
117 pinfo->dcerpc_procedure_name="RefreshInterface";
118 return offset;
121 /* IDL: void wzcsvc_QueryContext( */
122 /* IDL: */
123 /* IDL: ); */
125 static int
126 wzcsvc_dissect_QueryContext_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
128 pinfo->dcerpc_procedure_name="QueryContext";
129 return offset;
132 static int
133 wzcsvc_dissect_QueryContext_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
135 pinfo->dcerpc_procedure_name="QueryContext";
136 return offset;
139 /* IDL: void wzcsvc_SetContext( */
140 /* IDL: */
141 /* IDL: ); */
143 static int
144 wzcsvc_dissect_SetContext_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
146 pinfo->dcerpc_procedure_name="SetContext";
147 return offset;
150 static int
151 wzcsvc_dissect_SetContext_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
153 pinfo->dcerpc_procedure_name="SetContext";
154 return offset;
157 /* IDL: void wzcsvc_EapolUIResponse( */
158 /* IDL: */
159 /* IDL: ); */
161 static int
162 wzcsvc_dissect_EapolUIResponse_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
164 pinfo->dcerpc_procedure_name="EapolUIResponse";
165 return offset;
168 static int
169 wzcsvc_dissect_EapolUIResponse_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
171 pinfo->dcerpc_procedure_name="EapolUIResponse";
172 return offset;
175 /* IDL: void wzcsvc_EapolGetCustomAuthData( */
176 /* IDL: */
177 /* IDL: ); */
179 static int
180 wzcsvc_dissect_EapolGetCustomAuthData_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
182 pinfo->dcerpc_procedure_name="EapolGetCustomAuthData";
183 return offset;
186 static int
187 wzcsvc_dissect_EapolGetCustomAuthData_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
189 pinfo->dcerpc_procedure_name="EapolGetCustomAuthData";
190 return offset;
193 /* IDL: void wzcsvc_EapolSetCustomAuthData( */
194 /* IDL: */
195 /* IDL: ); */
197 static int
198 wzcsvc_dissect_EapolSetCustomAuthData_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
200 pinfo->dcerpc_procedure_name="EapolSetCustomAuthData";
201 return offset;
204 static int
205 wzcsvc_dissect_EapolSetCustomAuthData_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
207 pinfo->dcerpc_procedure_name="EapolSetCustomAuthData";
208 return offset;
211 /* IDL: void wzcsvc_EapolGetInterfaceParams( */
212 /* IDL: */
213 /* IDL: ); */
215 static int
216 wzcsvc_dissect_EapolGetInterfaceParams_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
218 pinfo->dcerpc_procedure_name="EapolGetInterfaceParams";
219 return offset;
222 static int
223 wzcsvc_dissect_EapolGetInterfaceParams_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
225 pinfo->dcerpc_procedure_name="EapolGetInterfaceParams";
226 return offset;
229 /* IDL: void wzcsvc_EapolSetInterfaceParams( */
230 /* IDL: */
231 /* IDL: ); */
233 static int
234 wzcsvc_dissect_EapolSetInterfaceParams_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
236 pinfo->dcerpc_procedure_name="EapolSetInterfaceParams";
237 return offset;
240 static int
241 wzcsvc_dissect_EapolSetInterfaceParams_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
243 pinfo->dcerpc_procedure_name="EapolSetInterfaceParams";
244 return offset;
247 /* IDL: void wzcsvc_EapolReAuthenticateInterface( */
248 /* IDL: */
249 /* IDL: ); */
251 static int
252 wzcsvc_dissect_EapolReAuthenticateInterface_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
254 pinfo->dcerpc_procedure_name="EapolReAuthenticateInterface";
255 return offset;
258 static int
259 wzcsvc_dissect_EapolReAuthenticateInterface_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
261 pinfo->dcerpc_procedure_name="EapolReAuthenticateInterface";
262 return offset;
265 /* IDL: void wzcsvc_EapolQueryInterfaceState( */
266 /* IDL: */
267 /* IDL: ); */
269 static int
270 wzcsvc_dissect_EapolQueryInterfaceState_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
272 pinfo->dcerpc_procedure_name="EapolQueryInterfaceState";
273 return offset;
276 static int
277 wzcsvc_dissect_EapolQueryInterfaceState_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
279 pinfo->dcerpc_procedure_name="EapolQueryInterfaceState";
280 return offset;
283 /* IDL: void wzcsvc_OpenWZCDbLogSession( */
284 /* IDL: */
285 /* IDL: ); */
287 static int
288 wzcsvc_dissect_OpenWZCDbLogSession_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
290 pinfo->dcerpc_procedure_name="OpenWZCDbLogSession";
291 return offset;
294 static int
295 wzcsvc_dissect_OpenWZCDbLogSession_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
297 pinfo->dcerpc_procedure_name="OpenWZCDbLogSession";
298 return offset;
301 /* IDL: void wzcsvc_CloseWZCDbLogSession( */
302 /* IDL: */
303 /* IDL: ); */
305 static int
306 wzcsvc_dissect_CloseWZCDbLogSession_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
308 pinfo->dcerpc_procedure_name="CloseWZCDbLogSession";
309 return offset;
312 static int
313 wzcsvc_dissect_CloseWZCDbLogSession_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
315 pinfo->dcerpc_procedure_name="CloseWZCDbLogSession";
316 return offset;
319 /* IDL: void wzcsvc_EnumWZCDbLogRecords( */
320 /* IDL: */
321 /* IDL: ); */
323 static int
324 wzcsvc_dissect_EnumWZCDbLogRecords_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
326 pinfo->dcerpc_procedure_name="EnumWZCDbLogRecords";
327 return offset;
330 static int
331 wzcsvc_dissect_EnumWZCDbLogRecords_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
333 pinfo->dcerpc_procedure_name="EnumWZCDbLogRecords";
334 return offset;
337 /* IDL: void wzcsvc_FlushWZCdbLog( */
338 /* IDL: */
339 /* IDL: ); */
341 static int
342 wzcsvc_dissect_FlushWZCdbLog_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
344 pinfo->dcerpc_procedure_name="FlushWZCdbLog";
345 return offset;
348 static int
349 wzcsvc_dissect_FlushWZCdbLog_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
351 pinfo->dcerpc_procedure_name="FlushWZCdbLog";
352 return offset;
355 /* IDL: void wzcsvc_GetWZCDbLogRecord( */
356 /* IDL: */
357 /* IDL: ); */
359 static int
360 wzcsvc_dissect_GetWZCDbLogRecord_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
362 pinfo->dcerpc_procedure_name="GetWZCDbLogRecord";
363 return offset;
366 static int
367 wzcsvc_dissect_GetWZCDbLogRecord_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
369 pinfo->dcerpc_procedure_name="GetWZCDbLogRecord";
370 return offset;
374 static dcerpc_sub_dissector wzcsvc_dissectors[] = {
375 { 0, "EnumInterfaces",
376 wzcsvc_dissect_EnumInterfaces_request, wzcsvc_dissect_EnumInterfaces_response},
377 { 1, "QueryInterface",
378 wzcsvc_dissect_QueryInterface_request, wzcsvc_dissect_QueryInterface_response},
379 { 2, "SetInterface",
380 wzcsvc_dissect_SetInterface_request, wzcsvc_dissect_SetInterface_response},
381 { 3, "RefreshInterface",
382 wzcsvc_dissect_RefreshInterface_request, wzcsvc_dissect_RefreshInterface_response},
383 { 4, "QueryContext",
384 wzcsvc_dissect_QueryContext_request, wzcsvc_dissect_QueryContext_response},
385 { 5, "SetContext",
386 wzcsvc_dissect_SetContext_request, wzcsvc_dissect_SetContext_response},
387 { 6, "EapolUIResponse",
388 wzcsvc_dissect_EapolUIResponse_request, wzcsvc_dissect_EapolUIResponse_response},
389 { 7, "EapolGetCustomAuthData",
390 wzcsvc_dissect_EapolGetCustomAuthData_request, wzcsvc_dissect_EapolGetCustomAuthData_response},
391 { 8, "EapolSetCustomAuthData",
392 wzcsvc_dissect_EapolSetCustomAuthData_request, wzcsvc_dissect_EapolSetCustomAuthData_response},
393 { 9, "EapolGetInterfaceParams",
394 wzcsvc_dissect_EapolGetInterfaceParams_request, wzcsvc_dissect_EapolGetInterfaceParams_response},
395 { 10, "EapolSetInterfaceParams",
396 wzcsvc_dissect_EapolSetInterfaceParams_request, wzcsvc_dissect_EapolSetInterfaceParams_response},
397 { 11, "EapolReAuthenticateInterface",
398 wzcsvc_dissect_EapolReAuthenticateInterface_request, wzcsvc_dissect_EapolReAuthenticateInterface_response},
399 { 12, "EapolQueryInterfaceState",
400 wzcsvc_dissect_EapolQueryInterfaceState_request, wzcsvc_dissect_EapolQueryInterfaceState_response},
401 { 13, "OpenWZCDbLogSession",
402 wzcsvc_dissect_OpenWZCDbLogSession_request, wzcsvc_dissect_OpenWZCDbLogSession_response},
403 { 14, "CloseWZCDbLogSession",
404 wzcsvc_dissect_CloseWZCDbLogSession_request, wzcsvc_dissect_CloseWZCDbLogSession_response},
405 { 15, "EnumWZCDbLogRecords",
406 wzcsvc_dissect_EnumWZCDbLogRecords_request, wzcsvc_dissect_EnumWZCDbLogRecords_response},
407 { 16, "FlushWZCdbLog",
408 wzcsvc_dissect_FlushWZCdbLog_request, wzcsvc_dissect_FlushWZCdbLog_response},
409 { 17, "GetWZCDbLogRecord",
410 wzcsvc_dissect_GetWZCDbLogRecord_request, wzcsvc_dissect_GetWZCDbLogRecord_response},
411 { 0, NULL, NULL, NULL }
414 void proto_register_dcerpc_wzcsvc(void)
416 static hf_register_info hf[] = {
417 { &hf_wzcsvc_opnum,
418 { "Operation", "wzcsvc.opnum", FT_UINT16, BASE_DEC, NULL, 0, NULL, HFILL }},
422 static gint *ett[] = {
423 &ett_dcerpc_wzcsvc,
426 proto_dcerpc_wzcsvc = proto_register_protocol("Wireless Configuration Service", "WZCSVC", "wzcsvc");
427 proto_register_field_array(proto_dcerpc_wzcsvc, hf, array_length (hf));
428 proto_register_subtree_array(ett, array_length(ett));
431 void proto_reg_handoff_dcerpc_wzcsvc(void)
433 dcerpc_init_uuid(proto_dcerpc_wzcsvc, ett_dcerpc_wzcsvc,
434 &uuid_dcerpc_wzcsvc, ver_dcerpc_wzcsvc,
435 wzcsvc_dissectors, hf_wzcsvc_opnum);