2 This filter was automatically generated
3 from initshutdown.idl and initshutdown.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
18 #include <epan/packet.h>
20 #include "packet-dcerpc.h"
21 #include "packet-dcerpc-nt.h"
22 #include "packet-windows-common.h"
23 #include "packet-dcerpc-initshutdown.h"
25 /* Ett declarations */
26 static gint ett_dcerpc_initshutdown = -1;
27 static gint ett_initshutdown_initshutdown_String_sub = -1;
28 static gint ett_initshutdown_initshutdown_String = -1;
31 /* Header field declarations */
32 static gint hf_initshutdown_initshutdown_String_name_len = -1;
33 static gint hf_initshutdown_opnum = -1;
34 static gint hf_initshutdown_initshutdown_Init_hostname = -1;
35 static gint hf_initshutdown_initshutdown_String_sub_name = -1;
36 static gint hf_initshutdown_initshutdown_String_sub_name_size = -1;
37 static gint hf_initshutdown_initshutdown_InitEx_reason = -1;
38 static gint hf_initshutdown_initshutdown_InitEx_force_apps = -1;
39 static gint hf_initshutdown_initshutdown_InitEx_timeout = -1;
40 static gint hf_initshutdown_initshutdown_Init_timeout = -1;
41 static gint hf_initshutdown_initshutdown_String_name_size = -1;
42 static gint hf_initshutdown_initshutdown_Init_force_apps = -1;
43 static gint hf_initshutdown_initshutdown_InitEx_hostname = -1;
44 static gint hf_initshutdown_initshutdown_Init_reboot = -1;
45 static gint hf_initshutdown_initshutdown_InitEx_reboot = -1;
46 static gint hf_initshutdown_initshutdown_Init_message = -1;
47 static gint hf_initshutdown_werror = -1;
48 static gint hf_initshutdown_initshutdown_InitEx_message = -1;
49 static gint hf_initshutdown_initshutdown_Abort_server = -1;
50 static gint hf_initshutdown_initshutdown_String_name = -1;
52 static gint proto_dcerpc_initshutdown = -1;
53 /* Version information */
56 static e_uuid_t uuid_dcerpc_initshutdown = {
57 0x894de0c0, 0x0d55, 0x11d3,
58 { 0xa3, 0x22, 0x00, 0xc0, 0x4f, 0xa3, 0x21, 0xa1 }
60 static guint16 ver_dcerpc_initshutdown = 1;
62 static int initshutdown_dissect_element_String_sub_name_size(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
63 static int initshutdown_dissect_element_String_sub_name(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
64 static int initshutdown_dissect_element_String_name_len(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
65 static int initshutdown_dissect_element_String_name_size(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
66 static int initshutdown_dissect_element_String_name(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
67 static int initshutdown_dissect_element_String_name_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
68 static int initshutdown_dissect_element_Init_hostname(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
69 static int initshutdown_dissect_element_Init_hostname_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
70 static int initshutdown_dissect_element_Init_message(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
71 static int initshutdown_dissect_element_Init_message_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
72 static int initshutdown_dissect_element_Init_timeout(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
73 static int initshutdown_dissect_element_Init_force_apps(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
74 static int initshutdown_dissect_element_Init_reboot(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
75 static int initshutdown_dissect_element_Abort_server(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
76 static int initshutdown_dissect_element_Abort_server_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
77 static int initshutdown_dissect_element_InitEx_hostname(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
78 static int initshutdown_dissect_element_InitEx_hostname_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
79 static int initshutdown_dissect_element_InitEx_message(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
80 static int initshutdown_dissect_element_InitEx_message_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
81 static int initshutdown_dissect_element_InitEx_timeout(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
82 static int initshutdown_dissect_element_InitEx_force_apps(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
83 static int initshutdown_dissect_element_InitEx_reboot(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
84 static int initshutdown_dissect_element_InitEx_reason(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep);
86 /* IDL: typedef struct { */
87 /* IDL: [value(strlen_m_term(name))] uint32 name_size; */
88 /* IDL: [flag(LIBNDR_FLAG_STR_LEN4|LIBNDR_FLAG_STR_NOTERM)] string name; */
89 /* IDL: } initshutdown_String_sub; */
92 initshutdown_dissect_element_String_sub_name_size(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
94 offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_String_sub_name_size,NULL);
100 initshutdown_dissect_element_String_sub_name(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
107 initshutdown_dissect_struct_String_sub(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_)
109 proto_item *item = NULL;
110 proto_tree *tree = NULL;
118 item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE);
119 tree = proto_item_add_subtree(item, ett_initshutdown_initshutdown_String_sub);
122 offset = initshutdown_dissect_element_String_sub_name_size(tvb, offset, pinfo, tree, drep);
124 offset = initshutdown_dissect_element_String_sub_name(tvb, offset, pinfo, tree, drep);
127 proto_item_set_len(item, offset-old_offset);
132 /* IDL: typedef struct { */
133 /* IDL: [value(strlen_m(r->name->name)*2)] uint16 name_len; */
134 /* IDL: [value(strlen_m_term(r->name->name)*2)] uint16 name_size; */
135 /* IDL: [unique(1)] initshutdown_String_sub *name; */
136 /* IDL: } initshutdown_String; */
139 initshutdown_dissect_element_String_name_len(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
141 offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_String_name_len,NULL);
147 initshutdown_dissect_element_String_name_size(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
149 offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_String_name_size,NULL);
155 initshutdown_dissect_element_String_name(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
157 offset = dissect_ndr_embedded_pointer(tvb, offset, pinfo, tree, drep, initshutdown_dissect_element_String_name_, NDR_POINTER_UNIQUE, "Pointer to Name (initshutdown_String_sub)",hf_initshutdown_initshutdown_String_name);
163 initshutdown_dissect_element_String_name_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
165 offset = initshutdown_dissect_struct_String_sub(tvb,offset,pinfo,tree,drep,hf_initshutdown_initshutdown_String_name,0);
171 initshutdown_dissect_struct_String(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, guint8 *drep, int hf_index, guint32 param _U_)
173 proto_item *item = NULL;
174 proto_tree *tree = NULL;
182 item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE);
183 tree = proto_item_add_subtree(item, ett_initshutdown_initshutdown_String);
186 offset = initshutdown_dissect_element_String_name_len(tvb, offset, pinfo, tree, drep);
188 offset = initshutdown_dissect_element_String_name_size(tvb, offset, pinfo, tree, drep);
190 offset = initshutdown_dissect_element_String_name(tvb, offset, pinfo, tree, drep);
193 proto_item_set_len(item, offset-old_offset);
199 initshutdown_dissect_element_Init_hostname(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
201 offset = dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, drep, initshutdown_dissect_element_Init_hostname_, NDR_POINTER_UNIQUE, "Pointer to Hostname (uint16)",hf_initshutdown_initshutdown_Init_hostname);
207 initshutdown_dissect_element_Init_hostname_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
209 offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_Init_hostname,NULL);
215 initshutdown_dissect_element_Init_message(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
217 offset = dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, drep, initshutdown_dissect_element_Init_message_, NDR_POINTER_UNIQUE, "Pointer to Message (initshutdown_String)",hf_initshutdown_initshutdown_Init_message);
223 initshutdown_dissect_element_Init_message_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
225 offset = initshutdown_dissect_struct_String(tvb,offset,pinfo,tree,drep,hf_initshutdown_initshutdown_Init_message,0);
231 initshutdown_dissect_element_Init_timeout(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
233 offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_Init_timeout,NULL);
239 initshutdown_dissect_element_Init_force_apps(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
241 offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_Init_force_apps,NULL);
247 initshutdown_dissect_element_Init_reboot(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
249 offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_Init_reboot,NULL);
254 /* IDL: WERROR initshutdown_Init( */
255 /* IDL: [unique(1)] [in] uint16 *hostname, */
256 /* IDL: [unique(1)] [in] initshutdown_String *message, */
257 /* IDL: [in] uint32 timeout, */
258 /* IDL: [in] uint8 force_apps, */
259 /* IDL: [in] uint8 reboot */
263 initshutdown_dissect_Init_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, guint8 *drep _U_)
267 offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_werror, &status);
269 if (status != 0 && check_col(pinfo->cinfo, COL_INFO))
270 col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str(status, DOS_errors, "Unknown DOS error 0x%08x"));
276 initshutdown_dissect_Init_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, guint8 *drep _U_)
278 offset = initshutdown_dissect_element_Init_hostname(tvb, offset, pinfo, tree, drep);
279 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
280 offset = initshutdown_dissect_element_Init_message(tvb, offset, pinfo, tree, drep);
281 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
282 offset = initshutdown_dissect_element_Init_timeout(tvb, offset, pinfo, tree, drep);
283 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
284 offset = initshutdown_dissect_element_Init_force_apps(tvb, offset, pinfo, tree, drep);
285 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
286 offset = initshutdown_dissect_element_Init_reboot(tvb, offset, pinfo, tree, drep);
287 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
292 initshutdown_dissect_element_Abort_server(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
294 offset = dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, drep, initshutdown_dissect_element_Abort_server_, NDR_POINTER_UNIQUE, "Pointer to Server (uint16)",hf_initshutdown_initshutdown_Abort_server);
300 initshutdown_dissect_element_Abort_server_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
302 offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_Abort_server,NULL);
307 /* IDL: WERROR initshutdown_Abort( */
308 /* IDL: [unique(1)] [in] uint16 *server */
312 initshutdown_dissect_Abort_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, guint8 *drep _U_)
316 offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_werror, &status);
318 if (status != 0 && check_col(pinfo->cinfo, COL_INFO))
319 col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str(status, DOS_errors, "Unknown DOS error 0x%08x"));
325 initshutdown_dissect_Abort_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, guint8 *drep _U_)
327 offset = initshutdown_dissect_element_Abort_server(tvb, offset, pinfo, tree, drep);
328 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
333 initshutdown_dissect_element_InitEx_hostname(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
335 offset = dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, drep, initshutdown_dissect_element_InitEx_hostname_, NDR_POINTER_UNIQUE, "Pointer to Hostname (uint16)",hf_initshutdown_initshutdown_InitEx_hostname);
341 initshutdown_dissect_element_InitEx_hostname_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
343 offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_InitEx_hostname,NULL);
349 initshutdown_dissect_element_InitEx_message(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
351 offset = dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, drep, initshutdown_dissect_element_InitEx_message_, NDR_POINTER_UNIQUE, "Pointer to Message (initshutdown_String)",hf_initshutdown_initshutdown_InitEx_message);
357 initshutdown_dissect_element_InitEx_message_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
359 offset = initshutdown_dissect_struct_String(tvb,offset,pinfo,tree,drep,hf_initshutdown_initshutdown_InitEx_message,0);
365 initshutdown_dissect_element_InitEx_timeout(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
367 offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_InitEx_timeout,NULL);
373 initshutdown_dissect_element_InitEx_force_apps(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
375 offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_InitEx_force_apps,NULL);
381 initshutdown_dissect_element_InitEx_reboot(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
383 offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_InitEx_reboot,NULL);
389 initshutdown_dissect_element_InitEx_reason(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
391 offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_initshutdown_InitEx_reason,NULL);
396 /* IDL: WERROR initshutdown_InitEx( */
397 /* IDL: [unique(1)] [in] uint16 *hostname, */
398 /* IDL: [unique(1)] [in] initshutdown_String *message, */
399 /* IDL: [in] uint32 timeout, */
400 /* IDL: [in] uint8 force_apps, */
401 /* IDL: [in] uint8 reboot, */
402 /* IDL: [in] uint32 reason */
406 initshutdown_dissect_InitEx_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, guint8 *drep _U_)
410 offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_initshutdown_werror, &status);
412 if (status != 0 && check_col(pinfo->cinfo, COL_INFO))
413 col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: %s", val_to_str(status, DOS_errors, "Unknown DOS error 0x%08x"));
419 initshutdown_dissect_InitEx_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, guint8 *drep _U_)
421 offset = initshutdown_dissect_element_InitEx_hostname(tvb, offset, pinfo, tree, drep);
422 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
423 offset = initshutdown_dissect_element_InitEx_message(tvb, offset, pinfo, tree, drep);
424 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
425 offset = initshutdown_dissect_element_InitEx_timeout(tvb, offset, pinfo, tree, drep);
426 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
427 offset = initshutdown_dissect_element_InitEx_force_apps(tvb, offset, pinfo, tree, drep);
428 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
429 offset = initshutdown_dissect_element_InitEx_reboot(tvb, offset, pinfo, tree, drep);
430 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
431 offset = initshutdown_dissect_element_InitEx_reason(tvb, offset, pinfo, tree, drep);
432 offset = dissect_deferred_pointers(pinfo, tvb, offset, drep);
437 static dcerpc_sub_dissector initshutdown_dissectors[] = {
439 initshutdown_dissect_Init_request, initshutdown_dissect_Init_response},
441 initshutdown_dissect_Abort_request, initshutdown_dissect_Abort_response},
443 initshutdown_dissect_InitEx_request, initshutdown_dissect_InitEx_response},
444 { 0, NULL, NULL, NULL }
447 void proto_register_dcerpc_initshutdown(void)
449 static hf_register_info hf[] = {
450 { &hf_initshutdown_initshutdown_String_name_len,
451 { "Name Len", "initshutdown.initshutdown_String.name_len", FT_UINT16, BASE_DEC, NULL, 0, "", HFILL }},
452 { &hf_initshutdown_opnum,
453 { "Operation", "initshutdown.opnum", FT_UINT16, BASE_DEC, NULL, 0, "", HFILL }},
454 { &hf_initshutdown_initshutdown_Init_hostname,
455 { "Hostname", "initshutdown.initshutdown_Init.hostname", FT_UINT16, BASE_DEC, NULL, 0, "", HFILL }},
456 { &hf_initshutdown_initshutdown_String_sub_name,
457 { "Name", "initshutdown.initshutdown_String_sub.name", FT_NONE, BASE_HEX, NULL, 0, "", HFILL }},
458 { &hf_initshutdown_initshutdown_String_sub_name_size,
459 { "Name Size", "initshutdown.initshutdown_String_sub.name_size", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }},
460 { &hf_initshutdown_initshutdown_InitEx_reason,
461 { "Reason", "initshutdown.initshutdown_InitEx.reason", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }},
462 { &hf_initshutdown_initshutdown_InitEx_force_apps,
463 { "Force Apps", "initshutdown.initshutdown_InitEx.force_apps", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }},
464 { &hf_initshutdown_initshutdown_InitEx_timeout,
465 { "Timeout", "initshutdown.initshutdown_InitEx.timeout", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }},
466 { &hf_initshutdown_initshutdown_Init_timeout,
467 { "Timeout", "initshutdown.initshutdown_Init.timeout", FT_UINT32, BASE_DEC, NULL, 0, "", HFILL }},
468 { &hf_initshutdown_initshutdown_String_name_size,
469 { "Name Size", "initshutdown.initshutdown_String.name_size", FT_UINT16, BASE_DEC, NULL, 0, "", HFILL }},
470 { &hf_initshutdown_initshutdown_Init_force_apps,
471 { "Force Apps", "initshutdown.initshutdown_Init.force_apps", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }},
472 { &hf_initshutdown_initshutdown_InitEx_hostname,
473 { "Hostname", "initshutdown.initshutdown_InitEx.hostname", FT_UINT16, BASE_DEC, NULL, 0, "", HFILL }},
474 { &hf_initshutdown_initshutdown_Init_reboot,
475 { "Reboot", "initshutdown.initshutdown_Init.reboot", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }},
476 { &hf_initshutdown_initshutdown_InitEx_reboot,
477 { "Reboot", "initshutdown.initshutdown_InitEx.reboot", FT_UINT8, BASE_DEC, NULL, 0, "", HFILL }},
478 { &hf_initshutdown_initshutdown_Init_message,
479 { "Message", "initshutdown.initshutdown_Init.message", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }},
480 { &hf_initshutdown_werror,
481 { "Windows Error", "initshutdown.werror", FT_UINT32, BASE_HEX, VALS(DOS_errors), 0, "", HFILL }},
482 { &hf_initshutdown_initshutdown_InitEx_message,
483 { "Message", "initshutdown.initshutdown_InitEx.message", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }},
484 { &hf_initshutdown_initshutdown_Abort_server,
485 { "Server", "initshutdown.initshutdown_Abort.server", FT_UINT16, BASE_DEC, NULL, 0, "", HFILL }},
486 { &hf_initshutdown_initshutdown_String_name,
487 { "Name", "initshutdown.initshutdown_String.name", FT_NONE, BASE_NONE, NULL, 0, "", HFILL }},
491 static gint *ett[] = {
492 &ett_dcerpc_initshutdown,
493 &ett_initshutdown_initshutdown_String_sub,
494 &ett_initshutdown_initshutdown_String,
497 proto_dcerpc_initshutdown = proto_register_protocol("Init shutdown service", "INITSHUTDOWN", "initshutdown");
498 proto_register_field_array(proto_dcerpc_initshutdown, hf, array_length (hf));
499 proto_register_subtree_array(ett, array_length(ett));
502 void proto_reg_handoff_dcerpc_initshutdown(void)
504 dcerpc_init_uuid(proto_dcerpc_initshutdown, ett_dcerpc_initshutdown,
505 &uuid_dcerpc_initshutdown, ver_dcerpc_initshutdown,
506 initshutdown_dissectors, hf_initshutdown_opnum);