Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-dcerpc-butc.c
blob0f37abc57c25677aebf4be92ab9b82b46b0cd999
1 /* DO NOT EDIT
2 * This dissector is autogenerated
3 */
5 /* packet-dcerpc-butc.c
6 * Routines for BUTC packet disassembly
8 * Wireshark - Network traffic analyzer
9 * By Gerald Combs <gerald@wireshark.org>
10 * Copyright 1998 Gerald Combs
12 * SPDX-License-Identifier: GPL-2.0-or-later
15 #include "config.h"
17 #include <epan/packet.h>
18 #include <epan/tfs.h>
19 #include <wsutil/array.h>
20 #include "packet-dcerpc.h"
21 #include "packet-dcerpc-nt.h"
22 #include "packet-windows-common.h"
23 #include "packet-dcerpc-butc.h"
25 void proto_register_butc(void);
26 void proto_reg_handoff_butc(void);
28 static int proto_butc;
31 /* INCLUDED FILE : ETH_HF */
32 static int hf_butc_opnum;
33 static int hf_butc_rc;
34 static int hf_butc_Restore_flags_TC_RESTORE_CREATE;
35 static int hf_butc_Restore_flags_TC_RESTORE_INCR;
36 static int hf_butc_afsNetAddr_type;
37 static int hf_butc_afsNetAddr_data;
38 static int hf_butc_tc_dumpDesc_vid;
39 static int hf_butc_tc_dumpDesc_name;
40 static int hf_butc_tc_dumpDesc_partition;
41 static int hf_butc_tc_dumpDesc_date;
42 static int hf_butc_tc_dumpDesc_cloneDate;
43 static int hf_butc_tc_dumpDesc_hostAddr;
44 static int hf_butc_tc_dumpDesc_spare1;
45 static int hf_butc_tc_dumpDesc_spare2;
46 static int hf_butc_tc_dumpDesc_spare3;
47 static int hf_butc_tc_dumpDesc_spare4;
48 static int hf_butc_tc_restoreDesc_frag;
49 static int hf_butc_tc_restoreDesc_tapeName;
50 static int hf_butc_tc_restoreDesc_position;
51 static int hf_butc_tc_restoreDesc_origVid;
52 static int hf_butc_tc_restoreDesc_vid;
53 static int hf_butc_tc_restoreDesc_partition;
54 static int hf_butc_tc_restoreDesc_flags;
55 static int hf_butc_tc_restoreDesc_hostAddr;
56 static int hf_butc_tc_restoreDesc_realDumpId;
57 static int hf_butc_tc_restoreDesc_spare2;
58 static int hf_butc_tc_restoreDesc_spare3;
59 static int hf_butc_tc_restoreDesc_spare4;
60 static int hf_butc_tc_restoreDesc_oldName;
61 static int hf_butc_tc_restoreDesc_newName;
62 static int hf_butc_tc_dumpStat_dumpID;
63 static int hf_butc_tc_dumpStat_bytesDumped;
64 static int hf_butc_tc_dumpStat_volumeBeingDumped;
65 static int hf_butc_tc_dumpStat_numVolErrs;
66 static int hf_butc_tc_dumpStat_flags;
67 static int hf_butc_tc_dumpStat_spare1;
68 static int hf_butc_tc_dumpStat_spare2;
69 static int hf_butc_tc_dumpStat_spare3;
70 static int hf_butc_tc_dumpStat_spare4;
71 static int hf_butc_tc_tapeLabel_size;
72 static int hf_butc_tc_tapeLabel_size_ext;
73 static int hf_butc_tc_tapeLabel_spare1;
74 static int hf_butc_tc_tapeLabel_spare2;
75 static int hf_butc_tc_tapeLabel_spare3;
76 static int hf_butc_tc_tapeLabel_spare4;
77 static int hf_butc_tc_tapeLabel_nameLen;
78 static int hf_butc_tc_tapeLabel_name;
79 static int hf_butc_tc_tapeSet_id;
80 static int hf_butc_tc_tapeSet_tapeServer;
81 static int hf_butc_tc_tapeSet_format;
82 static int hf_butc_tc_tapeSet_maxTapes;
83 static int hf_butc_tc_tapeSet_a;
84 static int hf_butc_tc_tapeSet_b;
85 static int hf_butc_tc_tapeSet_expDate;
86 static int hf_butc_tc_tapeSet_expType;
87 static int hf_butc_tc_tapeSet_spare1;
88 static int hf_butc_tc_tapeSet_spare2;
89 static int hf_butc_tc_tapeSet_spare3;
90 static int hf_butc_tc_tapeSet_spare4;
91 static int hf_butc_tc_tcInfo_tcVersion;
92 static int hf_butc_tc_tcInfo_spare1;
93 static int hf_butc_tc_tcInfo_spare2;
94 static int hf_butc_tc_tcInfo_spare3;
95 static int hf_butc_tc_tcInfo_spare4;
96 static int hf_butc_tc_restoreArray_tc_restoreArray_len;
97 static int hf_butc_tc_restoreArray_tc_restoreArray_val;
98 static int hf_butc_tc_dumpArray_tc_dumpArray_len;
99 static int hf_butc_tc_dumpArray_tc_dumpArray;
100 static int hf_butc_tc_dumpInterface_dumpPath;
101 static int hf_butc_tc_dumpInterface_volumeSetName;
102 static int hf_butc_tc_dumpInterface_dumpName;
103 static int hf_butc_tc_dumpInterface_tapeSet;
104 static int hf_butc_tc_dumpInterface_parentDumpId;
105 static int hf_butc_tc_dumpInterface_dumpLevel;
106 static int hf_butc_tc_dumpInterface_spare1;
107 static int hf_butc_tc_dumpInterface_spare2;
108 static int hf_butc_tc_dumpInterface_spare3;
109 static int hf_butc_tc_dumpInterface_spare4;
110 static int hf_butc_tc_statusInfoSwitchVol_nKBytes;
111 static int hf_butc_tc_statusInfoSwitchVol_volumeName;
112 static int hf_butc_tc_statusInfoSwitchVol_volsFailed;
113 static int hf_butc_tc_statusInfoSwitchVol_spare1;
114 static int hf_butc_tc_statusInfoSwitchLabel_tapeLabel;
115 static int hf_butc_tc_statusInfoSwitchLabel_spare1;
116 static int hf_butc_tc_statusInfoSwitch_TCOP_NONE_none;
117 static int hf_butc_tc_statusInfoSwitch_TCOP_DUMP_vol;
118 static int hf_butc_tc_statusInfoSwitch_TCOP_RESTORE_vol;
119 static int hf_butc_tc_statusInfoSwitch_TCOP_LABELTAPE_label;
120 static int hf_butc_tc_statusInfoSwitch_TCOP_READLABEL_label;
121 static int hf_butc_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1;
122 static int hf_butc_tc_statusInfoSwitch_TCOP_STATUS_spare2;
123 static int hf_butc_tc_statusInfoSwitch_TCOP_SAVEDB_spare3;
124 static int hf_butc_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4;
125 static int hf_butc_tc_statusInfoSwitch_TCOP_SPARE_spare5;
126 static int hf_butc_tciStatusS_taskName;
127 static int hf_butc_tciStatusS_flags;
128 static int hf_butc_tciStatusS_lastPolled;
129 static int hf_butc_tciStatusS_info;
130 static int hf_butc_tciStatusS_taskId;
131 static int hf_butc_tciStatusS_spare2;
132 static int hf_butc_tciStatusS_spare3;
133 static int hf_butc_tciStatusS_spare4;
134 static int hf_butc_BUTC_PerformDump_tcdiPtr;
135 static int hf_butc_BUTC_PerformDump_dumps;
136 static int hf_butc_BUTC_PerformDump_dumpID;
137 static int hf_butc_BUTC_PerformRestore_dumpSetName;
138 static int hf_butc_BUTC_PerformRestore_restores;
139 static int hf_butc_BUTC_PerformRestore_dumpID;
140 static int hf_butc_BUTC_AbortDump_dumpID;
141 static int hf_butc_BUTC_LabelTape_label;
142 static int hf_butc_BUTC_LabelTape_taskId;
143 static int hf_butc_BUTC_ReadLabel_taskId;
144 static int hf_butc_BUTC_ScanDumps_addDbFlag;
145 static int hf_butc_BUTC_ScanDumps_taskId;
146 static int hf_butc_BUTC_TCInfo_tciptr;
147 static int hf_butc_BUTC_SaveDb_taskId;
148 static int hf_butc_BUTC_RestoreDb_taskId;
149 static int hf_butc_BUTC_EndStatus_taskId;
150 static int hf_butc_BUTC_GetStatus_taskId;
151 static int hf_butc_BUTC_GetStatus_statusPtr;
152 static int hf_butc_BUTC_RequestAbort_taskId;
153 static int hf_butc_BUTC_ScanStatus_taskId;
154 static int hf_butc_BUTC_ScanStatus_statusPtr;
155 static int hf_butc_BUTC_ScanStatus_flags;
156 /* END OF INCLUDED FILE : ETH_HF */
162 /* INCLUDED FILE : ETH_ETT */
163 static int ett_butc;
164 static int ett_butc_Restore_flags;
165 static int ett_butc_afsNetAddr;
166 static int ett_butc_tc_dumpDesc;
167 static int ett_butc_tc_restoreDesc;
168 static int ett_butc_tc_dumpStat;
169 static int ett_butc_tc_tapeLabel;
170 static int ett_butc_tc_tapeSet;
171 static int ett_butc_tc_tcInfo;
172 static int ett_butc_tc_restoreArray;
173 static int ett_butc_tc_dumpArray;
174 static int ett_butc_tc_dumpInterface;
175 static int ett_butc_tc_statusInfoSwitchVol;
176 static int ett_butc_tc_statusInfoSwitchLabel;
177 static int ett_butc_tc_statusInfoSwitch;
178 static int ett_butc_tciStatusS;
179 /* END OF INCLUDED FILE : ETH_ETT */
183 static int
184 butc_dissect_NameString_t(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep, int hf_index, uint32_t param _U_)
186 offset=dissect_ndr_vstring(tvb, offset, pinfo, tree, di, drep, 1, hf_index, false, NULL);
187 return offset;
192 /* INCLUDED FILE : ETH_CODE */
193 static e_guid_t uuid_dcerpc_butc = {
194 0x1d193c08, 0x000b, 0x11ca,
195 { 0xba, 0x1d, 0x02, 0x60, 0x8c, 0x2e, 0xa9, 0x6e}
198 static uint16_t ver_butc = 4;
200 static const true_false_string TC_RESTORE_CREATE_tfs = {
201 "TC_RESTORE_CREATE is SET",
202 "TC_RESTORE_CREATE is NOT set"
205 static const true_false_string TC_RESTORE_INCR_tfs = {
206 "TC_RESTORE_INCR is SET",
207 "TC_RESTORE_INCR is NOT set"
212 butc_dissect_Restore_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, uint8_t *drep, int hf_index, uint32_t param _U_)
214 proto_item *item=NULL;
215 proto_tree *tree=NULL;
216 uint32_t flags;
218 ALIGN_TO_4_BYTES;
220 if(parent_tree){
221 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
222 tree=proto_item_add_subtree(item, ett_butc_Restore_flags);
225 offset=dissect_ndr_uint32(tvb, offset, pinfo, NULL, di, drep, -1, &flags);
228 proto_tree_add_boolean(tree, hf_butc_Restore_flags_TC_RESTORE_CREATE, tvb, offset-4, 4, flags);
229 if(flags&0x00000001){
230 proto_item_append_text(item, " TC_RESTORE_CREATE");
232 flags&=(~0x00000001);
234 proto_tree_add_boolean(tree, hf_butc_Restore_flags_TC_RESTORE_INCR, tvb, offset-4, 4, flags);
235 if(flags&0x00000002){
236 proto_item_append_text(item, " TC_RESTORE_INCR");
238 flags&=(~0x00000002);
240 if(flags){
241 proto_item_append_text(item, "UNKNOWN-FLAGS");
244 return offset;
247 static int
248 butc_dissect_uint16(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep, int hf_index, uint32_t param _U_)
250 offset=dissect_ndr_uint16(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
251 return offset;
254 static int
255 butc_dissect_afsNetAddr_type(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
257 uint32_t param=0;
258 offset=butc_dissect_uint16(tvb, offset, pinfo, tree, di, drep, hf_butc_afsNetAddr_type, param);
259 return offset;
263 static int
264 butc_dissect_uint8(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep, int hf_index, uint32_t param _U_)
266 offset=dissect_ndr_uint8(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
267 return offset;
270 static int
271 butc_dissect_afsNetAddr_data(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
273 uint32_t param=0;
274 offset=butc_dissect_uint8(tvb, offset, pinfo, tree, di, drep, hf_butc_afsNetAddr_data, param);
275 return offset;
278 static int
279 fixedarray_butc_dissect_afsNetAddr_data(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
281 int count=14;
282 while(count--){
283 offset=butc_dissect_afsNetAddr_data(tvb, offset, pinfo, tree, di, drep);
286 return offset;
291 butc_dissect_afsNetAddr(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
293 proto_item *item=NULL;
294 proto_tree *tree=NULL;
295 int old_offset;
297 ALIGN_TO_2_BYTES;
299 old_offset=offset;
300 if(parent_tree){
301 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
302 tree=proto_item_add_subtree(item, ett_butc_afsNetAddr);
305 offset=butc_dissect_afsNetAddr_type(tvb, offset, pinfo, tree, di, drep);
307 offset=fixedarray_butc_dissect_afsNetAddr_data(tvb, offset, pinfo, tree, di, drep);
309 proto_item_set_len(item, offset-old_offset);
311 return offset;
314 static int
315 butc_dissect_udlong(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep, int hf_index, uint32_t param _U_)
318 offset=dissect_ndr_duint32(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
320 return offset;
323 static int
324 butc_dissect_tc_dumpDesc_vid(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
326 uint32_t param=0;
327 offset=butc_dissect_udlong(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_vid, param);
328 return offset;
331 static int
332 butc_dissect_tc_dumpDesc_name(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
334 uint32_t param=0;
335 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_name, param);
336 return offset;
340 static int
341 butc_dissect_int32(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep, int hf_index, uint32_t param _U_)
343 offset=dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
344 return offset;
347 static int
348 butc_dissect_tc_dumpDesc_partition(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
350 uint32_t param=0;
351 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_partition, param);
352 return offset;
356 static int
357 butc_dissect_time_t(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep, int hf_index, uint32_t param _U_)
360 offset=dissect_ndr_time_t(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
362 return offset;
365 static int
366 butc_dissect_tc_dumpDesc_date(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
368 uint32_t param=0;
369 offset=butc_dissect_time_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_date, param);
370 return offset;
373 static int
374 butc_dissect_tc_dumpDesc_cloneDate(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
376 uint32_t param=0;
377 offset=butc_dissect_time_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_cloneDate, param);
378 return offset;
381 static int
382 butc_dissect_tc_dumpDesc_hostAddr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
384 uint32_t param=0;
385 offset=butc_dissect_afsNetAddr(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_hostAddr, param);
386 return offset;
390 static int
391 butc_dissect_uint32(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep, int hf_index, uint32_t param _U_)
393 offset=dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
394 return offset;
397 static int
398 butc_dissect_tc_dumpDesc_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
400 uint32_t param=0;
401 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_spare1, param);
402 return offset;
405 static int
406 butc_dissect_tc_dumpDesc_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
408 uint32_t param=0;
409 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_spare2, param);
410 return offset;
413 static int
414 butc_dissect_tc_dumpDesc_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
416 uint32_t param=0;
417 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_spare3, param);
418 return offset;
421 static int
422 butc_dissect_tc_dumpDesc_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
424 uint32_t param=0;
425 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_spare4, param);
426 return offset;
431 butc_dissect_tc_dumpDesc(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
433 proto_item *item=NULL;
434 proto_tree *tree=NULL;
435 int old_offset;
437 ALIGN_TO_4_BYTES;
439 old_offset=offset;
440 if(parent_tree){
441 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
442 tree=proto_item_add_subtree(item, ett_butc_tc_dumpDesc);
445 offset=butc_dissect_tc_dumpDesc_vid(tvb, offset, pinfo, tree, di, drep);
447 offset=butc_dissect_tc_dumpDesc_name(tvb, offset, pinfo, tree, di, drep);
449 offset=butc_dissect_tc_dumpDesc_partition(tvb, offset, pinfo, tree, di, drep);
451 offset=butc_dissect_tc_dumpDesc_date(tvb, offset, pinfo, tree, di, drep);
453 offset=butc_dissect_tc_dumpDesc_cloneDate(tvb, offset, pinfo, tree, di, drep);
455 offset=butc_dissect_tc_dumpDesc_hostAddr(tvb, offset, pinfo, tree, di, drep);
457 offset=butc_dissect_tc_dumpDesc_spare1(tvb, offset, pinfo, tree, di, drep);
459 offset=butc_dissect_tc_dumpDesc_spare2(tvb, offset, pinfo, tree, di, drep);
461 offset=butc_dissect_tc_dumpDesc_spare3(tvb, offset, pinfo, tree, di, drep);
463 offset=butc_dissect_tc_dumpDesc_spare4(tvb, offset, pinfo, tree, di, drep);
465 proto_item_set_len(item, offset-old_offset);
467 return offset;
469 static int
470 butc_dissect_tc_restoreDesc_frag(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
472 uint32_t param=0;
473 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_frag, param);
474 return offset;
477 static int
478 butc_dissect_tc_restoreDesc_tapeName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
480 uint32_t param=0;
481 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_tapeName, param);
482 return offset;
485 static int
486 butc_dissect_tc_restoreDesc_position(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
488 uint32_t param=0;
489 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_position, param);
490 return offset;
493 static int
494 butc_dissect_tc_restoreDesc_origVid(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
496 uint32_t param=0;
497 offset=butc_dissect_udlong(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_origVid, param);
498 return offset;
501 static int
502 butc_dissect_tc_restoreDesc_vid(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
504 uint32_t param=0;
505 offset=butc_dissect_udlong(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_vid, param);
506 return offset;
509 static int
510 butc_dissect_tc_restoreDesc_partition(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
512 uint32_t param=0;
513 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_partition, param);
514 return offset;
517 static int
518 butc_dissect_tc_restoreDesc_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
520 uint32_t param=0;
521 offset=butc_dissect_Restore_flags(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_flags, param);
522 return offset;
525 static int
526 butc_dissect_tc_restoreDesc_hostAddr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
528 uint32_t param=0;
529 offset=butc_dissect_afsNetAddr(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_hostAddr, param);
530 return offset;
533 static int
534 butc_dissect_tc_restoreDesc_realDumpId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
536 uint32_t param=0;
537 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_realDumpId, param);
538 return offset;
541 static int
542 butc_dissect_tc_restoreDesc_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
544 uint32_t param=0;
545 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_spare2, param);
546 return offset;
549 static int
550 butc_dissect_tc_restoreDesc_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
552 uint32_t param=0;
553 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_spare3, param);
554 return offset;
557 static int
558 butc_dissect_tc_restoreDesc_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
560 uint32_t param=0;
561 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_spare4, param);
562 return offset;
565 static int
566 butc_dissect_tc_restoreDesc_oldName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
568 uint32_t param=0;
569 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_oldName, param);
570 return offset;
573 static int
574 butc_dissect_tc_restoreDesc_newName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
576 uint32_t param=0;
577 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_newName, param);
578 return offset;
583 butc_dissect_tc_restoreDesc(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
585 proto_item *item=NULL;
586 proto_tree *tree=NULL;
587 int old_offset;
589 ALIGN_TO_4_BYTES;
591 old_offset=offset;
592 if(parent_tree){
593 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
594 tree=proto_item_add_subtree(item, ett_butc_tc_restoreDesc);
597 offset=butc_dissect_tc_restoreDesc_frag(tvb, offset, pinfo, tree, di, drep);
599 offset=butc_dissect_tc_restoreDesc_tapeName(tvb, offset, pinfo, tree, di, drep);
601 offset=butc_dissect_tc_restoreDesc_position(tvb, offset, pinfo, tree, di, drep);
603 offset=butc_dissect_tc_restoreDesc_origVid(tvb, offset, pinfo, tree, di, drep);
605 offset=butc_dissect_tc_restoreDesc_vid(tvb, offset, pinfo, tree, di, drep);
607 offset=butc_dissect_tc_restoreDesc_partition(tvb, offset, pinfo, tree, di, drep);
609 offset=butc_dissect_tc_restoreDesc_flags(tvb, offset, pinfo, tree, di, drep);
611 offset=butc_dissect_tc_restoreDesc_hostAddr(tvb, offset, pinfo, tree, di, drep);
613 offset=butc_dissect_tc_restoreDesc_realDumpId(tvb, offset, pinfo, tree, di, drep);
615 offset=butc_dissect_tc_restoreDesc_spare2(tvb, offset, pinfo, tree, di, drep);
617 offset=butc_dissect_tc_restoreDesc_spare3(tvb, offset, pinfo, tree, di, drep);
619 offset=butc_dissect_tc_restoreDesc_spare4(tvb, offset, pinfo, tree, di, drep);
621 offset=butc_dissect_tc_restoreDesc_oldName(tvb, offset, pinfo, tree, di, drep);
623 offset=butc_dissect_tc_restoreDesc_newName(tvb, offset, pinfo, tree, di, drep);
625 proto_item_set_len(item, offset-old_offset);
627 return offset;
629 static int
630 butc_dissect_tc_dumpStat_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
632 uint32_t param=0;
633 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_dumpID, param);
634 return offset;
637 static int
638 butc_dissect_tc_dumpStat_bytesDumped(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
640 uint32_t param=0;
641 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_bytesDumped, param);
642 return offset;
645 static int
646 butc_dissect_tc_dumpStat_volumeBeingDumped(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
648 uint32_t param=0;
649 offset=butc_dissect_udlong(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_volumeBeingDumped, param);
650 return offset;
653 static int
654 butc_dissect_tc_dumpStat_numVolErrs(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
656 uint32_t param=0;
657 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_numVolErrs, param);
658 return offset;
661 static int
662 butc_dissect_tc_dumpStat_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
664 uint32_t param=0;
665 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_flags, param);
666 return offset;
669 static int
670 butc_dissect_tc_dumpStat_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
672 uint32_t param=0;
673 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_spare1, param);
674 return offset;
677 static int
678 butc_dissect_tc_dumpStat_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
680 uint32_t param=0;
681 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_spare2, param);
682 return offset;
685 static int
686 butc_dissect_tc_dumpStat_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
688 uint32_t param=0;
689 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_spare3, param);
690 return offset;
693 static int
694 butc_dissect_tc_dumpStat_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
696 uint32_t param=0;
697 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_spare4, param);
698 return offset;
703 butc_dissect_tc_dumpStat(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
705 proto_item *item=NULL;
706 proto_tree *tree=NULL;
707 int old_offset;
709 ALIGN_TO_4_BYTES;
711 old_offset=offset;
712 if(parent_tree){
713 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
714 tree=proto_item_add_subtree(item, ett_butc_tc_dumpStat);
717 offset=butc_dissect_tc_dumpStat_dumpID(tvb, offset, pinfo, tree, di, drep);
719 offset=butc_dissect_tc_dumpStat_bytesDumped(tvb, offset, pinfo, tree, di, drep);
721 offset=butc_dissect_tc_dumpStat_volumeBeingDumped(tvb, offset, pinfo, tree, di, drep);
723 offset=butc_dissect_tc_dumpStat_numVolErrs(tvb, offset, pinfo, tree, di, drep);
725 offset=butc_dissect_tc_dumpStat_flags(tvb, offset, pinfo, tree, di, drep);
727 offset=butc_dissect_tc_dumpStat_spare1(tvb, offset, pinfo, tree, di, drep);
729 offset=butc_dissect_tc_dumpStat_spare2(tvb, offset, pinfo, tree, di, drep);
731 offset=butc_dissect_tc_dumpStat_spare3(tvb, offset, pinfo, tree, di, drep);
733 offset=butc_dissect_tc_dumpStat_spare4(tvb, offset, pinfo, tree, di, drep);
735 proto_item_set_len(item, offset-old_offset);
737 return offset;
739 static int
740 butc_dissect_tc_tapeLabel_size(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
742 uint32_t param=0;
743 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_size, param);
744 return offset;
747 static int
748 butc_dissect_tc_tapeLabel_size_ext(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
750 uint32_t param=0;
751 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_size_ext, param);
752 return offset;
755 static int
756 butc_dissect_tc_tapeLabel_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
758 uint32_t param=0;
759 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_spare1, param);
760 return offset;
763 static int
764 butc_dissect_tc_tapeLabel_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
766 uint32_t param=0;
767 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_spare2, param);
768 return offset;
771 static int
772 butc_dissect_tc_tapeLabel_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
774 uint32_t param=0;
775 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_spare3, param);
776 return offset;
779 static int
780 butc_dissect_tc_tapeLabel_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
782 uint32_t param=0;
783 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_spare4, param);
784 return offset;
787 static int
788 butc_dissect_tc_tapeLabel_nameLen(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
790 uint32_t param=0;
791 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_nameLen, param);
792 return offset;
795 static int
796 butc_dissect_tc_tapeLabel_name(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
798 uint32_t param=0;
799 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_name, param);
800 return offset;
805 butc_dissect_tc_tapeLabel(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
807 proto_item *item=NULL;
808 proto_tree *tree=NULL;
809 int old_offset;
811 ALIGN_TO_4_BYTES;
813 old_offset=offset;
814 if(parent_tree){
815 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
816 tree=proto_item_add_subtree(item, ett_butc_tc_tapeLabel);
819 offset=butc_dissect_tc_tapeLabel_size(tvb, offset, pinfo, tree, di, drep);
821 offset=butc_dissect_tc_tapeLabel_size_ext(tvb, offset, pinfo, tree, di, drep);
823 offset=butc_dissect_tc_tapeLabel_spare1(tvb, offset, pinfo, tree, di, drep);
825 offset=butc_dissect_tc_tapeLabel_spare2(tvb, offset, pinfo, tree, di, drep);
827 offset=butc_dissect_tc_tapeLabel_spare3(tvb, offset, pinfo, tree, di, drep);
829 offset=butc_dissect_tc_tapeLabel_spare4(tvb, offset, pinfo, tree, di, drep);
831 offset=butc_dissect_tc_tapeLabel_nameLen(tvb, offset, pinfo, tree, di, drep);
833 offset=butc_dissect_tc_tapeLabel_name(tvb, offset, pinfo, tree, di, drep);
835 proto_item_set_len(item, offset-old_offset);
837 return offset;
839 static int
840 butc_dissect_tc_tapeSet_id(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
842 uint32_t param=0;
843 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_id, param);
844 return offset;
847 static int
848 butc_dissect_tc_tapeSet_tapeServer(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
850 uint32_t param=0;
851 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_tapeServer, param);
852 return offset;
855 static int
856 butc_dissect_tc_tapeSet_format(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
858 uint32_t param=0;
859 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_format, param);
860 return offset;
863 static int
864 butc_dissect_tc_tapeSet_maxTapes(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
866 uint32_t param=0;
867 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_maxTapes, param);
868 return offset;
871 static int
872 butc_dissect_tc_tapeSet_a(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
874 uint32_t param=0;
875 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_a, param);
876 return offset;
879 static int
880 butc_dissect_tc_tapeSet_b(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
882 uint32_t param=0;
883 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_b, param);
884 return offset;
887 static int
888 butc_dissect_tc_tapeSet_expDate(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
890 uint32_t param=0;
891 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_expDate, param);
892 return offset;
895 static int
896 butc_dissect_tc_tapeSet_expType(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
898 uint32_t param=0;
899 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_expType, param);
900 return offset;
903 static int
904 butc_dissect_tc_tapeSet_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
906 uint32_t param=0;
907 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_spare1, param);
908 return offset;
911 static int
912 butc_dissect_tc_tapeSet_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
914 uint32_t param=0;
915 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_spare2, param);
916 return offset;
919 static int
920 butc_dissect_tc_tapeSet_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
922 uint32_t param=0;
923 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_spare3, param);
924 return offset;
927 static int
928 butc_dissect_tc_tapeSet_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
930 uint32_t param=0;
931 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_spare4, param);
932 return offset;
937 butc_dissect_tc_tapeSet(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
939 proto_item *item=NULL;
940 proto_tree *tree=NULL;
941 int old_offset;
943 ALIGN_TO_4_BYTES;
945 old_offset=offset;
946 if(parent_tree){
947 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
948 tree=proto_item_add_subtree(item, ett_butc_tc_tapeSet);
951 offset=butc_dissect_tc_tapeSet_id(tvb, offset, pinfo, tree, di, drep);
953 offset=butc_dissect_tc_tapeSet_tapeServer(tvb, offset, pinfo, tree, di, drep);
955 offset=butc_dissect_tc_tapeSet_format(tvb, offset, pinfo, tree, di, drep);
957 offset=butc_dissect_tc_tapeSet_maxTapes(tvb, offset, pinfo, tree, di, drep);
959 offset=butc_dissect_tc_tapeSet_a(tvb, offset, pinfo, tree, di, drep);
961 offset=butc_dissect_tc_tapeSet_b(tvb, offset, pinfo, tree, di, drep);
963 offset=butc_dissect_tc_tapeSet_expDate(tvb, offset, pinfo, tree, di, drep);
965 offset=butc_dissect_tc_tapeSet_expType(tvb, offset, pinfo, tree, di, drep);
967 offset=butc_dissect_tc_tapeSet_spare1(tvb, offset, pinfo, tree, di, drep);
969 offset=butc_dissect_tc_tapeSet_spare2(tvb, offset, pinfo, tree, di, drep);
971 offset=butc_dissect_tc_tapeSet_spare3(tvb, offset, pinfo, tree, di, drep);
973 offset=butc_dissect_tc_tapeSet_spare4(tvb, offset, pinfo, tree, di, drep);
975 proto_item_set_len(item, offset-old_offset);
977 return offset;
979 static int
980 butc_dissect_tc_tcInfo_tcVersion(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
982 uint32_t param=0;
983 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_tcVersion, param);
984 return offset;
987 static int
988 butc_dissect_tc_tcInfo_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
990 uint32_t param=0;
991 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_spare1, param);
992 return offset;
995 static int
996 butc_dissect_tc_tcInfo_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
998 uint32_t param=0;
999 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_spare2, param);
1000 return offset;
1003 static int
1004 butc_dissect_tc_tcInfo_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1006 uint32_t param=0;
1007 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_spare3, param);
1008 return offset;
1011 static int
1012 butc_dissect_tc_tcInfo_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1014 uint32_t param=0;
1015 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_spare4, param);
1016 return offset;
1021 butc_dissect_tc_tcInfo(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
1023 proto_item *item=NULL;
1024 proto_tree *tree=NULL;
1025 int old_offset;
1027 ALIGN_TO_4_BYTES;
1029 old_offset=offset;
1030 if(parent_tree){
1031 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1032 tree=proto_item_add_subtree(item, ett_butc_tc_tcInfo);
1035 offset=butc_dissect_tc_tcInfo_tcVersion(tvb, offset, pinfo, tree, di, drep);
1037 offset=butc_dissect_tc_tcInfo_spare1(tvb, offset, pinfo, tree, di, drep);
1039 offset=butc_dissect_tc_tcInfo_spare2(tvb, offset, pinfo, tree, di, drep);
1041 offset=butc_dissect_tc_tcInfo_spare3(tvb, offset, pinfo, tree, di, drep);
1043 offset=butc_dissect_tc_tcInfo_spare4(tvb, offset, pinfo, tree, di, drep);
1045 proto_item_set_len(item, offset-old_offset);
1047 return offset;
1049 static int
1050 butc_dissect_tc_restoreArray_tc_restoreArray_len(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1052 uint32_t param=0;
1053 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreArray_tc_restoreArray_len, param);
1054 return offset;
1057 static int
1058 butc_dissect_tc_restoreArray_tc_restoreArray_val(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1060 uint32_t param=0;
1061 offset=butc_dissect_tc_restoreDesc(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreArray_tc_restoreArray_val, param);
1062 return offset;
1065 static int
1066 ptr_butc_dissect_tc_restoreArray_tc_restoreArray_val(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1068 offset=dissect_ndr_embedded_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_tc_restoreArray_tc_restoreArray_val, NDR_POINTER_PTR, "tc_restoreArray_val", -1);
1069 return offset;
1072 static int
1073 ucarray_ptr_butc_dissect_tc_restoreArray_tc_restoreArray_val(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1075 offset=dissect_ndr_ucarray(tvb, offset, pinfo, tree, di, drep, ptr_butc_dissect_tc_restoreArray_tc_restoreArray_val);
1076 return offset;
1081 butc_dissect_tc_restoreArray(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
1083 proto_item *item=NULL;
1084 proto_tree *tree=NULL;
1085 int old_offset;
1087 ALIGN_TO_4_BYTES;
1089 old_offset=offset;
1090 if(parent_tree){
1091 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1092 tree=proto_item_add_subtree(item, ett_butc_tc_restoreArray);
1095 offset=butc_dissect_tc_restoreArray_tc_restoreArray_len(tvb, offset, pinfo, tree, di, drep);
1097 offset=ucarray_ptr_butc_dissect_tc_restoreArray_tc_restoreArray_val(tvb, offset, pinfo, tree, di, drep);
1099 proto_item_set_len(item, offset-old_offset);
1101 return offset;
1103 static int
1104 butc_dissect_tc_dumpArray_tc_dumpArray_len(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1106 uint32_t param=0;
1107 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpArray_tc_dumpArray_len, param);
1108 return offset;
1111 static int
1112 butc_dissect_tc_dumpArray_tc_dumpArray(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1114 uint32_t param=0;
1115 offset=butc_dissect_tc_dumpDesc(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpArray_tc_dumpArray, param);
1116 return offset;
1119 static int
1120 ptr_butc_dissect_tc_dumpArray_tc_dumpArray(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1122 offset=dissect_ndr_embedded_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_tc_dumpArray_tc_dumpArray, NDR_POINTER_PTR, "tc_dumpArray", -1);
1123 return offset;
1126 static int
1127 ucarray_ptr_butc_dissect_tc_dumpArray_tc_dumpArray(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1129 offset=dissect_ndr_ucarray(tvb, offset, pinfo, tree, di, drep, ptr_butc_dissect_tc_dumpArray_tc_dumpArray);
1130 return offset;
1135 butc_dissect_tc_dumpArray(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
1137 proto_item *item=NULL;
1138 proto_tree *tree=NULL;
1139 int old_offset;
1141 ALIGN_TO_4_BYTES;
1143 old_offset=offset;
1144 if(parent_tree){
1145 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1146 tree=proto_item_add_subtree(item, ett_butc_tc_dumpArray);
1149 offset=butc_dissect_tc_dumpArray_tc_dumpArray_len(tvb, offset, pinfo, tree, di, drep);
1151 offset=ucarray_ptr_butc_dissect_tc_dumpArray_tc_dumpArray(tvb, offset, pinfo, tree, di, drep);
1153 proto_item_set_len(item, offset-old_offset);
1155 return offset;
1157 static int
1158 butc_dissect_tc_dumpInterface_dumpPath(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1160 uint32_t param=0;
1161 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_dumpPath, param);
1162 return offset;
1165 static int
1166 butc_dissect_tc_dumpInterface_volumeSetName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1168 uint32_t param=0;
1169 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_volumeSetName, param);
1170 return offset;
1173 static int
1174 butc_dissect_tc_dumpInterface_dumpName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1176 uint32_t param=0;
1177 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_dumpName, param);
1178 return offset;
1181 static int
1182 butc_dissect_tc_dumpInterface_tapeSet(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1184 uint32_t param=0;
1185 offset=butc_dissect_tc_tapeSet(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_tapeSet, param);
1186 return offset;
1189 static int
1190 butc_dissect_tc_dumpInterface_parentDumpId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1192 uint32_t param=0;
1193 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_parentDumpId, param);
1194 return offset;
1197 static int
1198 butc_dissect_tc_dumpInterface_dumpLevel(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1200 uint32_t param=0;
1201 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_dumpLevel, param);
1202 return offset;
1205 static int
1206 butc_dissect_tc_dumpInterface_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1208 uint32_t param=0;
1209 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_spare1, param);
1210 return offset;
1213 static int
1214 butc_dissect_tc_dumpInterface_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1216 uint32_t param=0;
1217 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_spare2, param);
1218 return offset;
1221 static int
1222 butc_dissect_tc_dumpInterface_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1224 uint32_t param=0;
1225 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_spare3, param);
1226 return offset;
1229 static int
1230 butc_dissect_tc_dumpInterface_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1232 uint32_t param=0;
1233 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_spare4, param);
1234 return offset;
1239 butc_dissect_tc_dumpInterface(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
1241 proto_item *item=NULL;
1242 proto_tree *tree=NULL;
1243 int old_offset;
1245 ALIGN_TO_4_BYTES;
1247 old_offset=offset;
1248 if(parent_tree){
1249 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1250 tree=proto_item_add_subtree(item, ett_butc_tc_dumpInterface);
1253 offset=butc_dissect_tc_dumpInterface_dumpPath(tvb, offset, pinfo, tree, di, drep);
1255 offset=butc_dissect_tc_dumpInterface_volumeSetName(tvb, offset, pinfo, tree, di, drep);
1257 offset=butc_dissect_tc_dumpInterface_dumpName(tvb, offset, pinfo, tree, di, drep);
1259 offset=butc_dissect_tc_dumpInterface_tapeSet(tvb, offset, pinfo, tree, di, drep);
1261 offset=butc_dissect_tc_dumpInterface_parentDumpId(tvb, offset, pinfo, tree, di, drep);
1263 offset=butc_dissect_tc_dumpInterface_dumpLevel(tvb, offset, pinfo, tree, di, drep);
1265 offset=butc_dissect_tc_dumpInterface_spare1(tvb, offset, pinfo, tree, di, drep);
1267 offset=butc_dissect_tc_dumpInterface_spare2(tvb, offset, pinfo, tree, di, drep);
1269 offset=butc_dissect_tc_dumpInterface_spare3(tvb, offset, pinfo, tree, di, drep);
1271 offset=butc_dissect_tc_dumpInterface_spare4(tvb, offset, pinfo, tree, di, drep);
1273 proto_item_set_len(item, offset-old_offset);
1275 return offset;
1277 static int
1278 butc_dissect_tc_statusInfoSwitchVol_nKBytes(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1280 uint32_t param=0;
1281 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchVol_nKBytes, param);
1282 return offset;
1285 static int
1286 butc_dissect_tc_statusInfoSwitchVol_volumeName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1288 uint32_t param=0;
1289 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchVol_volumeName, param);
1290 return offset;
1293 static int
1294 butc_dissect_tc_statusInfoSwitchVol_volsFailed(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1296 uint32_t param=0;
1297 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchVol_volsFailed, param);
1298 return offset;
1301 static int
1302 butc_dissect_tc_statusInfoSwitchVol_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1304 uint32_t param=0;
1305 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchVol_spare1, param);
1306 return offset;
1311 butc_dissect_tc_statusInfoSwitchVol(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
1313 proto_item *item=NULL;
1314 proto_tree *tree=NULL;
1315 int old_offset;
1317 ALIGN_TO_4_BYTES;
1319 old_offset=offset;
1320 if(parent_tree){
1321 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1322 tree=proto_item_add_subtree(item, ett_butc_tc_statusInfoSwitchVol);
1325 offset=butc_dissect_tc_statusInfoSwitchVol_nKBytes(tvb, offset, pinfo, tree, di, drep);
1327 offset=butc_dissect_tc_statusInfoSwitchVol_volumeName(tvb, offset, pinfo, tree, di, drep);
1329 offset=butc_dissect_tc_statusInfoSwitchVol_volsFailed(tvb, offset, pinfo, tree, di, drep);
1331 offset=butc_dissect_tc_statusInfoSwitchVol_spare1(tvb, offset, pinfo, tree, di, drep);
1333 proto_item_set_len(item, offset-old_offset);
1335 return offset;
1337 static int
1338 butc_dissect_tc_statusInfoSwitchLabel_tapeLabel(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1340 uint32_t param=0;
1341 offset=butc_dissect_tc_tapeLabel(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchLabel_tapeLabel, param);
1342 return offset;
1345 static int
1346 butc_dissect_tc_statusInfoSwitchLabel_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1348 uint32_t param=0;
1349 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchLabel_spare1, param);
1350 return offset;
1355 butc_dissect_tc_statusInfoSwitchLabel(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
1357 proto_item *item=NULL;
1358 proto_tree *tree=NULL;
1359 int old_offset;
1361 ALIGN_TO_4_BYTES;
1363 old_offset=offset;
1364 if(parent_tree){
1365 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1366 tree=proto_item_add_subtree(item, ett_butc_tc_statusInfoSwitchLabel);
1369 offset=butc_dissect_tc_statusInfoSwitchLabel_tapeLabel(tvb, offset, pinfo, tree, di, drep);
1371 offset=butc_dissect_tc_statusInfoSwitchLabel_spare1(tvb, offset, pinfo, tree, di, drep);
1373 proto_item_set_len(item, offset-old_offset);
1375 return offset;
1377 static int
1378 butc_dissect_union_tc_statusInfoSwitch_TCOP_NONE_none(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1380 uint32_t param=0;
1381 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_NONE_none, param);
1382 return offset;
1385 static int
1386 butc_dissect_union_tc_statusInfoSwitch_TCOP_DUMP_vol(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1388 uint32_t param=0;
1389 offset=butc_dissect_tc_statusInfoSwitchVol(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_DUMP_vol, param);
1390 return offset;
1393 static int
1394 butc_dissect_union_tc_statusInfoSwitch_TCOP_RESTORE_vol(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1396 uint32_t param=0;
1397 offset=butc_dissect_tc_statusInfoSwitchVol(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_RESTORE_vol, param);
1398 return offset;
1401 static int
1402 butc_dissect_union_tc_statusInfoSwitch_TCOP_LABELTAPE_label(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1404 uint32_t param=0;
1405 offset=butc_dissect_tc_statusInfoSwitchLabel(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_LABELTAPE_label, param);
1406 return offset;
1409 static int
1410 butc_dissect_union_tc_statusInfoSwitch_TCOP_READLABEL_label(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1412 uint32_t param=0;
1413 offset=butc_dissect_tc_statusInfoSwitchLabel(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_READLABEL_label, param);
1414 return offset;
1417 static int
1418 butc_dissect_union_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1420 uint32_t param=0;
1421 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1, param);
1422 return offset;
1425 static int
1426 butc_dissect_union_tc_statusInfoSwitch_TCOP_STATUS_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1428 uint32_t param=0;
1429 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_STATUS_spare2, param);
1430 return offset;
1433 static int
1434 butc_dissect_union_tc_statusInfoSwitch_TCOP_SAVEDB_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1436 uint32_t param=0;
1437 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_SAVEDB_spare3, param);
1438 return offset;
1441 static int
1442 butc_dissect_union_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1444 uint32_t param=0;
1445 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4, param);
1446 return offset;
1449 static int
1450 butc_dissect_union_tc_statusInfoSwitch_TCOP_SPARE_spare5(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1452 uint32_t param=0;
1453 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_SPARE_spare5, param);
1454 return offset;
1458 static int
1459 butc_dissect_union_tc_statusInfoSwitch(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info *di, uint8_t *drep, int hf_index, uint32_t param _U_)
1461 proto_item *item=NULL;
1462 proto_tree *tree=NULL;
1463 int old_offset;
1464 uint32_t level = 0;
1466 ALIGN_TO_4_BYTES;
1468 old_offset=offset;
1469 if(parent_tree){
1470 tree=proto_tree_add_subtree(parent_tree, tvb, offset, -1, ett_butc_tc_statusInfoSwitch, &item, "tc_statusInfoSwitch");
1473 offset=dissect_ndr_uint32(tvb, offset, pinfo, tree,
1474 di, drep, hf_index, &level);
1476 switch(level){
1477 case TCOP_NONE:
1478 ALIGN_TO_4_BYTES;
1479 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_NONE_none(tvb, offset, pinfo, tree, di, drep);
1480 break;
1482 case TCOP_DUMP:
1483 ALIGN_TO_4_BYTES;
1484 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_DUMP_vol(tvb, offset, pinfo, tree, di, drep);
1485 break;
1487 case TCOP_RESTORE:
1488 ALIGN_TO_4_BYTES;
1489 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_RESTORE_vol(tvb, offset, pinfo, tree, di, drep);
1490 break;
1492 case TCOP_LABELTAPE:
1493 ALIGN_TO_4_BYTES;
1494 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_LABELTAPE_label(tvb, offset, pinfo, tree, di, drep);
1495 break;
1497 case TCOP_READLABEL:
1498 ALIGN_TO_4_BYTES;
1499 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_READLABEL_label(tvb, offset, pinfo, tree, di, drep);
1500 break;
1502 case TCOP_SCANTAPE:
1503 ALIGN_TO_4_BYTES;
1504 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1(tvb, offset, pinfo, tree, di, drep);
1505 break;
1507 case TCOP_STATUS:
1508 ALIGN_TO_4_BYTES;
1509 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_STATUS_spare2(tvb, offset, pinfo, tree, di, drep);
1510 break;
1512 case TCOP_SAVEDB:
1513 ALIGN_TO_4_BYTES;
1514 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_SAVEDB_spare3(tvb, offset, pinfo, tree, di, drep);
1515 break;
1517 case TCOP_RESTOREDB:
1518 ALIGN_TO_4_BYTES;
1519 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4(tvb, offset, pinfo, tree, di, drep);
1520 break;
1522 case TCOP_SPARE:
1523 ALIGN_TO_4_BYTES;
1524 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_SPARE_spare5(tvb, offset, pinfo, tree, di, drep);
1525 break;
1529 proto_item_set_len(item, offset-old_offset);
1531 return offset;
1533 static int
1534 butc_dissect_tciStatusS_taskName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1536 uint32_t param=0;
1537 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_taskName, param);
1538 return offset;
1541 static int
1542 butc_dissect_tciStatusS_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1544 uint32_t param=0;
1545 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_flags, param);
1546 return offset;
1549 static int
1550 butc_dissect_tciStatusS_lastPolled(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1552 uint32_t param=0;
1553 offset=butc_dissect_time_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_lastPolled, param);
1554 return offset;
1557 static int
1558 butc_dissect_tciStatusS_info(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1560 uint32_t param=0;
1561 offset=butc_dissect_union_tc_statusInfoSwitch(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_info, param);
1562 return offset;
1565 static int
1566 butc_dissect_tciStatusS_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1568 uint32_t param=0;
1569 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_taskId, param);
1570 return offset;
1573 static int
1574 butc_dissect_tciStatusS_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1576 uint32_t param=0;
1577 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_spare2, param);
1578 return offset;
1581 static int
1582 butc_dissect_tciStatusS_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1584 uint32_t param=0;
1585 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_spare3, param);
1586 return offset;
1589 static int
1590 butc_dissect_tciStatusS_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1592 uint32_t param=0;
1593 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_spare4, param);
1594 return offset;
1599 butc_dissect_tciStatusS(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *parent_tree, dcerpc_info *di _U_, uint8_t *drep _U_, int hf_index, uint32_t param _U_)
1601 proto_item *item=NULL;
1602 proto_tree *tree=NULL;
1603 int old_offset;
1605 ALIGN_TO_4_BYTES;
1607 old_offset=offset;
1608 if(parent_tree){
1609 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1610 tree=proto_item_add_subtree(item, ett_butc_tciStatusS);
1613 offset=butc_dissect_tciStatusS_taskName(tvb, offset, pinfo, tree, di, drep);
1615 offset=butc_dissect_tciStatusS_flags(tvb, offset, pinfo, tree, di, drep);
1617 offset=butc_dissect_tciStatusS_lastPolled(tvb, offset, pinfo, tree, di, drep);
1619 offset=butc_dissect_tciStatusS_info(tvb, offset, pinfo, tree, di, drep);
1621 offset=butc_dissect_tciStatusS_taskId(tvb, offset, pinfo, tree, di, drep);
1623 offset=butc_dissect_tciStatusS_spare2(tvb, offset, pinfo, tree, di, drep);
1625 offset=butc_dissect_tciStatusS_spare3(tvb, offset, pinfo, tree, di, drep);
1627 offset=butc_dissect_tciStatusS_spare4(tvb, offset, pinfo, tree, di, drep);
1629 proto_item_set_len(item, offset-old_offset);
1631 return offset;
1633 static int
1634 butc_dissect_BUTC_PerformDump_tcdiPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1636 uint32_t param=0;
1637 offset=butc_dissect_tc_dumpInterface(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformDump_tcdiPtr, param);
1638 return offset;
1641 static int
1642 ref_butc_dissect_BUTC_PerformDump_tcdiPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1644 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformDump_tcdiPtr, NDR_POINTER_REF, "tcdiPtr", -1);
1645 return offset;
1648 static int
1649 butc_dissect_BUTC_PerformDump_dumps(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1651 uint32_t param=0;
1652 offset=butc_dissect_tc_dumpArray(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformDump_dumps, param);
1653 return offset;
1656 static int
1657 ref_butc_dissect_BUTC_PerformDump_dumps(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1659 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformDump_dumps, NDR_POINTER_REF, "dumps", -1);
1660 return offset;
1663 static int
1664 butc_dissect_BUTC_PerformDump_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1666 uint32_t param=0;
1667 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformDump_dumpID, param);
1668 return offset;
1671 static int
1672 ref_butc_dissect_BUTC_PerformDump_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1674 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformDump_dumpID, NDR_POINTER_REF, "dumpID", -1);
1675 return offset;
1679 static int
1680 butc_dissect_BUTC_PerformDump_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1682 offset=ref_butc_dissect_BUTC_PerformDump_tcdiPtr(tvb, offset, pinfo, tree, di, drep);
1683 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1685 offset=ref_butc_dissect_BUTC_PerformDump_dumps(tvb, offset, pinfo, tree, di, drep);
1686 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1689 return offset;
1692 static int
1693 butc_dissect_BUTC_PerformDump_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1695 offset=ref_butc_dissect_BUTC_PerformDump_dumpID(tvb, offset, pinfo, tree, di, drep);
1696 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1698 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1701 return offset;
1703 static int
1704 butc_dissect_BUTC_PerformRestore_dumpSetName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1706 uint32_t param=0;
1707 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformRestore_dumpSetName, param);
1708 return offset;
1711 static int
1712 ptr_butc_dissect_BUTC_PerformRestore_dumpSetName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1714 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformRestore_dumpSetName, NDR_POINTER_PTR, "dumpSetName", -1);
1715 return offset;
1718 static int
1719 butc_dissect_BUTC_PerformRestore_restores(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1721 uint32_t param=0;
1722 offset=butc_dissect_tc_restoreArray(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformRestore_restores, param);
1723 return offset;
1726 static int
1727 ref_butc_dissect_BUTC_PerformRestore_restores(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1729 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformRestore_restores, NDR_POINTER_REF, "restores", -1);
1730 return offset;
1733 static int
1734 butc_dissect_BUTC_PerformRestore_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1736 uint32_t param=0;
1737 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformRestore_dumpID, param);
1738 return offset;
1741 static int
1742 ref_butc_dissect_BUTC_PerformRestore_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1744 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformRestore_dumpID, NDR_POINTER_REF, "dumpID", -1);
1745 return offset;
1749 static int
1750 butc_dissect_BUTC_PerformRestore_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1752 offset=ptr_butc_dissect_BUTC_PerformRestore_dumpSetName(tvb, offset, pinfo, tree, di, drep);
1753 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1755 offset=ref_butc_dissect_BUTC_PerformRestore_restores(tvb, offset, pinfo, tree, di, drep);
1756 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1759 return offset;
1762 static int
1763 butc_dissect_BUTC_PerformRestore_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1765 offset=ref_butc_dissect_BUTC_PerformRestore_dumpID(tvb, offset, pinfo, tree, di, drep);
1766 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1768 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1771 return offset;
1773 static int
1774 butc_dissect_BUTC_AbortDump_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1776 uint32_t param=0;
1777 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_AbortDump_dumpID, param);
1778 return offset;
1782 static int
1783 butc_dissect_BUTC_AbortDump_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1785 offset=butc_dissect_BUTC_AbortDump_dumpID(tvb, offset, pinfo, tree, di, drep);
1786 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1789 return offset;
1792 static int
1793 butc_dissect_BUTC_AbortDump_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1795 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1798 return offset;
1800 static int
1801 butc_dissect_BUTC_LabelTape_label(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1803 uint32_t param=0;
1804 offset=butc_dissect_tc_tapeLabel(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_LabelTape_label, param);
1805 return offset;
1808 static int
1809 ref_butc_dissect_BUTC_LabelTape_label(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1811 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_LabelTape_label, NDR_POINTER_REF, "label", -1);
1812 return offset;
1815 static int
1816 butc_dissect_BUTC_LabelTape_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1818 uint32_t param=0;
1819 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_LabelTape_taskId, param);
1820 return offset;
1823 static int
1824 ref_butc_dissect_BUTC_LabelTape_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1826 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_LabelTape_taskId, NDR_POINTER_REF, "taskId", -1);
1827 return offset;
1831 static int
1832 butc_dissect_BUTC_LabelTape_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1834 offset=ref_butc_dissect_BUTC_LabelTape_label(tvb, offset, pinfo, tree, di, drep);
1835 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1838 return offset;
1841 static int
1842 butc_dissect_BUTC_LabelTape_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1844 offset=ref_butc_dissect_BUTC_LabelTape_taskId(tvb, offset, pinfo, tree, di, drep);
1845 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1847 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1850 return offset;
1852 static int
1853 butc_dissect_BUTC_ReadLabel_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1855 uint32_t param=0;
1856 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ReadLabel_taskId, param);
1857 return offset;
1860 static int
1861 ref_butc_dissect_BUTC_ReadLabel_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1863 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ReadLabel_taskId, NDR_POINTER_REF, "taskId", -1);
1864 return offset;
1868 static int
1869 butc_dissect_BUTC_ReadLabel_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1872 return offset;
1875 static int
1876 butc_dissect_BUTC_ReadLabel_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1878 offset=ref_butc_dissect_BUTC_ReadLabel_taskId(tvb, offset, pinfo, tree, di, drep);
1879 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1881 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1884 return offset;
1886 static int
1887 butc_dissect_BUTC_ScanDumps_addDbFlag(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1889 uint32_t param=0;
1890 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanDumps_addDbFlag, param);
1891 return offset;
1894 static int
1895 butc_dissect_BUTC_ScanDumps_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1897 uint32_t param=0;
1898 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanDumps_taskId, param);
1899 return offset;
1902 static int
1903 ref_butc_dissect_BUTC_ScanDumps_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1905 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ScanDumps_taskId, NDR_POINTER_REF, "taskId", -1);
1906 return offset;
1910 static int
1911 butc_dissect_BUTC_ScanDumps_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1913 offset=butc_dissect_BUTC_ScanDumps_addDbFlag(tvb, offset, pinfo, tree, di, drep);
1914 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1917 return offset;
1920 static int
1921 butc_dissect_BUTC_ScanDumps_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1923 offset=ref_butc_dissect_BUTC_ScanDumps_taskId(tvb, offset, pinfo, tree, di, drep);
1924 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1926 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1929 return offset;
1931 static int
1932 butc_dissect_BUTC_TCInfo_tciptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1934 uint32_t param=0;
1935 offset=butc_dissect_tc_tcInfo(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_TCInfo_tciptr, param);
1936 return offset;
1939 static int
1940 ref_butc_dissect_BUTC_TCInfo_tciptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1942 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_TCInfo_tciptr, NDR_POINTER_REF, "tciptr", -1);
1943 return offset;
1947 static int
1948 butc_dissect_BUTC_TCInfo_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1951 return offset;
1954 static int
1955 butc_dissect_BUTC_TCInfo_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1957 offset=ref_butc_dissect_BUTC_TCInfo_tciptr(tvb, offset, pinfo, tree, di, drep);
1958 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1960 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1963 return offset;
1965 static int
1966 butc_dissect_BUTC_SaveDb_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1968 uint32_t param=0;
1969 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_SaveDb_taskId, param);
1970 return offset;
1973 static int
1974 ref_butc_dissect_BUTC_SaveDb_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
1976 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_SaveDb_taskId, NDR_POINTER_REF, "taskId", -1);
1977 return offset;
1981 static int
1982 butc_dissect_BUTC_SaveDb_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1985 return offset;
1988 static int
1989 butc_dissect_BUTC_SaveDb_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
1991 offset=ref_butc_dissect_BUTC_SaveDb_taskId(tvb, offset, pinfo, tree, di, drep);
1992 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1994 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1997 return offset;
1999 static int
2000 butc_dissect_BUTC_RestoreDb_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2002 uint32_t param=0;
2003 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_RestoreDb_taskId, param);
2004 return offset;
2007 static int
2008 ref_butc_dissect_BUTC_RestoreDb_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2010 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_RestoreDb_taskId, NDR_POINTER_REF, "taskId", -1);
2011 return offset;
2015 static int
2016 butc_dissect_BUTC_RestoreDb_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2019 return offset;
2022 static int
2023 butc_dissect_BUTC_RestoreDb_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2025 offset=ref_butc_dissect_BUTC_RestoreDb_taskId(tvb, offset, pinfo, tree, di, drep);
2026 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2028 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2031 return offset;
2033 static int
2034 butc_dissect_BUTC_EndStatus_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2036 uint32_t param=0;
2037 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_EndStatus_taskId, param);
2038 return offset;
2042 static int
2043 butc_dissect_BUTC_EndStatus_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2045 offset=butc_dissect_BUTC_EndStatus_taskId(tvb, offset, pinfo, tree, di, drep);
2046 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2049 return offset;
2052 static int
2053 butc_dissect_BUTC_EndStatus_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2055 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2058 return offset;
2060 static int
2061 butc_dissect_BUTC_GetStatus_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2063 uint32_t param=0;
2064 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_GetStatus_taskId, param);
2065 return offset;
2068 static int
2069 butc_dissect_BUTC_GetStatus_statusPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2071 uint32_t param=0;
2072 offset=butc_dissect_tciStatusS(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_GetStatus_statusPtr, param);
2073 return offset;
2076 static int
2077 ref_butc_dissect_BUTC_GetStatus_statusPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2079 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_GetStatus_statusPtr, NDR_POINTER_REF, "statusPtr", -1);
2080 return offset;
2084 static int
2085 butc_dissect_BUTC_GetStatus_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2087 offset=butc_dissect_BUTC_GetStatus_taskId(tvb, offset, pinfo, tree, di, drep);
2088 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2091 return offset;
2094 static int
2095 butc_dissect_BUTC_GetStatus_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2097 offset=ref_butc_dissect_BUTC_GetStatus_statusPtr(tvb, offset, pinfo, tree, di, drep);
2098 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2100 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2103 return offset;
2105 static int
2106 butc_dissect_BUTC_RequestAbort_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2108 uint32_t param=0;
2109 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_RequestAbort_taskId, param);
2110 return offset;
2114 static int
2115 butc_dissect_BUTC_RequestAbort_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2117 offset=butc_dissect_BUTC_RequestAbort_taskId(tvb, offset, pinfo, tree, di, drep);
2118 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2121 return offset;
2124 static int
2125 butc_dissect_BUTC_RequestAbort_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2127 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2130 return offset;
2132 static int
2133 butc_dissect_BUTC_ScanStatus_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2135 uint32_t param=0;
2136 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanStatus_taskId, param);
2137 return offset;
2140 static int
2141 ref_butc_dissect_BUTC_ScanStatus_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2143 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ScanStatus_taskId, NDR_POINTER_REF, "taskId", -1);
2144 return offset;
2147 static int
2148 butc_dissect_BUTC_ScanStatus_statusPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2150 uint32_t param=0;
2151 offset=butc_dissect_tciStatusS(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanStatus_statusPtr, param);
2152 return offset;
2155 static int
2156 ref_butc_dissect_BUTC_ScanStatus_statusPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2158 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ScanStatus_statusPtr, NDR_POINTER_REF, "statusPtr", -1);
2159 return offset;
2162 static int
2163 butc_dissect_BUTC_ScanStatus_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2165 uint32_t param=0;
2166 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanStatus_flags, param);
2167 return offset;
2170 static int
2171 ref_butc_dissect_BUTC_ScanStatus_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
2173 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ScanStatus_flags, NDR_POINTER_REF, "flags", -1);
2174 return offset;
2178 static int
2179 butc_dissect_BUTC_ScanStatus_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2181 offset=ref_butc_dissect_BUTC_ScanStatus_taskId(tvb, offset, pinfo, tree, di, drep);
2182 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2184 offset=ref_butc_dissect_BUTC_ScanStatus_flags(tvb, offset, pinfo, tree, di, drep);
2185 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2188 return offset;
2191 static int
2192 butc_dissect_BUTC_ScanStatus_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2194 offset=ref_butc_dissect_BUTC_ScanStatus_taskId(tvb, offset, pinfo, tree, di, drep);
2195 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2197 offset=ref_butc_dissect_BUTC_ScanStatus_statusPtr(tvb, offset, pinfo, tree, di, drep);
2198 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2200 offset=ref_butc_dissect_BUTC_ScanStatus_flags(tvb, offset, pinfo, tree, di, drep);
2201 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2203 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2206 return offset;
2209 static int
2210 butc_dissect_BUTC_GetServerInterfaces_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2213 return offset;
2216 static int
2217 butc_dissect_BUTC_GetServerInterfaces_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
2219 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2222 return offset;
2224 /* END OF INCLUDED FILE : ETH_CODE */
2228 void
2229 proto_register_butc(void)
2231 static hf_register_info hf[] = {
2235 /* INCLUDED FILE : ETH_HFARR */
2236 { &hf_butc_opnum,
2237 { "Operation", "butc.opnum", FT_UINT16, BASE_DEC,
2238 NULL, 0,
2239 NULL, HFILL }},
2241 { &hf_butc_rc,
2242 { "Return code", "butc.rc", FT_UINT32, BASE_HEX|BASE_EXT_STRING,
2243 &NT_errors_ext, 0,
2244 NULL, HFILL }},
2246 { &hf_butc_Restore_flags_TC_RESTORE_CREATE,
2247 { "TC_RESTORE_CREATE", "butc.Restore_flags.TC_RESTORE_CREATE", FT_BOOLEAN, 32,
2248 TFS(&TC_RESTORE_CREATE_tfs), 0x00000001,
2249 NULL, HFILL }},
2251 { &hf_butc_Restore_flags_TC_RESTORE_INCR,
2252 { "TC_RESTORE_INCR", "butc.Restore_flags.TC_RESTORE_INCR", FT_BOOLEAN, 32,
2253 TFS(&TC_RESTORE_INCR_tfs), 0x00000002,
2254 NULL, HFILL }},
2256 { &hf_butc_afsNetAddr_type,
2257 { "type", "butc.afsNetAddr.type", FT_UINT16, BASE_DEC,
2258 NULL, 0,
2259 NULL, HFILL }},
2261 { &hf_butc_afsNetAddr_data,
2262 { "data", "butc.afsNetAddr.data", FT_UINT8, BASE_DEC,
2263 NULL, 0,
2264 NULL, HFILL }},
2266 { &hf_butc_tc_dumpDesc_vid,
2267 { "vid", "butc.tc_dumpDesc.vid", FT_UINT64, BASE_DEC,
2268 NULL, 0,
2269 NULL, HFILL }},
2271 { &hf_butc_tc_dumpDesc_name,
2272 { "name", "butc.tc_dumpDesc.name", FT_STRING, BASE_NONE,
2273 NULL, 0,
2274 NULL, HFILL }},
2276 { &hf_butc_tc_dumpDesc_partition,
2277 { "partition", "butc.tc_dumpDesc.partition", FT_INT32, BASE_DEC,
2278 NULL, 0,
2279 NULL, HFILL }},
2281 { &hf_butc_tc_dumpDesc_date,
2282 { "date", "butc.tc_dumpDesc.date", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL,
2283 NULL, 0,
2284 NULL, HFILL }},
2286 { &hf_butc_tc_dumpDesc_cloneDate,
2287 { "cloneDate", "butc.tc_dumpDesc.cloneDate", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL,
2288 NULL, 0,
2289 NULL, HFILL }},
2291 { &hf_butc_tc_dumpDesc_hostAddr,
2292 { "hostAddr", "butc.tc_dumpDesc.hostAddr", FT_NONE, BASE_NONE,
2293 NULL, 0,
2294 NULL, HFILL }},
2296 { &hf_butc_tc_dumpDesc_spare1,
2297 { "spare1", "butc.tc_dumpDesc.spare1", FT_UINT32, BASE_DEC,
2298 NULL, 0,
2299 NULL, HFILL }},
2301 { &hf_butc_tc_dumpDesc_spare2,
2302 { "spare2", "butc.tc_dumpDesc.spare2", FT_UINT32, BASE_DEC,
2303 NULL, 0,
2304 NULL, HFILL }},
2306 { &hf_butc_tc_dumpDesc_spare3,
2307 { "spare3", "butc.tc_dumpDesc.spare3", FT_UINT32, BASE_DEC,
2308 NULL, 0,
2309 NULL, HFILL }},
2311 { &hf_butc_tc_dumpDesc_spare4,
2312 { "spare4", "butc.tc_dumpDesc.spare4", FT_UINT32, BASE_DEC,
2313 NULL, 0,
2314 NULL, HFILL }},
2316 { &hf_butc_tc_restoreDesc_frag,
2317 { "frag", "butc.tc_restoreDesc.frag", FT_INT32, BASE_DEC,
2318 NULL, 0,
2319 NULL, HFILL }},
2321 { &hf_butc_tc_restoreDesc_tapeName,
2322 { "tapeName", "butc.tc_restoreDesc.tapeName", FT_STRING, BASE_NONE,
2323 NULL, 0,
2324 NULL, HFILL }},
2326 { &hf_butc_tc_restoreDesc_position,
2327 { "position", "butc.tc_restoreDesc.position", FT_INT32, BASE_DEC,
2328 NULL, 0,
2329 NULL, HFILL }},
2331 { &hf_butc_tc_restoreDesc_origVid,
2332 { "origVid", "butc.tc_restoreDesc.origVid", FT_UINT64, BASE_DEC,
2333 NULL, 0,
2334 NULL, HFILL }},
2336 { &hf_butc_tc_restoreDesc_vid,
2337 { "vid", "butc.tc_restoreDesc.vid", FT_UINT64, BASE_DEC,
2338 NULL, 0,
2339 NULL, HFILL }},
2341 { &hf_butc_tc_restoreDesc_partition,
2342 { "partition", "butc.tc_restoreDesc.partition", FT_INT32, BASE_DEC,
2343 NULL, 0,
2344 NULL, HFILL }},
2346 { &hf_butc_tc_restoreDesc_flags,
2347 { "flags", "butc.tc_restoreDesc.flags", FT_UINT32, BASE_HEX,
2348 NULL, 0,
2349 NULL, HFILL }},
2351 { &hf_butc_tc_restoreDesc_hostAddr,
2352 { "hostAddr", "butc.tc_restoreDesc.hostAddr", FT_NONE, BASE_NONE,
2353 NULL, 0,
2354 NULL, HFILL }},
2356 { &hf_butc_tc_restoreDesc_realDumpId,
2357 { "realDumpId", "butc.tc_restoreDesc.realDumpId", FT_UINT32, BASE_DEC,
2358 NULL, 0,
2359 NULL, HFILL }},
2361 { &hf_butc_tc_restoreDesc_spare2,
2362 { "spare2", "butc.tc_restoreDesc.spare2", FT_UINT32, BASE_DEC,
2363 NULL, 0,
2364 NULL, HFILL }},
2366 { &hf_butc_tc_restoreDesc_spare3,
2367 { "spare3", "butc.tc_restoreDesc.spare3", FT_UINT32, BASE_DEC,
2368 NULL, 0,
2369 NULL, HFILL }},
2371 { &hf_butc_tc_restoreDesc_spare4,
2372 { "spare4", "butc.tc_restoreDesc.spare4", FT_UINT32, BASE_DEC,
2373 NULL, 0,
2374 NULL, HFILL }},
2376 { &hf_butc_tc_restoreDesc_oldName,
2377 { "oldName", "butc.tc_restoreDesc.oldName", FT_STRING, BASE_NONE,
2378 NULL, 0,
2379 NULL, HFILL }},
2381 { &hf_butc_tc_restoreDesc_newName,
2382 { "newName", "butc.tc_restoreDesc.newName", FT_STRING, BASE_NONE,
2383 NULL, 0,
2384 NULL, HFILL }},
2386 { &hf_butc_tc_dumpStat_dumpID,
2387 { "dumpID", "butc.tc_dumpStat.dumpID", FT_INT32, BASE_DEC,
2388 NULL, 0,
2389 NULL, HFILL }},
2391 { &hf_butc_tc_dumpStat_bytesDumped,
2392 { "bytesDumped", "butc.tc_dumpStat.bytesDumped", FT_INT32, BASE_DEC,
2393 NULL, 0,
2394 NULL, HFILL }},
2396 { &hf_butc_tc_dumpStat_volumeBeingDumped,
2397 { "volumeBeingDumped", "butc.tc_dumpStat.volumeBeingDumped", FT_UINT64, BASE_DEC,
2398 NULL, 0,
2399 NULL, HFILL }},
2401 { &hf_butc_tc_dumpStat_numVolErrs,
2402 { "numVolErrs", "butc.tc_dumpStat.numVolErrs", FT_INT32, BASE_DEC,
2403 NULL, 0,
2404 NULL, HFILL }},
2406 { &hf_butc_tc_dumpStat_flags,
2407 { "flags", "butc.tc_dumpStat.flags", FT_INT32, BASE_DEC,
2408 NULL, 0,
2409 NULL, HFILL }},
2411 { &hf_butc_tc_dumpStat_spare1,
2412 { "spare1", "butc.tc_dumpStat.spare1", FT_UINT32, BASE_DEC,
2413 NULL, 0,
2414 NULL, HFILL }},
2416 { &hf_butc_tc_dumpStat_spare2,
2417 { "spare2", "butc.tc_dumpStat.spare2", FT_UINT32, BASE_DEC,
2418 NULL, 0,
2419 NULL, HFILL }},
2421 { &hf_butc_tc_dumpStat_spare3,
2422 { "spare3", "butc.tc_dumpStat.spare3", FT_UINT32, BASE_DEC,
2423 NULL, 0,
2424 NULL, HFILL }},
2426 { &hf_butc_tc_dumpStat_spare4,
2427 { "spare4", "butc.tc_dumpStat.spare4", FT_UINT32, BASE_DEC,
2428 NULL, 0,
2429 NULL, HFILL }},
2431 { &hf_butc_tc_tapeLabel_size,
2432 { "size", "butc.tc_tapeLabel.size", FT_UINT32, BASE_DEC,
2433 NULL, 0,
2434 NULL, HFILL }},
2436 { &hf_butc_tc_tapeLabel_size_ext,
2437 { "size_ext", "butc.tc_tapeLabel.size_ext", FT_UINT32, BASE_DEC,
2438 NULL, 0,
2439 NULL, HFILL }},
2441 { &hf_butc_tc_tapeLabel_spare1,
2442 { "spare1", "butc.tc_tapeLabel.spare1", FT_UINT32, BASE_DEC,
2443 NULL, 0,
2444 NULL, HFILL }},
2446 { &hf_butc_tc_tapeLabel_spare2,
2447 { "spare2", "butc.tc_tapeLabel.spare2", FT_UINT32, BASE_DEC,
2448 NULL, 0,
2449 NULL, HFILL }},
2451 { &hf_butc_tc_tapeLabel_spare3,
2452 { "spare3", "butc.tc_tapeLabel.spare3", FT_UINT32, BASE_DEC,
2453 NULL, 0,
2454 NULL, HFILL }},
2456 { &hf_butc_tc_tapeLabel_spare4,
2457 { "spare4", "butc.tc_tapeLabel.spare4", FT_UINT32, BASE_DEC,
2458 NULL, 0,
2459 NULL, HFILL }},
2461 { &hf_butc_tc_tapeLabel_nameLen,
2462 { "nameLen", "butc.tc_tapeLabel.nameLen", FT_UINT32, BASE_DEC,
2463 NULL, 0,
2464 NULL, HFILL }},
2466 { &hf_butc_tc_tapeLabel_name,
2467 { "name", "butc.tc_tapeLabel.name", FT_STRING, BASE_NONE,
2468 NULL, 0,
2469 NULL, HFILL }},
2471 { &hf_butc_tc_tapeSet_id,
2472 { "id", "butc.tc_tapeSet.id", FT_INT32, BASE_DEC,
2473 NULL, 0,
2474 NULL, HFILL }},
2476 { &hf_butc_tc_tapeSet_tapeServer,
2477 { "tapeServer", "butc.tc_tapeSet.tapeServer", FT_STRING, BASE_NONE,
2478 NULL, 0,
2479 NULL, HFILL }},
2481 { &hf_butc_tc_tapeSet_format,
2482 { "format", "butc.tc_tapeSet.format", FT_STRING, BASE_NONE,
2483 NULL, 0,
2484 NULL, HFILL }},
2486 { &hf_butc_tc_tapeSet_maxTapes,
2487 { "maxTapes", "butc.tc_tapeSet.maxTapes", FT_INT32, BASE_DEC,
2488 NULL, 0,
2489 NULL, HFILL }},
2491 { &hf_butc_tc_tapeSet_a,
2492 { "a", "butc.tc_tapeSet.a", FT_INT32, BASE_DEC,
2493 NULL, 0,
2494 NULL, HFILL }},
2496 { &hf_butc_tc_tapeSet_b,
2497 { "b", "butc.tc_tapeSet.b", FT_INT32, BASE_DEC,
2498 NULL, 0,
2499 NULL, HFILL }},
2501 { &hf_butc_tc_tapeSet_expDate,
2502 { "expDate", "butc.tc_tapeSet.expDate", FT_INT32, BASE_DEC,
2503 NULL, 0,
2504 NULL, HFILL }},
2506 { &hf_butc_tc_tapeSet_expType,
2507 { "expType", "butc.tc_tapeSet.expType", FT_INT32, BASE_DEC,
2508 NULL, 0,
2509 NULL, HFILL }},
2511 { &hf_butc_tc_tapeSet_spare1,
2512 { "spare1", "butc.tc_tapeSet.spare1", FT_UINT32, BASE_DEC,
2513 NULL, 0,
2514 NULL, HFILL }},
2516 { &hf_butc_tc_tapeSet_spare2,
2517 { "spare2", "butc.tc_tapeSet.spare2", FT_UINT32, BASE_DEC,
2518 NULL, 0,
2519 NULL, HFILL }},
2521 { &hf_butc_tc_tapeSet_spare3,
2522 { "spare3", "butc.tc_tapeSet.spare3", FT_UINT32, BASE_DEC,
2523 NULL, 0,
2524 NULL, HFILL }},
2526 { &hf_butc_tc_tapeSet_spare4,
2527 { "spare4", "butc.tc_tapeSet.spare4", FT_UINT32, BASE_DEC,
2528 NULL, 0,
2529 NULL, HFILL }},
2531 { &hf_butc_tc_tcInfo_tcVersion,
2532 { "tcVersion", "butc.tc_tcInfo.tcVersion", FT_INT32, BASE_DEC,
2533 NULL, 0,
2534 NULL, HFILL }},
2536 { &hf_butc_tc_tcInfo_spare1,
2537 { "spare1", "butc.tc_tcInfo.spare1", FT_UINT32, BASE_DEC,
2538 NULL, 0,
2539 NULL, HFILL }},
2541 { &hf_butc_tc_tcInfo_spare2,
2542 { "spare2", "butc.tc_tcInfo.spare2", FT_UINT32, BASE_DEC,
2543 NULL, 0,
2544 NULL, HFILL }},
2546 { &hf_butc_tc_tcInfo_spare3,
2547 { "spare3", "butc.tc_tcInfo.spare3", FT_UINT32, BASE_DEC,
2548 NULL, 0,
2549 NULL, HFILL }},
2551 { &hf_butc_tc_tcInfo_spare4,
2552 { "spare4", "butc.tc_tcInfo.spare4", FT_UINT32, BASE_DEC,
2553 NULL, 0,
2554 NULL, HFILL }},
2556 { &hf_butc_tc_restoreArray_tc_restoreArray_len,
2557 { "tc_restoreArray_len", "butc.tc_restoreArray.tc_restoreArray_len", FT_UINT32, BASE_DEC,
2558 NULL, 0,
2559 NULL, HFILL }},
2561 { &hf_butc_tc_restoreArray_tc_restoreArray_val,
2562 { "tc_restoreArray_val", "butc.tc_restoreArray.tc_restoreArray_val", FT_NONE, BASE_NONE,
2563 NULL, 0,
2564 NULL, HFILL }},
2566 { &hf_butc_tc_dumpArray_tc_dumpArray_len,
2567 { "tc_dumpArray_len", "butc.tc_dumpArray.tc_dumpArray_len", FT_UINT32, BASE_DEC,
2568 NULL, 0,
2569 NULL, HFILL }},
2571 { &hf_butc_tc_dumpArray_tc_dumpArray,
2572 { "tc_dumpArray", "butc.tc_dumpArray.tc_dumpArray", FT_NONE, BASE_NONE,
2573 NULL, 0,
2574 NULL, HFILL }},
2576 { &hf_butc_tc_dumpInterface_dumpPath,
2577 { "dumpPath", "butc.tc_dumpInterface.dumpPath", FT_STRING, BASE_NONE,
2578 NULL, 0,
2579 NULL, HFILL }},
2581 { &hf_butc_tc_dumpInterface_volumeSetName,
2582 { "volumeSetName", "butc.tc_dumpInterface.volumeSetName", FT_STRING, BASE_NONE,
2583 NULL, 0,
2584 NULL, HFILL }},
2586 { &hf_butc_tc_dumpInterface_dumpName,
2587 { "dumpName", "butc.tc_dumpInterface.dumpName", FT_STRING, BASE_NONE,
2588 NULL, 0,
2589 NULL, HFILL }},
2591 { &hf_butc_tc_dumpInterface_tapeSet,
2592 { "tapeSet", "butc.tc_dumpInterface.tapeSet", FT_NONE, BASE_NONE,
2593 NULL, 0,
2594 NULL, HFILL }},
2596 { &hf_butc_tc_dumpInterface_parentDumpId,
2597 { "parentDumpId", "butc.tc_dumpInterface.parentDumpId", FT_INT32, BASE_DEC,
2598 NULL, 0,
2599 NULL, HFILL }},
2601 { &hf_butc_tc_dumpInterface_dumpLevel,
2602 { "dumpLevel", "butc.tc_dumpInterface.dumpLevel", FT_INT32, BASE_DEC,
2603 NULL, 0,
2604 NULL, HFILL }},
2606 { &hf_butc_tc_dumpInterface_spare1,
2607 { "spare1", "butc.tc_dumpInterface.spare1", FT_UINT32, BASE_DEC,
2608 NULL, 0,
2609 NULL, HFILL }},
2611 { &hf_butc_tc_dumpInterface_spare2,
2612 { "spare2", "butc.tc_dumpInterface.spare2", FT_UINT32, BASE_DEC,
2613 NULL, 0,
2614 NULL, HFILL }},
2616 { &hf_butc_tc_dumpInterface_spare3,
2617 { "spare3", "butc.tc_dumpInterface.spare3", FT_UINT32, BASE_DEC,
2618 NULL, 0,
2619 NULL, HFILL }},
2621 { &hf_butc_tc_dumpInterface_spare4,
2622 { "spare4", "butc.tc_dumpInterface.spare4", FT_UINT32, BASE_DEC,
2623 NULL, 0,
2624 NULL, HFILL }},
2626 { &hf_butc_tc_statusInfoSwitchVol_nKBytes,
2627 { "nKBytes", "butc.tc_statusInfoSwitchVol.nKBytes", FT_UINT32, BASE_DEC,
2628 NULL, 0,
2629 NULL, HFILL }},
2631 { &hf_butc_tc_statusInfoSwitchVol_volumeName,
2632 { "volumeName", "butc.tc_statusInfoSwitchVol.volumeName", FT_STRING, BASE_NONE,
2633 NULL, 0,
2634 NULL, HFILL }},
2636 { &hf_butc_tc_statusInfoSwitchVol_volsFailed,
2637 { "volsFailed", "butc.tc_statusInfoSwitchVol.volsFailed", FT_INT32, BASE_DEC,
2638 NULL, 0,
2639 NULL, HFILL }},
2641 { &hf_butc_tc_statusInfoSwitchVol_spare1,
2642 { "spare1", "butc.tc_statusInfoSwitchVol.spare1", FT_UINT32, BASE_DEC,
2643 NULL, 0,
2644 NULL, HFILL }},
2646 { &hf_butc_tc_statusInfoSwitchLabel_tapeLabel,
2647 { "tapeLabel", "butc.tc_statusInfoSwitchLabel.tapeLabel", FT_NONE, BASE_NONE,
2648 NULL, 0,
2649 NULL, HFILL }},
2651 { &hf_butc_tc_statusInfoSwitchLabel_spare1,
2652 { "spare1", "butc.tc_statusInfoSwitchLabel.spare1", FT_UINT32, BASE_DEC,
2653 NULL, 0,
2654 NULL, HFILL }},
2656 { &hf_butc_tc_statusInfoSwitch_TCOP_NONE_none,
2657 { "none", "butc.tc_statusInfoSwitch.none", FT_UINT32, BASE_DEC,
2658 NULL, 0,
2659 NULL, HFILL }},
2661 { &hf_butc_tc_statusInfoSwitch_TCOP_DUMP_vol,
2662 { "vol", "butc.tc_statusInfoSwitch.vol", FT_NONE, BASE_NONE,
2663 NULL, 0,
2664 NULL, HFILL }},
2666 { &hf_butc_tc_statusInfoSwitch_TCOP_RESTORE_vol,
2667 { "vol", "butc.tc_statusInfoSwitch.vol", FT_NONE, BASE_NONE,
2668 NULL, 0,
2669 NULL, HFILL }},
2671 { &hf_butc_tc_statusInfoSwitch_TCOP_LABELTAPE_label,
2672 { "label", "butc.tc_statusInfoSwitch.label", FT_NONE, BASE_NONE,
2673 NULL, 0,
2674 NULL, HFILL }},
2676 { &hf_butc_tc_statusInfoSwitch_TCOP_READLABEL_label,
2677 { "label", "butc.tc_statusInfoSwitch.label", FT_NONE, BASE_NONE,
2678 NULL, 0,
2679 NULL, HFILL }},
2681 { &hf_butc_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1,
2682 { "spare1", "butc.tc_statusInfoSwitch.spare1", FT_UINT32, BASE_DEC,
2683 NULL, 0,
2684 NULL, HFILL }},
2686 { &hf_butc_tc_statusInfoSwitch_TCOP_STATUS_spare2,
2687 { "spare2", "butc.tc_statusInfoSwitch.spare2", FT_UINT32, BASE_DEC,
2688 NULL, 0,
2689 NULL, HFILL }},
2691 { &hf_butc_tc_statusInfoSwitch_TCOP_SAVEDB_spare3,
2692 { "spare3", "butc.tc_statusInfoSwitch.spare3", FT_UINT32, BASE_DEC,
2693 NULL, 0,
2694 NULL, HFILL }},
2696 { &hf_butc_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4,
2697 { "spare4", "butc.tc_statusInfoSwitch.spare4", FT_UINT32, BASE_DEC,
2698 NULL, 0,
2699 NULL, HFILL }},
2701 { &hf_butc_tc_statusInfoSwitch_TCOP_SPARE_spare5,
2702 { "spare5", "butc.tc_statusInfoSwitch.spare5", FT_UINT32, BASE_DEC,
2703 NULL, 0,
2704 NULL, HFILL }},
2706 { &hf_butc_tciStatusS_taskName,
2707 { "taskName", "butc.tciStatusS.taskName", FT_STRING, BASE_NONE,
2708 NULL, 0,
2709 NULL, HFILL }},
2711 { &hf_butc_tciStatusS_flags,
2712 { "flags", "butc.tciStatusS.flags", FT_UINT32, BASE_DEC,
2713 NULL, 0,
2714 NULL, HFILL }},
2716 { &hf_butc_tciStatusS_lastPolled,
2717 { "lastPolled", "butc.tciStatusS.lastPolled", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL,
2718 NULL, 0,
2719 NULL, HFILL }},
2721 { &hf_butc_tciStatusS_info,
2722 { "info", "butc.tciStatusS.info", FT_UINT32, BASE_DEC,
2723 NULL, 0,
2724 NULL, HFILL }},
2726 { &hf_butc_tciStatusS_taskId,
2727 { "taskId", "butc.tciStatusS.taskId", FT_UINT32, BASE_DEC,
2728 NULL, 0,
2729 NULL, HFILL }},
2731 { &hf_butc_tciStatusS_spare2,
2732 { "spare2", "butc.tciStatusS.spare2", FT_UINT32, BASE_DEC,
2733 NULL, 0,
2734 NULL, HFILL }},
2736 { &hf_butc_tciStatusS_spare3,
2737 { "spare3", "butc.tciStatusS.spare3", FT_UINT32, BASE_DEC,
2738 NULL, 0,
2739 NULL, HFILL }},
2741 { &hf_butc_tciStatusS_spare4,
2742 { "spare4", "butc.tciStatusS.spare4", FT_UINT32, BASE_DEC,
2743 NULL, 0,
2744 NULL, HFILL }},
2746 { &hf_butc_BUTC_PerformDump_tcdiPtr,
2747 { "tcdiPtr", "butc.BUTC_PerformDump.tcdiPtr", FT_NONE, BASE_NONE,
2748 NULL, 0,
2749 NULL, HFILL }},
2751 { &hf_butc_BUTC_PerformDump_dumps,
2752 { "dumps", "butc.BUTC_PerformDump.dumps", FT_NONE, BASE_NONE,
2753 NULL, 0,
2754 NULL, HFILL }},
2756 { &hf_butc_BUTC_PerformDump_dumpID,
2757 { "dumpID", "butc.BUTC_PerformDump.dumpID", FT_INT32, BASE_DEC,
2758 NULL, 0,
2759 NULL, HFILL }},
2761 { &hf_butc_BUTC_PerformRestore_dumpSetName,
2762 { "dumpSetName", "butc.BUTC_PerformRestore.dumpSetName", FT_STRING, BASE_NONE,
2763 NULL, 0,
2764 NULL, HFILL }},
2766 { &hf_butc_BUTC_PerformRestore_restores,
2767 { "restores", "butc.BUTC_PerformRestore.restores", FT_NONE, BASE_NONE,
2768 NULL, 0,
2769 NULL, HFILL }},
2771 { &hf_butc_BUTC_PerformRestore_dumpID,
2772 { "dumpID", "butc.BUTC_PerformRestore.dumpID", FT_INT32, BASE_DEC,
2773 NULL, 0,
2774 NULL, HFILL }},
2776 { &hf_butc_BUTC_AbortDump_dumpID,
2777 { "dumpID", "butc.BUTC_AbortDump.dumpID", FT_INT32, BASE_DEC,
2778 NULL, 0,
2779 NULL, HFILL }},
2781 { &hf_butc_BUTC_LabelTape_label,
2782 { "label", "butc.BUTC_LabelTape.label", FT_NONE, BASE_NONE,
2783 NULL, 0,
2784 NULL, HFILL }},
2786 { &hf_butc_BUTC_LabelTape_taskId,
2787 { "taskId", "butc.BUTC_LabelTape.taskId", FT_UINT32, BASE_DEC,
2788 NULL, 0,
2789 NULL, HFILL }},
2791 { &hf_butc_BUTC_ReadLabel_taskId,
2792 { "taskId", "butc.BUTC_ReadLabel.taskId", FT_UINT32, BASE_DEC,
2793 NULL, 0,
2794 NULL, HFILL }},
2796 { &hf_butc_BUTC_ScanDumps_addDbFlag,
2797 { "addDbFlag", "butc.BUTC_ScanDumps.addDbFlag", FT_INT32, BASE_DEC,
2798 NULL, 0,
2799 NULL, HFILL }},
2801 { &hf_butc_BUTC_ScanDumps_taskId,
2802 { "taskId", "butc.BUTC_ScanDumps.taskId", FT_UINT32, BASE_DEC,
2803 NULL, 0,
2804 NULL, HFILL }},
2806 { &hf_butc_BUTC_TCInfo_tciptr,
2807 { "tciptr", "butc.BUTC_TCInfo.tciptr", FT_NONE, BASE_NONE,
2808 NULL, 0,
2809 NULL, HFILL }},
2811 { &hf_butc_BUTC_SaveDb_taskId,
2812 { "taskId", "butc.BUTC_SaveDb.taskId", FT_UINT32, BASE_DEC,
2813 NULL, 0,
2814 NULL, HFILL }},
2816 { &hf_butc_BUTC_RestoreDb_taskId,
2817 { "taskId", "butc.BUTC_RestoreDb.taskId", FT_UINT32, BASE_DEC,
2818 NULL, 0,
2819 NULL, HFILL }},
2821 { &hf_butc_BUTC_EndStatus_taskId,
2822 { "taskId", "butc.BUTC_EndStatus.taskId", FT_UINT32, BASE_DEC,
2823 NULL, 0,
2824 NULL, HFILL }},
2826 { &hf_butc_BUTC_GetStatus_taskId,
2827 { "taskId", "butc.BUTC_GetStatus.taskId", FT_UINT32, BASE_DEC,
2828 NULL, 0,
2829 NULL, HFILL }},
2831 { &hf_butc_BUTC_GetStatus_statusPtr,
2832 { "statusPtr", "butc.BUTC_GetStatus.statusPtr", FT_NONE, BASE_NONE,
2833 NULL, 0,
2834 NULL, HFILL }},
2836 { &hf_butc_BUTC_RequestAbort_taskId,
2837 { "taskId", "butc.BUTC_RequestAbort.taskId", FT_UINT32, BASE_DEC,
2838 NULL, 0,
2839 NULL, HFILL }},
2841 { &hf_butc_BUTC_ScanStatus_taskId,
2842 { "taskId", "butc.BUTC_ScanStatus.taskId", FT_UINT32, BASE_DEC,
2843 NULL, 0,
2844 NULL, HFILL }},
2846 { &hf_butc_BUTC_ScanStatus_statusPtr,
2847 { "statusPtr", "butc.BUTC_ScanStatus.statusPtr", FT_NONE, BASE_NONE,
2848 NULL, 0,
2849 NULL, HFILL }},
2851 { &hf_butc_BUTC_ScanStatus_flags,
2852 { "flags", "butc.BUTC_ScanStatus.flags", FT_UINT32, BASE_DEC,
2853 NULL, 0,
2854 NULL, HFILL }},
2856 /* END OF INCLUDED FILE : ETH_HFARR */
2861 static int *ett[] = {
2864 /* INCLUDED FILE : ETH_ETTARR */
2865 &ett_butc,
2866 &ett_butc_Restore_flags,
2867 &ett_butc_afsNetAddr,
2868 &ett_butc_tc_dumpDesc,
2869 &ett_butc_tc_restoreDesc,
2870 &ett_butc_tc_dumpStat,
2871 &ett_butc_tc_tapeLabel,
2872 &ett_butc_tc_tapeSet,
2873 &ett_butc_tc_tcInfo,
2874 &ett_butc_tc_restoreArray,
2875 &ett_butc_tc_dumpArray,
2876 &ett_butc_tc_dumpInterface,
2877 &ett_butc_tc_statusInfoSwitchVol,
2878 &ett_butc_tc_statusInfoSwitchLabel,
2879 &ett_butc_tc_statusInfoSwitch,
2880 &ett_butc_tciStatusS,
2881 /* END OF INCLUDED FILE : ETH_ETTARR */
2886 proto_butc = proto_register_protocol("DCE/RPC BUTC", "BUTC", "butc");
2887 proto_register_field_array(proto_butc, hf, array_length(hf));
2888 proto_register_subtree_array(ett, array_length(ett));
2891 static const dcerpc_sub_dissector function_dissectors[] = {
2894 /* INCLUDED FILE : ETH_FT */
2895 { 0, "BUTC_PerformDump",
2896 butc_dissect_BUTC_PerformDump_request,
2897 butc_dissect_BUTC_PerformDump_response },
2898 { 1, "BUTC_PerformRestore",
2899 butc_dissect_BUTC_PerformRestore_request,
2900 butc_dissect_BUTC_PerformRestore_response },
2901 { 2, "BUTC_AbortDump",
2902 butc_dissect_BUTC_AbortDump_request,
2903 butc_dissect_BUTC_AbortDump_response },
2904 { 3, "BUTC_LabelTape",
2905 butc_dissect_BUTC_LabelTape_request,
2906 butc_dissect_BUTC_LabelTape_response },
2907 { 4, "BUTC_ReadLabel",
2908 butc_dissect_BUTC_ReadLabel_request,
2909 butc_dissect_BUTC_ReadLabel_response },
2910 { 5, "BUTC_ScanDumps",
2911 butc_dissect_BUTC_ScanDumps_request,
2912 butc_dissect_BUTC_ScanDumps_response },
2913 { 6, "BUTC_TCInfo",
2914 butc_dissect_BUTC_TCInfo_request,
2915 butc_dissect_BUTC_TCInfo_response },
2916 { 7, "BUTC_SaveDb",
2917 butc_dissect_BUTC_SaveDb_request,
2918 butc_dissect_BUTC_SaveDb_response },
2919 { 8, "BUTC_RestoreDb",
2920 butc_dissect_BUTC_RestoreDb_request,
2921 butc_dissect_BUTC_RestoreDb_response },
2922 { 9, "BUTC_EndStatus",
2923 butc_dissect_BUTC_EndStatus_request,
2924 butc_dissect_BUTC_EndStatus_response },
2925 { 10, "BUTC_GetStatus",
2926 butc_dissect_BUTC_GetStatus_request,
2927 butc_dissect_BUTC_GetStatus_response },
2928 { 11, "BUTC_RequestAbort",
2929 butc_dissect_BUTC_RequestAbort_request,
2930 butc_dissect_BUTC_RequestAbort_response },
2931 { 12, "BUTC_ScanStatus",
2932 butc_dissect_BUTC_ScanStatus_request,
2933 butc_dissect_BUTC_ScanStatus_response },
2934 { 13, "BUTC_GetServerInterfaces",
2935 butc_dissect_BUTC_GetServerInterfaces_request,
2936 butc_dissect_BUTC_GetServerInterfaces_response },
2937 /* END OF INCLUDED FILE : ETH_FT */
2940 { 0, NULL, NULL, NULL },
2943 void
2944 proto_reg_handoff_butc(void)
2948 /* INCLUDED FILE : ETH_HANDOFF */
2949 dcerpc_init_uuid(proto_butc, ett_butc,
2950 &uuid_dcerpc_butc, ver_butc,
2951 function_dissectors, hf_butc_opnum);
2952 /* END OF INCLUDED FILE : ETH_HANDOFF */