MSWSP: add two more Property Sets
[wireshark-wip.git] / epan / dissectors / packet-dcerpc-butc.c
blobd7f1abd64adef2446ea726edc3b5f336ef3549e9
1 /* DO NOT EDIT
2 * This dissector is autogenerated
3 */
5 /* packet-dcerpc-butc.c
6 * Routines for BUTC packet disassembly
8 * $Id$
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
29 #include "config.h"
31 #include <glib.h>
32 #include <string.h>
34 #include <epan/packet.h>
35 #include "packet-dcerpc.h"
36 #include "packet-dcerpc-nt.h"
37 #include "packet-windows-common.h"
38 #include "packet-dcerpc-butc.h"
40 static int proto_butc = -1;
43 /* INCLUDED FILE : ETH_HF */
44 static int hf_butc_opnum = -1;
45 static int hf_butc_rc = -1;
46 static int hf_butc_Restore_flags_TC_RESTORE_CREATE = -1;
47 static int hf_butc_Restore_flags_TC_RESTORE_INCR = -1;
48 static int hf_butc_afsNetAddr_type = -1;
49 static int hf_butc_afsNetAddr_data = -1;
50 static int hf_butc_tc_dumpDesc_vid = -1;
51 static int hf_butc_tc_dumpDesc_name = -1;
52 static int hf_butc_tc_dumpDesc_partition = -1;
53 static int hf_butc_tc_dumpDesc_date = -1;
54 static int hf_butc_tc_dumpDesc_cloneDate = -1;
55 static int hf_butc_tc_dumpDesc_hostAddr = -1;
56 static int hf_butc_tc_dumpDesc_spare1 = -1;
57 static int hf_butc_tc_dumpDesc_spare2 = -1;
58 static int hf_butc_tc_dumpDesc_spare3 = -1;
59 static int hf_butc_tc_dumpDesc_spare4 = -1;
60 static int hf_butc_tc_restoreDesc_frag = -1;
61 static int hf_butc_tc_restoreDesc_tapeName = -1;
62 static int hf_butc_tc_restoreDesc_position = -1;
63 static int hf_butc_tc_restoreDesc_origVid = -1;
64 static int hf_butc_tc_restoreDesc_vid = -1;
65 static int hf_butc_tc_restoreDesc_partition = -1;
66 static int hf_butc_tc_restoreDesc_flags = -1;
67 static int hf_butc_tc_restoreDesc_hostAddr = -1;
68 static int hf_butc_tc_restoreDesc_realDumpId = -1;
69 static int hf_butc_tc_restoreDesc_spare2 = -1;
70 static int hf_butc_tc_restoreDesc_spare3 = -1;
71 static int hf_butc_tc_restoreDesc_spare4 = -1;
72 static int hf_butc_tc_restoreDesc_oldName = -1;
73 static int hf_butc_tc_restoreDesc_newName = -1;
74 static int hf_butc_tc_dumpStat_dumpID = -1;
75 static int hf_butc_tc_dumpStat_bytesDumped = -1;
76 static int hf_butc_tc_dumpStat_volumeBeingDumped = -1;
77 static int hf_butc_tc_dumpStat_numVolErrs = -1;
78 static int hf_butc_tc_dumpStat_flags = -1;
79 static int hf_butc_tc_dumpStat_spare1 = -1;
80 static int hf_butc_tc_dumpStat_spare2 = -1;
81 static int hf_butc_tc_dumpStat_spare3 = -1;
82 static int hf_butc_tc_dumpStat_spare4 = -1;
83 static int hf_butc_tc_tapeLabel_size = -1;
84 static int hf_butc_tc_tapeLabel_size_ext = -1;
85 static int hf_butc_tc_tapeLabel_spare1 = -1;
86 static int hf_butc_tc_tapeLabel_spare2 = -1;
87 static int hf_butc_tc_tapeLabel_spare3 = -1;
88 static int hf_butc_tc_tapeLabel_spare4 = -1;
89 static int hf_butc_tc_tapeLabel_nameLen = -1;
90 static int hf_butc_tc_tapeLabel_name = -1;
91 static int hf_butc_tc_tapeSet_id = -1;
92 static int hf_butc_tc_tapeSet_tapeServer = -1;
93 static int hf_butc_tc_tapeSet_format = -1;
94 static int hf_butc_tc_tapeSet_maxTapes = -1;
95 static int hf_butc_tc_tapeSet_a = -1;
96 static int hf_butc_tc_tapeSet_b = -1;
97 static int hf_butc_tc_tapeSet_expDate = -1;
98 static int hf_butc_tc_tapeSet_expType = -1;
99 static int hf_butc_tc_tapeSet_spare1 = -1;
100 static int hf_butc_tc_tapeSet_spare2 = -1;
101 static int hf_butc_tc_tapeSet_spare3 = -1;
102 static int hf_butc_tc_tapeSet_spare4 = -1;
103 static int hf_butc_tc_tcInfo_tcVersion = -1;
104 static int hf_butc_tc_tcInfo_spare1 = -1;
105 static int hf_butc_tc_tcInfo_spare2 = -1;
106 static int hf_butc_tc_tcInfo_spare3 = -1;
107 static int hf_butc_tc_tcInfo_spare4 = -1;
108 static int hf_butc_tc_restoreArray_tc_restoreArray_len = -1;
109 static int hf_butc_tc_restoreArray_tc_restoreArray_val = -1;
110 static int hf_butc_tc_dumpArray_tc_dumpArray_len = -1;
111 static int hf_butc_tc_dumpArray_tc_dumpArray = -1;
112 static int hf_butc_tc_dumpInterface_dumpPath = -1;
113 static int hf_butc_tc_dumpInterface_volumeSetName = -1;
114 static int hf_butc_tc_dumpInterface_dumpName = -1;
115 static int hf_butc_tc_dumpInterface_tapeSet = -1;
116 static int hf_butc_tc_dumpInterface_parentDumpId = -1;
117 static int hf_butc_tc_dumpInterface_dumpLevel = -1;
118 static int hf_butc_tc_dumpInterface_spare1 = -1;
119 static int hf_butc_tc_dumpInterface_spare2 = -1;
120 static int hf_butc_tc_dumpInterface_spare3 = -1;
121 static int hf_butc_tc_dumpInterface_spare4 = -1;
122 static int hf_butc_tc_statusInfoSwitchVol_nKBytes = -1;
123 static int hf_butc_tc_statusInfoSwitchVol_volumeName = -1;
124 static int hf_butc_tc_statusInfoSwitchVol_volsFailed = -1;
125 static int hf_butc_tc_statusInfoSwitchVol_spare1 = -1;
126 static int hf_butc_tc_statusInfoSwitchLabel_tapeLabel = -1;
127 static int hf_butc_tc_statusInfoSwitchLabel_spare1 = -1;
128 static int hf_butc_tc_statusInfoSwitch_TCOP_NONE_none = -1;
129 static int hf_butc_tc_statusInfoSwitch_TCOP_DUMP_vol = -1;
130 static int hf_butc_tc_statusInfoSwitch_TCOP_RESTORE_vol = -1;
131 static int hf_butc_tc_statusInfoSwitch_TCOP_LABELTAPE_label = -1;
132 static int hf_butc_tc_statusInfoSwitch_TCOP_READLABEL_label = -1;
133 static int hf_butc_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1 = -1;
134 static int hf_butc_tc_statusInfoSwitch_TCOP_STATUS_spare2 = -1;
135 static int hf_butc_tc_statusInfoSwitch_TCOP_SAVEDB_spare3 = -1;
136 static int hf_butc_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4 = -1;
137 static int hf_butc_tc_statusInfoSwitch_TCOP_SPARE_spare5 = -1;
138 static int hf_butc_tciStatusS_taskName = -1;
139 static int hf_butc_tciStatusS_flags = -1;
140 static int hf_butc_tciStatusS_lastPolled = -1;
141 static int hf_butc_tciStatusS_info = -1;
142 static int hf_butc_tciStatusS_taskId = -1;
143 static int hf_butc_tciStatusS_spare2 = -1;
144 static int hf_butc_tciStatusS_spare3 = -1;
145 static int hf_butc_tciStatusS_spare4 = -1;
146 static int hf_butc_BUTC_PerformDump_tcdiPtr = -1;
147 static int hf_butc_BUTC_PerformDump_dumps = -1;
148 static int hf_butc_BUTC_PerformDump_dumpID = -1;
149 static int hf_butc_BUTC_PerformRestore_dumpSetName = -1;
150 static int hf_butc_BUTC_PerformRestore_restores = -1;
151 static int hf_butc_BUTC_PerformRestore_dumpID = -1;
152 static int hf_butc_BUTC_AbortDump_dumpID = -1;
153 static int hf_butc_BUTC_LabelTape_label = -1;
154 static int hf_butc_BUTC_LabelTape_taskId = -1;
155 static int hf_butc_BUTC_ReadLabel_taskId = -1;
156 static int hf_butc_BUTC_ScanDumps_addDbFlag = -1;
157 static int hf_butc_BUTC_ScanDumps_taskId = -1;
158 static int hf_butc_BUTC_TCInfo_tciptr = -1;
159 static int hf_butc_BUTC_SaveDb_taskId = -1;
160 static int hf_butc_BUTC_RestoreDb_taskId = -1;
161 static int hf_butc_BUTC_EndStatus_taskId = -1;
162 static int hf_butc_BUTC_GetStatus_taskId = -1;
163 static int hf_butc_BUTC_GetStatus_statusPtr = -1;
164 static int hf_butc_BUTC_RequestAbort_taskId = -1;
165 static int hf_butc_BUTC_ScanStatus_taskId = -1;
166 static int hf_butc_BUTC_ScanStatus_statusPtr = -1;
167 static int hf_butc_BUTC_ScanStatus_flags = -1;
168 /* END OF INCLUDED FILE : ETH_HF */
174 /* INCLUDED FILE : ETH_ETT */
175 static gint ett_butc = -1;
176 static gint ett_butc_Restore_flags = -1;
177 static gint ett_butc_afsNetAddr = -1;
178 static gint ett_butc_tc_dumpDesc = -1;
179 static gint ett_butc_tc_restoreDesc = -1;
180 static gint ett_butc_tc_dumpStat = -1;
181 static gint ett_butc_tc_tapeLabel = -1;
182 static gint ett_butc_tc_tapeSet = -1;
183 static gint ett_butc_tc_tcInfo = -1;
184 static gint ett_butc_tc_restoreArray = -1;
185 static gint ett_butc_tc_dumpArray = -1;
186 static gint ett_butc_tc_dumpInterface = -1;
187 static gint ett_butc_tc_statusInfoSwitchVol = -1;
188 static gint ett_butc_tc_statusInfoSwitchLabel = -1;
189 static gint ett_butc_tc_statusInfoSwitch = -1;
190 static gint ett_butc_tciStatusS = -1;
191 /* END OF INCLUDED FILE : ETH_ETT */
195 static int
196 butc_dissect_NameString_t(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di _U_, guint8 *drep, int hf_index, guint32 param _U_)
198 offset=dissect_ndr_vstring(tvb, offset, pinfo, tree, di, drep, 1, hf_index, FALSE, NULL);
199 return offset;
204 /* INCLUDED FILE : ETH_CODE */
205 static e_uuid_t uuid_dcerpc_butc = {
206 0x1d193c08, 0x000b, 0x11ca,
207 { 0xba, 0x1d, 0x02, 0x60, 0x8c, 0x2e, 0xa9, 0x6e}
210 static guint16 ver_butc = 4;
212 static const true_false_string TC_RESTORE_CREATE_tfs = {
213 "TC_RESTORE_CREATE is SET",
214 "TC_RESTORE_CREATE is NOT set"
217 static const true_false_string TC_RESTORE_INCR_tfs = {
218 "TC_RESTORE_INCR is SET",
219 "TC_RESTORE_INCR is NOT set"
224 butc_dissect_Restore_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
226 proto_item *item=NULL;
227 proto_tree *tree=NULL;
228 guint32 flags;
230 ALIGN_TO_4_BYTES;
232 if(parent_tree){
233 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, 4, ENC_LITTLE_ENDIAN);
234 tree=proto_item_add_subtree(item, ett_butc_Restore_flags);
237 offset=dissect_ndr_uint32(tvb, offset, pinfo, NULL, di, drep, -1, &flags);
240 proto_tree_add_boolean(tree, hf_butc_Restore_flags_TC_RESTORE_CREATE, tvb, offset-4, 4, flags);
241 if(flags&0x00000001){
242 proto_item_append_text(item, " TC_RESTORE_CREATE");
244 flags&=(~0x00000001);
246 proto_tree_add_boolean(tree, hf_butc_Restore_flags_TC_RESTORE_INCR, tvb, offset-4, 4, flags);
247 if(flags&0x00000002){
248 proto_item_append_text(item, " TC_RESTORE_INCR");
250 flags&=(~0x00000002);
252 if(flags){
253 proto_item_append_text(item, "UNKNOWN-FLAGS");
256 return offset;
259 static int
260 butc_dissect_uint16(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di _U_, guint8 *drep, int hf_index, guint32 param _U_)
262 offset=dissect_ndr_uint16(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
263 return offset;
266 static int
267 butc_dissect_afsNetAddr_type(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
269 guint32 param=0;
270 offset=butc_dissect_uint16(tvb, offset, pinfo, tree, di, drep, hf_butc_afsNetAddr_type, param);
271 return offset;
275 static int
276 butc_dissect_uint8(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di _U_, guint8 *drep, int hf_index, guint32 param _U_)
278 offset=dissect_ndr_uint8(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
279 return offset;
282 static int
283 butc_dissect_afsNetAddr_data(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
285 guint32 param=0;
286 offset=butc_dissect_uint8(tvb, offset, pinfo, tree, di, drep, hf_butc_afsNetAddr_data, param);
287 return offset;
290 static int
291 fixedarray_butc_dissect_afsNetAddr_data(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
293 int count=14;
294 while(count--){
295 offset=butc_dissect_afsNetAddr_data(tvb, offset, pinfo, tree, di, drep);
298 return offset;
303 butc_dissect_afsNetAddr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
305 proto_item *item=NULL;
306 proto_tree *tree=NULL;
307 int old_offset;
309 ALIGN_TO_2_BYTES;
311 old_offset=offset;
312 if(parent_tree){
313 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
314 tree=proto_item_add_subtree(item, ett_butc_afsNetAddr);
317 offset=butc_dissect_afsNetAddr_type(tvb, offset, pinfo, tree, di, drep);
319 offset=fixedarray_butc_dissect_afsNetAddr_data(tvb, offset, pinfo, tree, di, drep);
321 proto_item_set_len(item, offset-old_offset);
323 return offset;
326 static int
327 butc_dissect_udlong(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di _U_, guint8 *drep, int hf_index, guint32 param _U_)
330 offset=dissect_ndr_duint32(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
332 return offset;
335 static int
336 butc_dissect_tc_dumpDesc_vid(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
338 guint32 param=0;
339 offset=butc_dissect_udlong(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_vid, param);
340 return offset;
343 static int
344 butc_dissect_tc_dumpDesc_name(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
346 guint32 param=0;
347 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_name, param);
348 return offset;
352 static int
353 butc_dissect_int32(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di _U_, guint8 *drep, int hf_index, guint32 param _U_)
355 offset=dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
356 return offset;
359 static int
360 butc_dissect_tc_dumpDesc_partition(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
362 guint32 param=0;
363 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_partition, param);
364 return offset;
368 static int
369 butc_dissect_time_t(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di _U_, guint8 *drep, int hf_index, guint32 param _U_)
372 offset=dissect_ndr_time_t(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
374 return offset;
377 static int
378 butc_dissect_tc_dumpDesc_date(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
380 guint32 param=0;
381 offset=butc_dissect_time_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_date, param);
382 return offset;
385 static int
386 butc_dissect_tc_dumpDesc_cloneDate(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
388 guint32 param=0;
389 offset=butc_dissect_time_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_cloneDate, param);
390 return offset;
393 static int
394 butc_dissect_tc_dumpDesc_hostAddr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
396 guint32 param=0;
397 offset=butc_dissect_afsNetAddr(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_hostAddr, param);
398 return offset;
402 static int
403 butc_dissect_uint32(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di _U_, guint8 *drep, int hf_index, guint32 param _U_)
405 offset=dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_index, NULL);
406 return offset;
409 static int
410 butc_dissect_tc_dumpDesc_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
412 guint32 param=0;
413 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_spare1, param);
414 return offset;
417 static int
418 butc_dissect_tc_dumpDesc_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
420 guint32 param=0;
421 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_spare2, param);
422 return offset;
425 static int
426 butc_dissect_tc_dumpDesc_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
428 guint32 param=0;
429 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_spare3, param);
430 return offset;
433 static int
434 butc_dissect_tc_dumpDesc_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
436 guint32 param=0;
437 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpDesc_spare4, param);
438 return offset;
443 butc_dissect_tc_dumpDesc(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
445 proto_item *item=NULL;
446 proto_tree *tree=NULL;
447 int old_offset;
449 ALIGN_TO_4_BYTES;
451 old_offset=offset;
452 if(parent_tree){
453 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
454 tree=proto_item_add_subtree(item, ett_butc_tc_dumpDesc);
457 offset=butc_dissect_tc_dumpDesc_vid(tvb, offset, pinfo, tree, di, drep);
459 offset=butc_dissect_tc_dumpDesc_name(tvb, offset, pinfo, tree, di, drep);
461 offset=butc_dissect_tc_dumpDesc_partition(tvb, offset, pinfo, tree, di, drep);
463 offset=butc_dissect_tc_dumpDesc_date(tvb, offset, pinfo, tree, di, drep);
465 offset=butc_dissect_tc_dumpDesc_cloneDate(tvb, offset, pinfo, tree, di, drep);
467 offset=butc_dissect_tc_dumpDesc_hostAddr(tvb, offset, pinfo, tree, di, drep);
469 offset=butc_dissect_tc_dumpDesc_spare1(tvb, offset, pinfo, tree, di, drep);
471 offset=butc_dissect_tc_dumpDesc_spare2(tvb, offset, pinfo, tree, di, drep);
473 offset=butc_dissect_tc_dumpDesc_spare3(tvb, offset, pinfo, tree, di, drep);
475 offset=butc_dissect_tc_dumpDesc_spare4(tvb, offset, pinfo, tree, di, drep);
477 proto_item_set_len(item, offset-old_offset);
479 return offset;
481 static int
482 butc_dissect_tc_restoreDesc_frag(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
484 guint32 param=0;
485 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_frag, param);
486 return offset;
489 static int
490 butc_dissect_tc_restoreDesc_tapeName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
492 guint32 param=0;
493 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_tapeName, param);
494 return offset;
497 static int
498 butc_dissect_tc_restoreDesc_position(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
500 guint32 param=0;
501 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_position, param);
502 return offset;
505 static int
506 butc_dissect_tc_restoreDesc_origVid(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
508 guint32 param=0;
509 offset=butc_dissect_udlong(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_origVid, param);
510 return offset;
513 static int
514 butc_dissect_tc_restoreDesc_vid(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
516 guint32 param=0;
517 offset=butc_dissect_udlong(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_vid, param);
518 return offset;
521 static int
522 butc_dissect_tc_restoreDesc_partition(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
524 guint32 param=0;
525 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_partition, param);
526 return offset;
529 static int
530 butc_dissect_tc_restoreDesc_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
532 guint32 param=0;
533 offset=butc_dissect_Restore_flags(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_flags, param);
534 return offset;
537 static int
538 butc_dissect_tc_restoreDesc_hostAddr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
540 guint32 param=0;
541 offset=butc_dissect_afsNetAddr(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_hostAddr, param);
542 return offset;
545 static int
546 butc_dissect_tc_restoreDesc_realDumpId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
548 guint32 param=0;
549 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_realDumpId, param);
550 return offset;
553 static int
554 butc_dissect_tc_restoreDesc_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
556 guint32 param=0;
557 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_spare2, param);
558 return offset;
561 static int
562 butc_dissect_tc_restoreDesc_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
564 guint32 param=0;
565 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_spare3, param);
566 return offset;
569 static int
570 butc_dissect_tc_restoreDesc_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
572 guint32 param=0;
573 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_spare4, param);
574 return offset;
577 static int
578 butc_dissect_tc_restoreDesc_oldName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
580 guint32 param=0;
581 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_oldName, param);
582 return offset;
585 static int
586 butc_dissect_tc_restoreDesc_newName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
588 guint32 param=0;
589 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreDesc_newName, param);
590 return offset;
595 butc_dissect_tc_restoreDesc(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
597 proto_item *item=NULL;
598 proto_tree *tree=NULL;
599 int old_offset;
601 ALIGN_TO_4_BYTES;
603 old_offset=offset;
604 if(parent_tree){
605 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
606 tree=proto_item_add_subtree(item, ett_butc_tc_restoreDesc);
609 offset=butc_dissect_tc_restoreDesc_frag(tvb, offset, pinfo, tree, di, drep);
611 offset=butc_dissect_tc_restoreDesc_tapeName(tvb, offset, pinfo, tree, di, drep);
613 offset=butc_dissect_tc_restoreDesc_position(tvb, offset, pinfo, tree, di, drep);
615 offset=butc_dissect_tc_restoreDesc_origVid(tvb, offset, pinfo, tree, di, drep);
617 offset=butc_dissect_tc_restoreDesc_vid(tvb, offset, pinfo, tree, di, drep);
619 offset=butc_dissect_tc_restoreDesc_partition(tvb, offset, pinfo, tree, di, drep);
621 offset=butc_dissect_tc_restoreDesc_flags(tvb, offset, pinfo, tree, di, drep);
623 offset=butc_dissect_tc_restoreDesc_hostAddr(tvb, offset, pinfo, tree, di, drep);
625 offset=butc_dissect_tc_restoreDesc_realDumpId(tvb, offset, pinfo, tree, di, drep);
627 offset=butc_dissect_tc_restoreDesc_spare2(tvb, offset, pinfo, tree, di, drep);
629 offset=butc_dissect_tc_restoreDesc_spare3(tvb, offset, pinfo, tree, di, drep);
631 offset=butc_dissect_tc_restoreDesc_spare4(tvb, offset, pinfo, tree, di, drep);
633 offset=butc_dissect_tc_restoreDesc_oldName(tvb, offset, pinfo, tree, di, drep);
635 offset=butc_dissect_tc_restoreDesc_newName(tvb, offset, pinfo, tree, di, drep);
637 proto_item_set_len(item, offset-old_offset);
639 return offset;
641 static int
642 butc_dissect_tc_dumpStat_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
644 guint32 param=0;
645 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_dumpID, param);
646 return offset;
649 static int
650 butc_dissect_tc_dumpStat_bytesDumped(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
652 guint32 param=0;
653 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_bytesDumped, param);
654 return offset;
657 static int
658 butc_dissect_tc_dumpStat_volumeBeingDumped(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
660 guint32 param=0;
661 offset=butc_dissect_udlong(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_volumeBeingDumped, param);
662 return offset;
665 static int
666 butc_dissect_tc_dumpStat_numVolErrs(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
668 guint32 param=0;
669 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_numVolErrs, param);
670 return offset;
673 static int
674 butc_dissect_tc_dumpStat_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
676 guint32 param=0;
677 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_flags, param);
678 return offset;
681 static int
682 butc_dissect_tc_dumpStat_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
684 guint32 param=0;
685 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_spare1, param);
686 return offset;
689 static int
690 butc_dissect_tc_dumpStat_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
692 guint32 param=0;
693 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_spare2, param);
694 return offset;
697 static int
698 butc_dissect_tc_dumpStat_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
700 guint32 param=0;
701 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_spare3, param);
702 return offset;
705 static int
706 butc_dissect_tc_dumpStat_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
708 guint32 param=0;
709 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpStat_spare4, param);
710 return offset;
715 butc_dissect_tc_dumpStat(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
717 proto_item *item=NULL;
718 proto_tree *tree=NULL;
719 int old_offset;
721 ALIGN_TO_4_BYTES;
723 old_offset=offset;
724 if(parent_tree){
725 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
726 tree=proto_item_add_subtree(item, ett_butc_tc_dumpStat);
729 offset=butc_dissect_tc_dumpStat_dumpID(tvb, offset, pinfo, tree, di, drep);
731 offset=butc_dissect_tc_dumpStat_bytesDumped(tvb, offset, pinfo, tree, di, drep);
733 offset=butc_dissect_tc_dumpStat_volumeBeingDumped(tvb, offset, pinfo, tree, di, drep);
735 offset=butc_dissect_tc_dumpStat_numVolErrs(tvb, offset, pinfo, tree, di, drep);
737 offset=butc_dissect_tc_dumpStat_flags(tvb, offset, pinfo, tree, di, drep);
739 offset=butc_dissect_tc_dumpStat_spare1(tvb, offset, pinfo, tree, di, drep);
741 offset=butc_dissect_tc_dumpStat_spare2(tvb, offset, pinfo, tree, di, drep);
743 offset=butc_dissect_tc_dumpStat_spare3(tvb, offset, pinfo, tree, di, drep);
745 offset=butc_dissect_tc_dumpStat_spare4(tvb, offset, pinfo, tree, di, drep);
747 proto_item_set_len(item, offset-old_offset);
749 return offset;
751 static int
752 butc_dissect_tc_tapeLabel_size(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
754 guint32 param=0;
755 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_size, param);
756 return offset;
759 static int
760 butc_dissect_tc_tapeLabel_size_ext(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
762 guint32 param=0;
763 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_size_ext, param);
764 return offset;
767 static int
768 butc_dissect_tc_tapeLabel_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
770 guint32 param=0;
771 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_spare1, param);
772 return offset;
775 static int
776 butc_dissect_tc_tapeLabel_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
778 guint32 param=0;
779 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_spare2, param);
780 return offset;
783 static int
784 butc_dissect_tc_tapeLabel_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
786 guint32 param=0;
787 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_spare3, param);
788 return offset;
791 static int
792 butc_dissect_tc_tapeLabel_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
794 guint32 param=0;
795 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_spare4, param);
796 return offset;
799 static int
800 butc_dissect_tc_tapeLabel_nameLen(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
802 guint32 param=0;
803 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_nameLen, param);
804 return offset;
807 static int
808 butc_dissect_tc_tapeLabel_name(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
810 guint32 param=0;
811 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeLabel_name, param);
812 return offset;
817 butc_dissect_tc_tapeLabel(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
819 proto_item *item=NULL;
820 proto_tree *tree=NULL;
821 int old_offset;
823 ALIGN_TO_4_BYTES;
825 old_offset=offset;
826 if(parent_tree){
827 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
828 tree=proto_item_add_subtree(item, ett_butc_tc_tapeLabel);
831 offset=butc_dissect_tc_tapeLabel_size(tvb, offset, pinfo, tree, di, drep);
833 offset=butc_dissect_tc_tapeLabel_size_ext(tvb, offset, pinfo, tree, di, drep);
835 offset=butc_dissect_tc_tapeLabel_spare1(tvb, offset, pinfo, tree, di, drep);
837 offset=butc_dissect_tc_tapeLabel_spare2(tvb, offset, pinfo, tree, di, drep);
839 offset=butc_dissect_tc_tapeLabel_spare3(tvb, offset, pinfo, tree, di, drep);
841 offset=butc_dissect_tc_tapeLabel_spare4(tvb, offset, pinfo, tree, di, drep);
843 offset=butc_dissect_tc_tapeLabel_nameLen(tvb, offset, pinfo, tree, di, drep);
845 offset=butc_dissect_tc_tapeLabel_name(tvb, offset, pinfo, tree, di, drep);
847 proto_item_set_len(item, offset-old_offset);
849 return offset;
851 static int
852 butc_dissect_tc_tapeSet_id(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
854 guint32 param=0;
855 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_id, param);
856 return offset;
859 static int
860 butc_dissect_tc_tapeSet_tapeServer(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
862 guint32 param=0;
863 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_tapeServer, param);
864 return offset;
867 static int
868 butc_dissect_tc_tapeSet_format(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
870 guint32 param=0;
871 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_format, param);
872 return offset;
875 static int
876 butc_dissect_tc_tapeSet_maxTapes(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
878 guint32 param=0;
879 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_maxTapes, param);
880 return offset;
883 static int
884 butc_dissect_tc_tapeSet_a(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
886 guint32 param=0;
887 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_a, param);
888 return offset;
891 static int
892 butc_dissect_tc_tapeSet_b(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
894 guint32 param=0;
895 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_b, param);
896 return offset;
899 static int
900 butc_dissect_tc_tapeSet_expDate(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
902 guint32 param=0;
903 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_expDate, param);
904 return offset;
907 static int
908 butc_dissect_tc_tapeSet_expType(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
910 guint32 param=0;
911 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_expType, param);
912 return offset;
915 static int
916 butc_dissect_tc_tapeSet_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
918 guint32 param=0;
919 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_spare1, param);
920 return offset;
923 static int
924 butc_dissect_tc_tapeSet_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
926 guint32 param=0;
927 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_spare2, param);
928 return offset;
931 static int
932 butc_dissect_tc_tapeSet_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
934 guint32 param=0;
935 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_spare3, param);
936 return offset;
939 static int
940 butc_dissect_tc_tapeSet_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
942 guint32 param=0;
943 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tapeSet_spare4, param);
944 return offset;
949 butc_dissect_tc_tapeSet(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
951 proto_item *item=NULL;
952 proto_tree *tree=NULL;
953 int old_offset;
955 ALIGN_TO_4_BYTES;
957 old_offset=offset;
958 if(parent_tree){
959 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
960 tree=proto_item_add_subtree(item, ett_butc_tc_tapeSet);
963 offset=butc_dissect_tc_tapeSet_id(tvb, offset, pinfo, tree, di, drep);
965 offset=butc_dissect_tc_tapeSet_tapeServer(tvb, offset, pinfo, tree, di, drep);
967 offset=butc_dissect_tc_tapeSet_format(tvb, offset, pinfo, tree, di, drep);
969 offset=butc_dissect_tc_tapeSet_maxTapes(tvb, offset, pinfo, tree, di, drep);
971 offset=butc_dissect_tc_tapeSet_a(tvb, offset, pinfo, tree, di, drep);
973 offset=butc_dissect_tc_tapeSet_b(tvb, offset, pinfo, tree, di, drep);
975 offset=butc_dissect_tc_tapeSet_expDate(tvb, offset, pinfo, tree, di, drep);
977 offset=butc_dissect_tc_tapeSet_expType(tvb, offset, pinfo, tree, di, drep);
979 offset=butc_dissect_tc_tapeSet_spare1(tvb, offset, pinfo, tree, di, drep);
981 offset=butc_dissect_tc_tapeSet_spare2(tvb, offset, pinfo, tree, di, drep);
983 offset=butc_dissect_tc_tapeSet_spare3(tvb, offset, pinfo, tree, di, drep);
985 offset=butc_dissect_tc_tapeSet_spare4(tvb, offset, pinfo, tree, di, drep);
987 proto_item_set_len(item, offset-old_offset);
989 return offset;
991 static int
992 butc_dissect_tc_tcInfo_tcVersion(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
994 guint32 param=0;
995 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_tcVersion, param);
996 return offset;
999 static int
1000 butc_dissect_tc_tcInfo_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1002 guint32 param=0;
1003 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_spare1, param);
1004 return offset;
1007 static int
1008 butc_dissect_tc_tcInfo_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1010 guint32 param=0;
1011 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_spare2, param);
1012 return offset;
1015 static int
1016 butc_dissect_tc_tcInfo_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1018 guint32 param=0;
1019 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_spare3, param);
1020 return offset;
1023 static int
1024 butc_dissect_tc_tcInfo_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1026 guint32 param=0;
1027 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_tcInfo_spare4, param);
1028 return offset;
1033 butc_dissect_tc_tcInfo(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
1035 proto_item *item=NULL;
1036 proto_tree *tree=NULL;
1037 int old_offset;
1039 ALIGN_TO_4_BYTES;
1041 old_offset=offset;
1042 if(parent_tree){
1043 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1044 tree=proto_item_add_subtree(item, ett_butc_tc_tcInfo);
1047 offset=butc_dissect_tc_tcInfo_tcVersion(tvb, offset, pinfo, tree, di, drep);
1049 offset=butc_dissect_tc_tcInfo_spare1(tvb, offset, pinfo, tree, di, drep);
1051 offset=butc_dissect_tc_tcInfo_spare2(tvb, offset, pinfo, tree, di, drep);
1053 offset=butc_dissect_tc_tcInfo_spare3(tvb, offset, pinfo, tree, di, drep);
1055 offset=butc_dissect_tc_tcInfo_spare4(tvb, offset, pinfo, tree, di, drep);
1057 proto_item_set_len(item, offset-old_offset);
1059 return offset;
1061 static int
1062 butc_dissect_tc_restoreArray_tc_restoreArray_len(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1064 guint32 param=0;
1065 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreArray_tc_restoreArray_len, param);
1066 return offset;
1069 static int
1070 butc_dissect_tc_restoreArray_tc_restoreArray_val(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1072 guint32 param=0;
1073 offset=butc_dissect_tc_restoreDesc(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_restoreArray_tc_restoreArray_val, param);
1074 return offset;
1077 static int
1078 ptr_butc_dissect_tc_restoreArray_tc_restoreArray_val(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1080 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);
1081 return offset;
1084 static int
1085 ucarray_ptr_butc_dissect_tc_restoreArray_tc_restoreArray_val(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1087 offset=dissect_ndr_ucarray(tvb, offset, pinfo, tree, di, drep, ptr_butc_dissect_tc_restoreArray_tc_restoreArray_val);
1088 return offset;
1093 butc_dissect_tc_restoreArray(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
1095 proto_item *item=NULL;
1096 proto_tree *tree=NULL;
1097 int old_offset;
1099 ALIGN_TO_4_BYTES;
1101 old_offset=offset;
1102 if(parent_tree){
1103 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1104 tree=proto_item_add_subtree(item, ett_butc_tc_restoreArray);
1107 offset=butc_dissect_tc_restoreArray_tc_restoreArray_len(tvb, offset, pinfo, tree, di, drep);
1109 offset=ucarray_ptr_butc_dissect_tc_restoreArray_tc_restoreArray_val(tvb, offset, pinfo, tree, di, drep);
1111 proto_item_set_len(item, offset-old_offset);
1113 return offset;
1115 static int
1116 butc_dissect_tc_dumpArray_tc_dumpArray_len(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1118 guint32 param=0;
1119 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpArray_tc_dumpArray_len, param);
1120 return offset;
1123 static int
1124 butc_dissect_tc_dumpArray_tc_dumpArray(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1126 guint32 param=0;
1127 offset=butc_dissect_tc_dumpDesc(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpArray_tc_dumpArray, param);
1128 return offset;
1131 static int
1132 ptr_butc_dissect_tc_dumpArray_tc_dumpArray(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1134 offset=dissect_ndr_embedded_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_tc_dumpArray_tc_dumpArray, NDR_POINTER_PTR, "tc_dumpArray", -1);
1135 return offset;
1138 static int
1139 ucarray_ptr_butc_dissect_tc_dumpArray_tc_dumpArray(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1141 offset=dissect_ndr_ucarray(tvb, offset, pinfo, tree, di, drep, ptr_butc_dissect_tc_dumpArray_tc_dumpArray);
1142 return offset;
1147 butc_dissect_tc_dumpArray(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
1149 proto_item *item=NULL;
1150 proto_tree *tree=NULL;
1151 int old_offset;
1153 ALIGN_TO_4_BYTES;
1155 old_offset=offset;
1156 if(parent_tree){
1157 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1158 tree=proto_item_add_subtree(item, ett_butc_tc_dumpArray);
1161 offset=butc_dissect_tc_dumpArray_tc_dumpArray_len(tvb, offset, pinfo, tree, di, drep);
1163 offset=ucarray_ptr_butc_dissect_tc_dumpArray_tc_dumpArray(tvb, offset, pinfo, tree, di, drep);
1165 proto_item_set_len(item, offset-old_offset);
1167 return offset;
1169 static int
1170 butc_dissect_tc_dumpInterface_dumpPath(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1172 guint32 param=0;
1173 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_dumpPath, param);
1174 return offset;
1177 static int
1178 butc_dissect_tc_dumpInterface_volumeSetName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1180 guint32 param=0;
1181 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_volumeSetName, param);
1182 return offset;
1185 static int
1186 butc_dissect_tc_dumpInterface_dumpName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1188 guint32 param=0;
1189 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_dumpName, param);
1190 return offset;
1193 static int
1194 butc_dissect_tc_dumpInterface_tapeSet(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1196 guint32 param=0;
1197 offset=butc_dissect_tc_tapeSet(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_tapeSet, param);
1198 return offset;
1201 static int
1202 butc_dissect_tc_dumpInterface_parentDumpId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1204 guint32 param=0;
1205 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_parentDumpId, param);
1206 return offset;
1209 static int
1210 butc_dissect_tc_dumpInterface_dumpLevel(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1212 guint32 param=0;
1213 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_dumpLevel, param);
1214 return offset;
1217 static int
1218 butc_dissect_tc_dumpInterface_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1220 guint32 param=0;
1221 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_spare1, param);
1222 return offset;
1225 static int
1226 butc_dissect_tc_dumpInterface_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1228 guint32 param=0;
1229 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_spare2, param);
1230 return offset;
1233 static int
1234 butc_dissect_tc_dumpInterface_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1236 guint32 param=0;
1237 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_spare3, param);
1238 return offset;
1241 static int
1242 butc_dissect_tc_dumpInterface_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1244 guint32 param=0;
1245 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_dumpInterface_spare4, param);
1246 return offset;
1251 butc_dissect_tc_dumpInterface(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
1253 proto_item *item=NULL;
1254 proto_tree *tree=NULL;
1255 int old_offset;
1257 ALIGN_TO_4_BYTES;
1259 old_offset=offset;
1260 if(parent_tree){
1261 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1262 tree=proto_item_add_subtree(item, ett_butc_tc_dumpInterface);
1265 offset=butc_dissect_tc_dumpInterface_dumpPath(tvb, offset, pinfo, tree, di, drep);
1267 offset=butc_dissect_tc_dumpInterface_volumeSetName(tvb, offset, pinfo, tree, di, drep);
1269 offset=butc_dissect_tc_dumpInterface_dumpName(tvb, offset, pinfo, tree, di, drep);
1271 offset=butc_dissect_tc_dumpInterface_tapeSet(tvb, offset, pinfo, tree, di, drep);
1273 offset=butc_dissect_tc_dumpInterface_parentDumpId(tvb, offset, pinfo, tree, di, drep);
1275 offset=butc_dissect_tc_dumpInterface_dumpLevel(tvb, offset, pinfo, tree, di, drep);
1277 offset=butc_dissect_tc_dumpInterface_spare1(tvb, offset, pinfo, tree, di, drep);
1279 offset=butc_dissect_tc_dumpInterface_spare2(tvb, offset, pinfo, tree, di, drep);
1281 offset=butc_dissect_tc_dumpInterface_spare3(tvb, offset, pinfo, tree, di, drep);
1283 offset=butc_dissect_tc_dumpInterface_spare4(tvb, offset, pinfo, tree, di, drep);
1285 proto_item_set_len(item, offset-old_offset);
1287 return offset;
1289 static int
1290 butc_dissect_tc_statusInfoSwitchVol_nKBytes(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1292 guint32 param=0;
1293 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchVol_nKBytes, param);
1294 return offset;
1297 static int
1298 butc_dissect_tc_statusInfoSwitchVol_volumeName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1300 guint32 param=0;
1301 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchVol_volumeName, param);
1302 return offset;
1305 static int
1306 butc_dissect_tc_statusInfoSwitchVol_volsFailed(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1308 guint32 param=0;
1309 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchVol_volsFailed, param);
1310 return offset;
1313 static int
1314 butc_dissect_tc_statusInfoSwitchVol_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1316 guint32 param=0;
1317 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchVol_spare1, param);
1318 return offset;
1323 butc_dissect_tc_statusInfoSwitchVol(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
1325 proto_item *item=NULL;
1326 proto_tree *tree=NULL;
1327 int old_offset;
1329 ALIGN_TO_4_BYTES;
1331 old_offset=offset;
1332 if(parent_tree){
1333 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1334 tree=proto_item_add_subtree(item, ett_butc_tc_statusInfoSwitchVol);
1337 offset=butc_dissect_tc_statusInfoSwitchVol_nKBytes(tvb, offset, pinfo, tree, di, drep);
1339 offset=butc_dissect_tc_statusInfoSwitchVol_volumeName(tvb, offset, pinfo, tree, di, drep);
1341 offset=butc_dissect_tc_statusInfoSwitchVol_volsFailed(tvb, offset, pinfo, tree, di, drep);
1343 offset=butc_dissect_tc_statusInfoSwitchVol_spare1(tvb, offset, pinfo, tree, di, drep);
1345 proto_item_set_len(item, offset-old_offset);
1347 return offset;
1349 static int
1350 butc_dissect_tc_statusInfoSwitchLabel_tapeLabel(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1352 guint32 param=0;
1353 offset=butc_dissect_tc_tapeLabel(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchLabel_tapeLabel, param);
1354 return offset;
1357 static int
1358 butc_dissect_tc_statusInfoSwitchLabel_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1360 guint32 param=0;
1361 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitchLabel_spare1, param);
1362 return offset;
1367 butc_dissect_tc_statusInfoSwitchLabel(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
1369 proto_item *item=NULL;
1370 proto_tree *tree=NULL;
1371 int old_offset;
1373 ALIGN_TO_4_BYTES;
1375 old_offset=offset;
1376 if(parent_tree){
1377 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1378 tree=proto_item_add_subtree(item, ett_butc_tc_statusInfoSwitchLabel);
1381 offset=butc_dissect_tc_statusInfoSwitchLabel_tapeLabel(tvb, offset, pinfo, tree, di, drep);
1383 offset=butc_dissect_tc_statusInfoSwitchLabel_spare1(tvb, offset, pinfo, tree, di, drep);
1385 proto_item_set_len(item, offset-old_offset);
1387 return offset;
1389 static int
1390 butc_dissect_union_tc_statusInfoSwitch_TCOP_NONE_none(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1392 guint32 param=0;
1393 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_NONE_none, param);
1394 return offset;
1397 static int
1398 butc_dissect_union_tc_statusInfoSwitch_TCOP_DUMP_vol(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1400 guint32 param=0;
1401 offset=butc_dissect_tc_statusInfoSwitchVol(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_DUMP_vol, param);
1402 return offset;
1405 static int
1406 butc_dissect_union_tc_statusInfoSwitch_TCOP_RESTORE_vol(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1408 guint32 param=0;
1409 offset=butc_dissect_tc_statusInfoSwitchVol(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_RESTORE_vol, param);
1410 return offset;
1413 static int
1414 butc_dissect_union_tc_statusInfoSwitch_TCOP_LABELTAPE_label(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1416 guint32 param=0;
1417 offset=butc_dissect_tc_statusInfoSwitchLabel(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_LABELTAPE_label, param);
1418 return offset;
1421 static int
1422 butc_dissect_union_tc_statusInfoSwitch_TCOP_READLABEL_label(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1424 guint32 param=0;
1425 offset=butc_dissect_tc_statusInfoSwitchLabel(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_READLABEL_label, param);
1426 return offset;
1429 static int
1430 butc_dissect_union_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1432 guint32 param=0;
1433 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1, param);
1434 return offset;
1437 static int
1438 butc_dissect_union_tc_statusInfoSwitch_TCOP_STATUS_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1440 guint32 param=0;
1441 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_STATUS_spare2, param);
1442 return offset;
1445 static int
1446 butc_dissect_union_tc_statusInfoSwitch_TCOP_SAVEDB_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1448 guint32 param=0;
1449 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_SAVEDB_spare3, param);
1450 return offset;
1453 static int
1454 butc_dissect_union_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1456 guint32 param=0;
1457 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4, param);
1458 return offset;
1461 static int
1462 butc_dissect_union_tc_statusInfoSwitch_TCOP_SPARE_spare5(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1464 guint32 param=0;
1465 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tc_statusInfoSwitch_TCOP_SPARE_spare5, param);
1466 return offset;
1470 static int
1471 butc_dissect_union_tc_statusInfoSwitch(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
1473 proto_item *item=NULL;
1474 proto_tree *tree=NULL;
1475 int old_offset;
1476 guint32 level = 0;
1478 ALIGN_TO_4_BYTES;
1480 old_offset=offset;
1481 if(parent_tree){
1482 item=proto_tree_add_text(parent_tree, tvb, offset, -1, "tc_statusInfoSwitch");
1483 tree=proto_item_add_subtree(item, ett_butc_tc_statusInfoSwitch);
1486 offset=dissect_ndr_uint32(tvb, offset, pinfo, tree,
1487 di, drep, hf_index, &level);
1489 switch(level){
1490 case TCOP_NONE:
1491 ALIGN_TO_4_BYTES;
1492 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_NONE_none(tvb, offset, pinfo, tree, di, drep);
1493 break;
1495 case TCOP_DUMP:
1496 ALIGN_TO_4_BYTES;
1497 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_DUMP_vol(tvb, offset, pinfo, tree, di, drep);
1498 break;
1500 case TCOP_RESTORE:
1501 ALIGN_TO_4_BYTES;
1502 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_RESTORE_vol(tvb, offset, pinfo, tree, di, drep);
1503 break;
1505 case TCOP_LABELTAPE:
1506 ALIGN_TO_4_BYTES;
1507 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_LABELTAPE_label(tvb, offset, pinfo, tree, di, drep);
1508 break;
1510 case TCOP_READLABEL:
1511 ALIGN_TO_4_BYTES;
1512 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_READLABEL_label(tvb, offset, pinfo, tree, di, drep);
1513 break;
1515 case TCOP_SCANTAPE:
1516 ALIGN_TO_4_BYTES;
1517 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1(tvb, offset, pinfo, tree, di, drep);
1518 break;
1520 case TCOP_STATUS:
1521 ALIGN_TO_4_BYTES;
1522 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_STATUS_spare2(tvb, offset, pinfo, tree, di, drep);
1523 break;
1525 case TCOP_SAVEDB:
1526 ALIGN_TO_4_BYTES;
1527 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_SAVEDB_spare3(tvb, offset, pinfo, tree, di, drep);
1528 break;
1530 case TCOP_RESTOREDB:
1531 ALIGN_TO_4_BYTES;
1532 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4(tvb, offset, pinfo, tree, di, drep);
1533 break;
1535 case TCOP_SPARE:
1536 ALIGN_TO_4_BYTES;
1537 offset=butc_dissect_union_tc_statusInfoSwitch_TCOP_SPARE_spare5(tvb, offset, pinfo, tree, di, drep);
1538 break;
1542 proto_item_set_len(item, offset-old_offset);
1544 return offset;
1546 static int
1547 butc_dissect_tciStatusS_taskName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1549 guint32 param=0;
1550 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_taskName, param);
1551 return offset;
1554 static int
1555 butc_dissect_tciStatusS_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1557 guint32 param=0;
1558 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_flags, param);
1559 return offset;
1562 static int
1563 butc_dissect_tciStatusS_lastPolled(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1565 guint32 param=0;
1566 offset=butc_dissect_time_t(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_lastPolled, param);
1567 return offset;
1570 static int
1571 butc_dissect_tciStatusS_info(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1573 guint32 param=0;
1574 offset=butc_dissect_union_tc_statusInfoSwitch(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_info, param);
1575 return offset;
1578 static int
1579 butc_dissect_tciStatusS_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1581 guint32 param=0;
1582 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_taskId, param);
1583 return offset;
1586 static int
1587 butc_dissect_tciStatusS_spare2(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1589 guint32 param=0;
1590 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_spare2, param);
1591 return offset;
1594 static int
1595 butc_dissect_tciStatusS_spare3(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1597 guint32 param=0;
1598 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_spare3, param);
1599 return offset;
1602 static int
1603 butc_dissect_tciStatusS_spare4(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1605 guint32 param=0;
1606 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_tciStatusS_spare4, param);
1607 return offset;
1612 butc_dissect_tciStatusS(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *parent_tree, dcerpc_info* di, guint8 *drep, int hf_index, guint32 param _U_)
1614 proto_item *item=NULL;
1615 proto_tree *tree=NULL;
1616 int old_offset;
1618 ALIGN_TO_4_BYTES;
1620 old_offset=offset;
1621 if(parent_tree){
1622 item=proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
1623 tree=proto_item_add_subtree(item, ett_butc_tciStatusS);
1626 offset=butc_dissect_tciStatusS_taskName(tvb, offset, pinfo, tree, di, drep);
1628 offset=butc_dissect_tciStatusS_flags(tvb, offset, pinfo, tree, di, drep);
1630 offset=butc_dissect_tciStatusS_lastPolled(tvb, offset, pinfo, tree, di, drep);
1632 offset=butc_dissect_tciStatusS_info(tvb, offset, pinfo, tree, di, drep);
1634 offset=butc_dissect_tciStatusS_taskId(tvb, offset, pinfo, tree, di, drep);
1636 offset=butc_dissect_tciStatusS_spare2(tvb, offset, pinfo, tree, di, drep);
1638 offset=butc_dissect_tciStatusS_spare3(tvb, offset, pinfo, tree, di, drep);
1640 offset=butc_dissect_tciStatusS_spare4(tvb, offset, pinfo, tree, di, drep);
1642 proto_item_set_len(item, offset-old_offset);
1644 return offset;
1646 static int
1647 butc_dissect_BUTC_PerformDump_tcdiPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1649 guint32 param=0;
1650 offset=butc_dissect_tc_dumpInterface(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformDump_tcdiPtr, param);
1651 return offset;
1654 static int
1655 ref_butc_dissect_BUTC_PerformDump_tcdiPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1657 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformDump_tcdiPtr, NDR_POINTER_REF, "tcdiPtr", -1);
1658 return offset;
1661 static int
1662 butc_dissect_BUTC_PerformDump_dumps(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1664 guint32 param=0;
1665 offset=butc_dissect_tc_dumpArray(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformDump_dumps, param);
1666 return offset;
1669 static int
1670 ref_butc_dissect_BUTC_PerformDump_dumps(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1672 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformDump_dumps, NDR_POINTER_REF, "dumps", -1);
1673 return offset;
1676 static int
1677 butc_dissect_BUTC_PerformDump_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1679 guint32 param=0;
1680 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformDump_dumpID, param);
1681 return offset;
1684 static int
1685 ref_butc_dissect_BUTC_PerformDump_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1687 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformDump_dumpID, NDR_POINTER_REF, "dumpID", -1);
1688 return offset;
1692 static int
1693 butc_dissect_BUTC_PerformDump_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1695 offset=ref_butc_dissect_BUTC_PerformDump_tcdiPtr(tvb, offset, pinfo, tree, di, drep);
1696 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1698 offset=ref_butc_dissect_BUTC_PerformDump_dumps(tvb, offset, pinfo, tree, di, drep);
1699 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1702 return offset;
1705 static int
1706 butc_dissect_BUTC_PerformDump_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1708 offset=ref_butc_dissect_BUTC_PerformDump_dumpID(tvb, offset, pinfo, tree, di, drep);
1709 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1711 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1714 return offset;
1716 static int
1717 butc_dissect_BUTC_PerformRestore_dumpSetName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1719 guint32 param=0;
1720 offset=butc_dissect_NameString_t(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformRestore_dumpSetName, param);
1721 return offset;
1724 static int
1725 ptr_butc_dissect_BUTC_PerformRestore_dumpSetName(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1727 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformRestore_dumpSetName, NDR_POINTER_PTR, "dumpSetName", -1);
1728 return offset;
1731 static int
1732 butc_dissect_BUTC_PerformRestore_restores(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1734 guint32 param=0;
1735 offset=butc_dissect_tc_restoreArray(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformRestore_restores, param);
1736 return offset;
1739 static int
1740 ref_butc_dissect_BUTC_PerformRestore_restores(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1742 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformRestore_restores, NDR_POINTER_REF, "restores", -1);
1743 return offset;
1746 static int
1747 butc_dissect_BUTC_PerformRestore_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1749 guint32 param=0;
1750 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_PerformRestore_dumpID, param);
1751 return offset;
1754 static int
1755 ref_butc_dissect_BUTC_PerformRestore_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1757 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_PerformRestore_dumpID, NDR_POINTER_REF, "dumpID", -1);
1758 return offset;
1762 static int
1763 butc_dissect_BUTC_PerformRestore_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1765 offset=ptr_butc_dissect_BUTC_PerformRestore_dumpSetName(tvb, offset, pinfo, tree, di, drep);
1766 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1768 offset=ref_butc_dissect_BUTC_PerformRestore_restores(tvb, offset, pinfo, tree, di, drep);
1769 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1772 return offset;
1775 static int
1776 butc_dissect_BUTC_PerformRestore_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1778 offset=ref_butc_dissect_BUTC_PerformRestore_dumpID(tvb, offset, pinfo, tree, di, drep);
1779 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1781 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1784 return offset;
1786 static int
1787 butc_dissect_BUTC_AbortDump_dumpID(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1789 guint32 param=0;
1790 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_AbortDump_dumpID, param);
1791 return offset;
1795 static int
1796 butc_dissect_BUTC_AbortDump_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1798 offset=butc_dissect_BUTC_AbortDump_dumpID(tvb, offset, pinfo, tree, di, drep);
1799 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1802 return offset;
1805 static int
1806 butc_dissect_BUTC_AbortDump_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1808 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1811 return offset;
1813 static int
1814 butc_dissect_BUTC_LabelTape_label(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1816 guint32 param=0;
1817 offset=butc_dissect_tc_tapeLabel(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_LabelTape_label, param);
1818 return offset;
1821 static int
1822 ref_butc_dissect_BUTC_LabelTape_label(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1824 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_LabelTape_label, NDR_POINTER_REF, "label", -1);
1825 return offset;
1828 static int
1829 butc_dissect_BUTC_LabelTape_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1831 guint32 param=0;
1832 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_LabelTape_taskId, param);
1833 return offset;
1836 static int
1837 ref_butc_dissect_BUTC_LabelTape_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1839 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_LabelTape_taskId, NDR_POINTER_REF, "taskId", -1);
1840 return offset;
1844 static int
1845 butc_dissect_BUTC_LabelTape_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1847 offset=ref_butc_dissect_BUTC_LabelTape_label(tvb, offset, pinfo, tree, di, drep);
1848 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1851 return offset;
1854 static int
1855 butc_dissect_BUTC_LabelTape_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1857 offset=ref_butc_dissect_BUTC_LabelTape_taskId(tvb, offset, pinfo, tree, di, drep);
1858 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1860 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1863 return offset;
1865 static int
1866 butc_dissect_BUTC_ReadLabel_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1868 guint32 param=0;
1869 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ReadLabel_taskId, param);
1870 return offset;
1873 static int
1874 ref_butc_dissect_BUTC_ReadLabel_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1876 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ReadLabel_taskId, NDR_POINTER_REF, "taskId", -1);
1877 return offset;
1881 static int
1882 butc_dissect_BUTC_ReadLabel_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1885 return offset;
1888 static int
1889 butc_dissect_BUTC_ReadLabel_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1891 offset=ref_butc_dissect_BUTC_ReadLabel_taskId(tvb, offset, pinfo, tree, di, drep);
1892 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1894 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1897 return offset;
1899 static int
1900 butc_dissect_BUTC_ScanDumps_addDbFlag(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1902 guint32 param=0;
1903 offset=butc_dissect_int32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanDumps_addDbFlag, param);
1904 return offset;
1907 static int
1908 butc_dissect_BUTC_ScanDumps_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1910 guint32 param=0;
1911 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanDumps_taskId, param);
1912 return offset;
1915 static int
1916 ref_butc_dissect_BUTC_ScanDumps_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1918 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ScanDumps_taskId, NDR_POINTER_REF, "taskId", -1);
1919 return offset;
1923 static int
1924 butc_dissect_BUTC_ScanDumps_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1926 offset=butc_dissect_BUTC_ScanDumps_addDbFlag(tvb, offset, pinfo, tree, di, drep);
1927 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1930 return offset;
1933 static int
1934 butc_dissect_BUTC_ScanDumps_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1936 offset=ref_butc_dissect_BUTC_ScanDumps_taskId(tvb, offset, pinfo, tree, di, drep);
1937 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1939 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1942 return offset;
1944 static int
1945 butc_dissect_BUTC_TCInfo_tciptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1947 guint32 param=0;
1948 offset=butc_dissect_tc_tcInfo(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_TCInfo_tciptr, param);
1949 return offset;
1952 static int
1953 ref_butc_dissect_BUTC_TCInfo_tciptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1955 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_TCInfo_tciptr, NDR_POINTER_REF, "tciptr", -1);
1956 return offset;
1960 static int
1961 butc_dissect_BUTC_TCInfo_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1964 return offset;
1967 static int
1968 butc_dissect_BUTC_TCInfo_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1970 offset=ref_butc_dissect_BUTC_TCInfo_tciptr(tvb, offset, pinfo, tree, di, drep);
1971 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
1973 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
1976 return offset;
1978 static int
1979 butc_dissect_BUTC_SaveDb_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1981 guint32 param=0;
1982 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_SaveDb_taskId, param);
1983 return offset;
1986 static int
1987 ref_butc_dissect_BUTC_SaveDb_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
1989 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_SaveDb_taskId, NDR_POINTER_REF, "taskId", -1);
1990 return offset;
1994 static int
1995 butc_dissect_BUTC_SaveDb_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
1998 return offset;
2001 static int
2002 butc_dissect_BUTC_SaveDb_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2004 offset=ref_butc_dissect_BUTC_SaveDb_taskId(tvb, offset, pinfo, tree, di, drep);
2005 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2007 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2010 return offset;
2012 static int
2013 butc_dissect_BUTC_RestoreDb_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2015 guint32 param=0;
2016 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_RestoreDb_taskId, param);
2017 return offset;
2020 static int
2021 ref_butc_dissect_BUTC_RestoreDb_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2023 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_RestoreDb_taskId, NDR_POINTER_REF, "taskId", -1);
2024 return offset;
2028 static int
2029 butc_dissect_BUTC_RestoreDb_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2032 return offset;
2035 static int
2036 butc_dissect_BUTC_RestoreDb_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2038 offset=ref_butc_dissect_BUTC_RestoreDb_taskId(tvb, offset, pinfo, tree, di, drep);
2039 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2041 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2044 return offset;
2046 static int
2047 butc_dissect_BUTC_EndStatus_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2049 guint32 param=0;
2050 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_EndStatus_taskId, param);
2051 return offset;
2055 static int
2056 butc_dissect_BUTC_EndStatus_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2058 offset=butc_dissect_BUTC_EndStatus_taskId(tvb, offset, pinfo, tree, di, drep);
2059 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2062 return offset;
2065 static int
2066 butc_dissect_BUTC_EndStatus_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2068 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2071 return offset;
2073 static int
2074 butc_dissect_BUTC_GetStatus_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2076 guint32 param=0;
2077 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_GetStatus_taskId, param);
2078 return offset;
2081 static int
2082 butc_dissect_BUTC_GetStatus_statusPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2084 guint32 param=0;
2085 offset=butc_dissect_tciStatusS(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_GetStatus_statusPtr, param);
2086 return offset;
2089 static int
2090 ref_butc_dissect_BUTC_GetStatus_statusPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2092 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_GetStatus_statusPtr, NDR_POINTER_REF, "statusPtr", -1);
2093 return offset;
2097 static int
2098 butc_dissect_BUTC_GetStatus_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2100 offset=butc_dissect_BUTC_GetStatus_taskId(tvb, offset, pinfo, tree, di, drep);
2101 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2104 return offset;
2107 static int
2108 butc_dissect_BUTC_GetStatus_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2110 offset=ref_butc_dissect_BUTC_GetStatus_statusPtr(tvb, offset, pinfo, tree, di, drep);
2111 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2113 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2116 return offset;
2118 static int
2119 butc_dissect_BUTC_RequestAbort_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2121 guint32 param=0;
2122 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_RequestAbort_taskId, param);
2123 return offset;
2127 static int
2128 butc_dissect_BUTC_RequestAbort_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2130 offset=butc_dissect_BUTC_RequestAbort_taskId(tvb, offset, pinfo, tree, di, drep);
2131 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2134 return offset;
2137 static int
2138 butc_dissect_BUTC_RequestAbort_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2140 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2143 return offset;
2145 static int
2146 butc_dissect_BUTC_ScanStatus_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2148 guint32 param=0;
2149 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanStatus_taskId, param);
2150 return offset;
2153 static int
2154 ref_butc_dissect_BUTC_ScanStatus_taskId(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2156 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ScanStatus_taskId, NDR_POINTER_REF, "taskId", -1);
2157 return offset;
2160 static int
2161 butc_dissect_BUTC_ScanStatus_statusPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2163 guint32 param=0;
2164 offset=butc_dissect_tciStatusS(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanStatus_statusPtr, param);
2165 return offset;
2168 static int
2169 ref_butc_dissect_BUTC_ScanStatus_statusPtr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2171 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ScanStatus_statusPtr, NDR_POINTER_REF, "statusPtr", -1);
2172 return offset;
2175 static int
2176 butc_dissect_BUTC_ScanStatus_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2178 guint32 param=0;
2179 offset=butc_dissect_uint32(tvb, offset, pinfo, tree, di, drep, hf_butc_BUTC_ScanStatus_flags, param);
2180 return offset;
2183 static int
2184 ref_butc_dissect_BUTC_ScanStatus_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, guint8 *drep)
2186 offset=dissect_ndr_toplevel_pointer(tvb, offset, pinfo, tree, di, drep, butc_dissect_BUTC_ScanStatus_flags, NDR_POINTER_REF, "flags", -1);
2187 return offset;
2191 static int
2192 butc_dissect_BUTC_ScanStatus_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *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_flags(tvb, offset, pinfo, tree, di, drep);
2198 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2201 return offset;
2204 static int
2205 butc_dissect_BUTC_ScanStatus_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2207 offset=ref_butc_dissect_BUTC_ScanStatus_taskId(tvb, offset, pinfo, tree, di, drep);
2208 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2210 offset=ref_butc_dissect_BUTC_ScanStatus_statusPtr(tvb, offset, pinfo, tree, di, drep);
2211 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2213 offset=ref_butc_dissect_BUTC_ScanStatus_flags(tvb, offset, pinfo, tree, di, drep);
2214 offset=dissect_deferred_pointers(pinfo, tvb, offset, di, drep);
2216 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2219 return offset;
2222 static int
2223 butc_dissect_BUTC_GetServerInterfaces_request(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2226 return offset;
2229 static int
2230 butc_dissect_BUTC_GetServerInterfaces_response(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_)
2232 offset=dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_butc_rc, NULL);
2235 return offset;
2237 /* END OF INCLUDED FILE : ETH_CODE */
2241 void
2242 proto_register_butc(void)
2244 static hf_register_info hf[] = {
2248 /* INCLUDED FILE : ETH_HFARR */
2249 { &hf_butc_opnum,
2250 { "Operation", "butc.opnum", FT_UINT16, BASE_DEC,
2251 NULL, 0,
2252 NULL, HFILL }},
2254 { &hf_butc_rc,
2255 { "Return code", "butc.rc", FT_UINT32, BASE_HEX,
2256 VALS(NT_errors), 0,
2257 NULL, HFILL }},
2259 { &hf_butc_Restore_flags_TC_RESTORE_CREATE,
2260 { "TC_RESTORE_CREATE", "butc.Restore_flags.TC_RESTORE_CREATE", FT_BOOLEAN, 32,
2261 TFS(&TC_RESTORE_CREATE_tfs), 0x00000001,
2262 NULL, HFILL }},
2264 { &hf_butc_Restore_flags_TC_RESTORE_INCR,
2265 { "TC_RESTORE_INCR", "butc.Restore_flags.TC_RESTORE_INCR", FT_BOOLEAN, 32,
2266 TFS(&TC_RESTORE_INCR_tfs), 0x00000002,
2267 NULL, HFILL }},
2269 { &hf_butc_afsNetAddr_type,
2270 { "type", "butc.afsNetAddr.type", FT_UINT16, BASE_DEC,
2271 NULL, 0,
2272 NULL, HFILL }},
2274 { &hf_butc_afsNetAddr_data,
2275 { "data", "butc.afsNetAddr.data", FT_UINT8, BASE_DEC,
2276 NULL, 0,
2277 NULL, HFILL }},
2279 { &hf_butc_tc_dumpDesc_vid,
2280 { "vid", "butc.tc_dumpDesc.vid", FT_UINT64, BASE_DEC,
2281 NULL, 0,
2282 NULL, HFILL }},
2284 { &hf_butc_tc_dumpDesc_name,
2285 { "name", "butc.tc_dumpDesc.name", FT_STRING, BASE_NONE,
2286 NULL, 0,
2287 NULL, HFILL }},
2289 { &hf_butc_tc_dumpDesc_partition,
2290 { "partition", "butc.tc_dumpDesc.partition", FT_INT32, BASE_DEC,
2291 NULL, 0,
2292 NULL, HFILL }},
2294 { &hf_butc_tc_dumpDesc_date,
2295 { "date", "butc.tc_dumpDesc.date", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL,
2296 NULL, 0,
2297 NULL, HFILL }},
2299 { &hf_butc_tc_dumpDesc_cloneDate,
2300 { "cloneDate", "butc.tc_dumpDesc.cloneDate", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL,
2301 NULL, 0,
2302 NULL, HFILL }},
2304 { &hf_butc_tc_dumpDesc_hostAddr,
2305 { "hostAddr", "butc.tc_dumpDesc.hostAddr", FT_NONE, BASE_NONE,
2306 NULL, 0,
2307 NULL, HFILL }},
2309 { &hf_butc_tc_dumpDesc_spare1,
2310 { "spare1", "butc.tc_dumpDesc.spare1", FT_UINT32, BASE_DEC,
2311 NULL, 0,
2312 NULL, HFILL }},
2314 { &hf_butc_tc_dumpDesc_spare2,
2315 { "spare2", "butc.tc_dumpDesc.spare2", FT_UINT32, BASE_DEC,
2316 NULL, 0,
2317 NULL, HFILL }},
2319 { &hf_butc_tc_dumpDesc_spare3,
2320 { "spare3", "butc.tc_dumpDesc.spare3", FT_UINT32, BASE_DEC,
2321 NULL, 0,
2322 NULL, HFILL }},
2324 { &hf_butc_tc_dumpDesc_spare4,
2325 { "spare4", "butc.tc_dumpDesc.spare4", FT_UINT32, BASE_DEC,
2326 NULL, 0,
2327 NULL, HFILL }},
2329 { &hf_butc_tc_restoreDesc_frag,
2330 { "frag", "butc.tc_restoreDesc.frag", FT_INT32, BASE_DEC,
2331 NULL, 0,
2332 NULL, HFILL }},
2334 { &hf_butc_tc_restoreDesc_tapeName,
2335 { "tapeName", "butc.tc_restoreDesc.tapeName", FT_STRING, BASE_NONE,
2336 NULL, 0,
2337 NULL, HFILL }},
2339 { &hf_butc_tc_restoreDesc_position,
2340 { "position", "butc.tc_restoreDesc.position", FT_INT32, BASE_DEC,
2341 NULL, 0,
2342 NULL, HFILL }},
2344 { &hf_butc_tc_restoreDesc_origVid,
2345 { "origVid", "butc.tc_restoreDesc.origVid", FT_UINT64, BASE_DEC,
2346 NULL, 0,
2347 NULL, HFILL }},
2349 { &hf_butc_tc_restoreDesc_vid,
2350 { "vid", "butc.tc_restoreDesc.vid", FT_UINT64, BASE_DEC,
2351 NULL, 0,
2352 NULL, HFILL }},
2354 { &hf_butc_tc_restoreDesc_partition,
2355 { "partition", "butc.tc_restoreDesc.partition", FT_INT32, BASE_DEC,
2356 NULL, 0,
2357 NULL, HFILL }},
2359 { &hf_butc_tc_restoreDesc_flags,
2360 { "flags", "butc.tc_restoreDesc.flags", FT_UINT32, BASE_HEX,
2361 NULL, 0,
2362 NULL, HFILL }},
2364 { &hf_butc_tc_restoreDesc_hostAddr,
2365 { "hostAddr", "butc.tc_restoreDesc.hostAddr", FT_NONE, BASE_NONE,
2366 NULL, 0,
2367 NULL, HFILL }},
2369 { &hf_butc_tc_restoreDesc_realDumpId,
2370 { "realDumpId", "butc.tc_restoreDesc.realDumpId", FT_UINT32, BASE_DEC,
2371 NULL, 0,
2372 NULL, HFILL }},
2374 { &hf_butc_tc_restoreDesc_spare2,
2375 { "spare2", "butc.tc_restoreDesc.spare2", FT_UINT32, BASE_DEC,
2376 NULL, 0,
2377 NULL, HFILL }},
2379 { &hf_butc_tc_restoreDesc_spare3,
2380 { "spare3", "butc.tc_restoreDesc.spare3", FT_UINT32, BASE_DEC,
2381 NULL, 0,
2382 NULL, HFILL }},
2384 { &hf_butc_tc_restoreDesc_spare4,
2385 { "spare4", "butc.tc_restoreDesc.spare4", FT_UINT32, BASE_DEC,
2386 NULL, 0,
2387 NULL, HFILL }},
2389 { &hf_butc_tc_restoreDesc_oldName,
2390 { "oldName", "butc.tc_restoreDesc.oldName", FT_STRING, BASE_NONE,
2391 NULL, 0,
2392 NULL, HFILL }},
2394 { &hf_butc_tc_restoreDesc_newName,
2395 { "newName", "butc.tc_restoreDesc.newName", FT_STRING, BASE_NONE,
2396 NULL, 0,
2397 NULL, HFILL }},
2399 { &hf_butc_tc_dumpStat_dumpID,
2400 { "dumpID", "butc.tc_dumpStat.dumpID", FT_INT32, BASE_DEC,
2401 NULL, 0,
2402 NULL, HFILL }},
2404 { &hf_butc_tc_dumpStat_bytesDumped,
2405 { "bytesDumped", "butc.tc_dumpStat.bytesDumped", FT_INT32, BASE_DEC,
2406 NULL, 0,
2407 NULL, HFILL }},
2409 { &hf_butc_tc_dumpStat_volumeBeingDumped,
2410 { "volumeBeingDumped", "butc.tc_dumpStat.volumeBeingDumped", FT_UINT64, BASE_DEC,
2411 NULL, 0,
2412 NULL, HFILL }},
2414 { &hf_butc_tc_dumpStat_numVolErrs,
2415 { "numVolErrs", "butc.tc_dumpStat.numVolErrs", FT_INT32, BASE_DEC,
2416 NULL, 0,
2417 NULL, HFILL }},
2419 { &hf_butc_tc_dumpStat_flags,
2420 { "flags", "butc.tc_dumpStat.flags", FT_INT32, BASE_DEC,
2421 NULL, 0,
2422 NULL, HFILL }},
2424 { &hf_butc_tc_dumpStat_spare1,
2425 { "spare1", "butc.tc_dumpStat.spare1", FT_UINT32, BASE_DEC,
2426 NULL, 0,
2427 NULL, HFILL }},
2429 { &hf_butc_tc_dumpStat_spare2,
2430 { "spare2", "butc.tc_dumpStat.spare2", FT_UINT32, BASE_DEC,
2431 NULL, 0,
2432 NULL, HFILL }},
2434 { &hf_butc_tc_dumpStat_spare3,
2435 { "spare3", "butc.tc_dumpStat.spare3", FT_UINT32, BASE_DEC,
2436 NULL, 0,
2437 NULL, HFILL }},
2439 { &hf_butc_tc_dumpStat_spare4,
2440 { "spare4", "butc.tc_dumpStat.spare4", FT_UINT32, BASE_DEC,
2441 NULL, 0,
2442 NULL, HFILL }},
2444 { &hf_butc_tc_tapeLabel_size,
2445 { "size", "butc.tc_tapeLabel.size", FT_UINT32, BASE_DEC,
2446 NULL, 0,
2447 NULL, HFILL }},
2449 { &hf_butc_tc_tapeLabel_size_ext,
2450 { "size_ext", "butc.tc_tapeLabel.size_ext", FT_UINT32, BASE_DEC,
2451 NULL, 0,
2452 NULL, HFILL }},
2454 { &hf_butc_tc_tapeLabel_spare1,
2455 { "spare1", "butc.tc_tapeLabel.spare1", FT_UINT32, BASE_DEC,
2456 NULL, 0,
2457 NULL, HFILL }},
2459 { &hf_butc_tc_tapeLabel_spare2,
2460 { "spare2", "butc.tc_tapeLabel.spare2", FT_UINT32, BASE_DEC,
2461 NULL, 0,
2462 NULL, HFILL }},
2464 { &hf_butc_tc_tapeLabel_spare3,
2465 { "spare3", "butc.tc_tapeLabel.spare3", FT_UINT32, BASE_DEC,
2466 NULL, 0,
2467 NULL, HFILL }},
2469 { &hf_butc_tc_tapeLabel_spare4,
2470 { "spare4", "butc.tc_tapeLabel.spare4", FT_UINT32, BASE_DEC,
2471 NULL, 0,
2472 NULL, HFILL }},
2474 { &hf_butc_tc_tapeLabel_nameLen,
2475 { "nameLen", "butc.tc_tapeLabel.nameLen", FT_UINT32, BASE_DEC,
2476 NULL, 0,
2477 NULL, HFILL }},
2479 { &hf_butc_tc_tapeLabel_name,
2480 { "name", "butc.tc_tapeLabel.name", FT_STRING, BASE_NONE,
2481 NULL, 0,
2482 NULL, HFILL }},
2484 { &hf_butc_tc_tapeSet_id,
2485 { "id", "butc.tc_tapeSet.id", FT_INT32, BASE_DEC,
2486 NULL, 0,
2487 NULL, HFILL }},
2489 { &hf_butc_tc_tapeSet_tapeServer,
2490 { "tapeServer", "butc.tc_tapeSet.tapeServer", FT_STRING, BASE_NONE,
2491 NULL, 0,
2492 NULL, HFILL }},
2494 { &hf_butc_tc_tapeSet_format,
2495 { "format", "butc.tc_tapeSet.format", FT_STRING, BASE_NONE,
2496 NULL, 0,
2497 NULL, HFILL }},
2499 { &hf_butc_tc_tapeSet_maxTapes,
2500 { "maxTapes", "butc.tc_tapeSet.maxTapes", FT_INT32, BASE_DEC,
2501 NULL, 0,
2502 NULL, HFILL }},
2504 { &hf_butc_tc_tapeSet_a,
2505 { "a", "butc.tc_tapeSet.a", FT_INT32, BASE_DEC,
2506 NULL, 0,
2507 NULL, HFILL }},
2509 { &hf_butc_tc_tapeSet_b,
2510 { "b", "butc.tc_tapeSet.b", FT_INT32, BASE_DEC,
2511 NULL, 0,
2512 NULL, HFILL }},
2514 { &hf_butc_tc_tapeSet_expDate,
2515 { "expDate", "butc.tc_tapeSet.expDate", FT_INT32, BASE_DEC,
2516 NULL, 0,
2517 NULL, HFILL }},
2519 { &hf_butc_tc_tapeSet_expType,
2520 { "expType", "butc.tc_tapeSet.expType", FT_INT32, BASE_DEC,
2521 NULL, 0,
2522 NULL, HFILL }},
2524 { &hf_butc_tc_tapeSet_spare1,
2525 { "spare1", "butc.tc_tapeSet.spare1", FT_UINT32, BASE_DEC,
2526 NULL, 0,
2527 NULL, HFILL }},
2529 { &hf_butc_tc_tapeSet_spare2,
2530 { "spare2", "butc.tc_tapeSet.spare2", FT_UINT32, BASE_DEC,
2531 NULL, 0,
2532 NULL, HFILL }},
2534 { &hf_butc_tc_tapeSet_spare3,
2535 { "spare3", "butc.tc_tapeSet.spare3", FT_UINT32, BASE_DEC,
2536 NULL, 0,
2537 NULL, HFILL }},
2539 { &hf_butc_tc_tapeSet_spare4,
2540 { "spare4", "butc.tc_tapeSet.spare4", FT_UINT32, BASE_DEC,
2541 NULL, 0,
2542 NULL, HFILL }},
2544 { &hf_butc_tc_tcInfo_tcVersion,
2545 { "tcVersion", "butc.tc_tcInfo.tcVersion", FT_INT32, BASE_DEC,
2546 NULL, 0,
2547 NULL, HFILL }},
2549 { &hf_butc_tc_tcInfo_spare1,
2550 { "spare1", "butc.tc_tcInfo.spare1", FT_UINT32, BASE_DEC,
2551 NULL, 0,
2552 NULL, HFILL }},
2554 { &hf_butc_tc_tcInfo_spare2,
2555 { "spare2", "butc.tc_tcInfo.spare2", FT_UINT32, BASE_DEC,
2556 NULL, 0,
2557 NULL, HFILL }},
2559 { &hf_butc_tc_tcInfo_spare3,
2560 { "spare3", "butc.tc_tcInfo.spare3", FT_UINT32, BASE_DEC,
2561 NULL, 0,
2562 NULL, HFILL }},
2564 { &hf_butc_tc_tcInfo_spare4,
2565 { "spare4", "butc.tc_tcInfo.spare4", FT_UINT32, BASE_DEC,
2566 NULL, 0,
2567 NULL, HFILL }},
2569 { &hf_butc_tc_restoreArray_tc_restoreArray_len,
2570 { "tc_restoreArray_len", "butc.tc_restoreArray.tc_restoreArray_len", FT_UINT32, BASE_DEC,
2571 NULL, 0,
2572 NULL, HFILL }},
2574 { &hf_butc_tc_restoreArray_tc_restoreArray_val,
2575 { "tc_restoreArray_val", "butc.tc_restoreArray.tc_restoreArray_val", FT_NONE, BASE_NONE,
2576 NULL, 0,
2577 NULL, HFILL }},
2579 { &hf_butc_tc_dumpArray_tc_dumpArray_len,
2580 { "tc_dumpArray_len", "butc.tc_dumpArray.tc_dumpArray_len", FT_UINT32, BASE_DEC,
2581 NULL, 0,
2582 NULL, HFILL }},
2584 { &hf_butc_tc_dumpArray_tc_dumpArray,
2585 { "tc_dumpArray", "butc.tc_dumpArray.tc_dumpArray", FT_NONE, BASE_NONE,
2586 NULL, 0,
2587 NULL, HFILL }},
2589 { &hf_butc_tc_dumpInterface_dumpPath,
2590 { "dumpPath", "butc.tc_dumpInterface.dumpPath", FT_STRING, BASE_NONE,
2591 NULL, 0,
2592 NULL, HFILL }},
2594 { &hf_butc_tc_dumpInterface_volumeSetName,
2595 { "volumeSetName", "butc.tc_dumpInterface.volumeSetName", FT_STRING, BASE_NONE,
2596 NULL, 0,
2597 NULL, HFILL }},
2599 { &hf_butc_tc_dumpInterface_dumpName,
2600 { "dumpName", "butc.tc_dumpInterface.dumpName", FT_STRING, BASE_NONE,
2601 NULL, 0,
2602 NULL, HFILL }},
2604 { &hf_butc_tc_dumpInterface_tapeSet,
2605 { "tapeSet", "butc.tc_dumpInterface.tapeSet", FT_NONE, BASE_NONE,
2606 NULL, 0,
2607 NULL, HFILL }},
2609 { &hf_butc_tc_dumpInterface_parentDumpId,
2610 { "parentDumpId", "butc.tc_dumpInterface.parentDumpId", FT_INT32, BASE_DEC,
2611 NULL, 0,
2612 NULL, HFILL }},
2614 { &hf_butc_tc_dumpInterface_dumpLevel,
2615 { "dumpLevel", "butc.tc_dumpInterface.dumpLevel", FT_INT32, BASE_DEC,
2616 NULL, 0,
2617 NULL, HFILL }},
2619 { &hf_butc_tc_dumpInterface_spare1,
2620 { "spare1", "butc.tc_dumpInterface.spare1", FT_UINT32, BASE_DEC,
2621 NULL, 0,
2622 NULL, HFILL }},
2624 { &hf_butc_tc_dumpInterface_spare2,
2625 { "spare2", "butc.tc_dumpInterface.spare2", FT_UINT32, BASE_DEC,
2626 NULL, 0,
2627 NULL, HFILL }},
2629 { &hf_butc_tc_dumpInterface_spare3,
2630 { "spare3", "butc.tc_dumpInterface.spare3", FT_UINT32, BASE_DEC,
2631 NULL, 0,
2632 NULL, HFILL }},
2634 { &hf_butc_tc_dumpInterface_spare4,
2635 { "spare4", "butc.tc_dumpInterface.spare4", FT_UINT32, BASE_DEC,
2636 NULL, 0,
2637 NULL, HFILL }},
2639 { &hf_butc_tc_statusInfoSwitchVol_nKBytes,
2640 { "nKBytes", "butc.tc_statusInfoSwitchVol.nKBytes", FT_UINT32, BASE_DEC,
2641 NULL, 0,
2642 NULL, HFILL }},
2644 { &hf_butc_tc_statusInfoSwitchVol_volumeName,
2645 { "volumeName", "butc.tc_statusInfoSwitchVol.volumeName", FT_STRING, BASE_NONE,
2646 NULL, 0,
2647 NULL, HFILL }},
2649 { &hf_butc_tc_statusInfoSwitchVol_volsFailed,
2650 { "volsFailed", "butc.tc_statusInfoSwitchVol.volsFailed", FT_INT32, BASE_DEC,
2651 NULL, 0,
2652 NULL, HFILL }},
2654 { &hf_butc_tc_statusInfoSwitchVol_spare1,
2655 { "spare1", "butc.tc_statusInfoSwitchVol.spare1", FT_UINT32, BASE_DEC,
2656 NULL, 0,
2657 NULL, HFILL }},
2659 { &hf_butc_tc_statusInfoSwitchLabel_tapeLabel,
2660 { "tapeLabel", "butc.tc_statusInfoSwitchLabel.tapeLabel", FT_NONE, BASE_NONE,
2661 NULL, 0,
2662 NULL, HFILL }},
2664 { &hf_butc_tc_statusInfoSwitchLabel_spare1,
2665 { "spare1", "butc.tc_statusInfoSwitchLabel.spare1", FT_UINT32, BASE_DEC,
2666 NULL, 0,
2667 NULL, HFILL }},
2669 { &hf_butc_tc_statusInfoSwitch_TCOP_NONE_none,
2670 { "none", "butc.tc_statusInfoSwitch.none", FT_UINT32, BASE_DEC,
2671 NULL, 0,
2672 NULL, HFILL }},
2674 { &hf_butc_tc_statusInfoSwitch_TCOP_DUMP_vol,
2675 { "vol", "butc.tc_statusInfoSwitch.vol", FT_NONE, BASE_NONE,
2676 NULL, 0,
2677 NULL, HFILL }},
2679 { &hf_butc_tc_statusInfoSwitch_TCOP_RESTORE_vol,
2680 { "vol", "butc.tc_statusInfoSwitch.vol", FT_NONE, BASE_NONE,
2681 NULL, 0,
2682 NULL, HFILL }},
2684 { &hf_butc_tc_statusInfoSwitch_TCOP_LABELTAPE_label,
2685 { "label", "butc.tc_statusInfoSwitch.label", FT_NONE, BASE_NONE,
2686 NULL, 0,
2687 NULL, HFILL }},
2689 { &hf_butc_tc_statusInfoSwitch_TCOP_READLABEL_label,
2690 { "label", "butc.tc_statusInfoSwitch.label", FT_NONE, BASE_NONE,
2691 NULL, 0,
2692 NULL, HFILL }},
2694 { &hf_butc_tc_statusInfoSwitch_TCOP_SCANTAPE_spare1,
2695 { "spare1", "butc.tc_statusInfoSwitch.spare1", FT_UINT32, BASE_DEC,
2696 NULL, 0,
2697 NULL, HFILL }},
2699 { &hf_butc_tc_statusInfoSwitch_TCOP_STATUS_spare2,
2700 { "spare2", "butc.tc_statusInfoSwitch.spare2", FT_UINT32, BASE_DEC,
2701 NULL, 0,
2702 NULL, HFILL }},
2704 { &hf_butc_tc_statusInfoSwitch_TCOP_SAVEDB_spare3,
2705 { "spare3", "butc.tc_statusInfoSwitch.spare3", FT_UINT32, BASE_DEC,
2706 NULL, 0,
2707 NULL, HFILL }},
2709 { &hf_butc_tc_statusInfoSwitch_TCOP_RESTOREDB_spare4,
2710 { "spare4", "butc.tc_statusInfoSwitch.spare4", FT_UINT32, BASE_DEC,
2711 NULL, 0,
2712 NULL, HFILL }},
2714 { &hf_butc_tc_statusInfoSwitch_TCOP_SPARE_spare5,
2715 { "spare5", "butc.tc_statusInfoSwitch.spare5", FT_UINT32, BASE_DEC,
2716 NULL, 0,
2717 NULL, HFILL }},
2719 { &hf_butc_tciStatusS_taskName,
2720 { "taskName", "butc.tciStatusS.taskName", FT_STRING, BASE_NONE,
2721 NULL, 0,
2722 NULL, HFILL }},
2724 { &hf_butc_tciStatusS_flags,
2725 { "flags", "butc.tciStatusS.flags", FT_UINT32, BASE_DEC,
2726 NULL, 0,
2727 NULL, HFILL }},
2729 { &hf_butc_tciStatusS_lastPolled,
2730 { "lastPolled", "butc.tciStatusS.lastPolled", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL,
2731 NULL, 0,
2732 NULL, HFILL }},
2734 { &hf_butc_tciStatusS_info,
2735 { "info", "butc.tciStatusS.info", FT_UINT32, BASE_DEC,
2736 NULL, 0,
2737 NULL, HFILL }},
2739 { &hf_butc_tciStatusS_taskId,
2740 { "taskId", "butc.tciStatusS.taskId", FT_UINT32, BASE_DEC,
2741 NULL, 0,
2742 NULL, HFILL }},
2744 { &hf_butc_tciStatusS_spare2,
2745 { "spare2", "butc.tciStatusS.spare2", FT_UINT32, BASE_DEC,
2746 NULL, 0,
2747 NULL, HFILL }},
2749 { &hf_butc_tciStatusS_spare3,
2750 { "spare3", "butc.tciStatusS.spare3", FT_UINT32, BASE_DEC,
2751 NULL, 0,
2752 NULL, HFILL }},
2754 { &hf_butc_tciStatusS_spare4,
2755 { "spare4", "butc.tciStatusS.spare4", FT_UINT32, BASE_DEC,
2756 NULL, 0,
2757 NULL, HFILL }},
2759 { &hf_butc_BUTC_PerformDump_tcdiPtr,
2760 { "tcdiPtr", "butc.BUTC_PerformDump.tcdiPtr", FT_NONE, BASE_NONE,
2761 NULL, 0,
2762 NULL, HFILL }},
2764 { &hf_butc_BUTC_PerformDump_dumps,
2765 { "dumps", "butc.BUTC_PerformDump.dumps", FT_NONE, BASE_NONE,
2766 NULL, 0,
2767 NULL, HFILL }},
2769 { &hf_butc_BUTC_PerformDump_dumpID,
2770 { "dumpID", "butc.BUTC_PerformDump.dumpID", FT_INT32, BASE_DEC,
2771 NULL, 0,
2772 NULL, HFILL }},
2774 { &hf_butc_BUTC_PerformRestore_dumpSetName,
2775 { "dumpSetName", "butc.BUTC_PerformRestore.dumpSetName", FT_STRING, BASE_NONE,
2776 NULL, 0,
2777 NULL, HFILL }},
2779 { &hf_butc_BUTC_PerformRestore_restores,
2780 { "restores", "butc.BUTC_PerformRestore.restores", FT_NONE, BASE_NONE,
2781 NULL, 0,
2782 NULL, HFILL }},
2784 { &hf_butc_BUTC_PerformRestore_dumpID,
2785 { "dumpID", "butc.BUTC_PerformRestore.dumpID", FT_INT32, BASE_DEC,
2786 NULL, 0,
2787 NULL, HFILL }},
2789 { &hf_butc_BUTC_AbortDump_dumpID,
2790 { "dumpID", "butc.BUTC_AbortDump.dumpID", FT_INT32, BASE_DEC,
2791 NULL, 0,
2792 NULL, HFILL }},
2794 { &hf_butc_BUTC_LabelTape_label,
2795 { "label", "butc.BUTC_LabelTape.label", FT_NONE, BASE_NONE,
2796 NULL, 0,
2797 NULL, HFILL }},
2799 { &hf_butc_BUTC_LabelTape_taskId,
2800 { "taskId", "butc.BUTC_LabelTape.taskId", FT_UINT32, BASE_DEC,
2801 NULL, 0,
2802 NULL, HFILL }},
2804 { &hf_butc_BUTC_ReadLabel_taskId,
2805 { "taskId", "butc.BUTC_ReadLabel.taskId", FT_UINT32, BASE_DEC,
2806 NULL, 0,
2807 NULL, HFILL }},
2809 { &hf_butc_BUTC_ScanDumps_addDbFlag,
2810 { "addDbFlag", "butc.BUTC_ScanDumps.addDbFlag", FT_INT32, BASE_DEC,
2811 NULL, 0,
2812 NULL, HFILL }},
2814 { &hf_butc_BUTC_ScanDumps_taskId,
2815 { "taskId", "butc.BUTC_ScanDumps.taskId", FT_UINT32, BASE_DEC,
2816 NULL, 0,
2817 NULL, HFILL }},
2819 { &hf_butc_BUTC_TCInfo_tciptr,
2820 { "tciptr", "butc.BUTC_TCInfo.tciptr", FT_NONE, BASE_NONE,
2821 NULL, 0,
2822 NULL, HFILL }},
2824 { &hf_butc_BUTC_SaveDb_taskId,
2825 { "taskId", "butc.BUTC_SaveDb.taskId", FT_UINT32, BASE_DEC,
2826 NULL, 0,
2827 NULL, HFILL }},
2829 { &hf_butc_BUTC_RestoreDb_taskId,
2830 { "taskId", "butc.BUTC_RestoreDb.taskId", FT_UINT32, BASE_DEC,
2831 NULL, 0,
2832 NULL, HFILL }},
2834 { &hf_butc_BUTC_EndStatus_taskId,
2835 { "taskId", "butc.BUTC_EndStatus.taskId", FT_UINT32, BASE_DEC,
2836 NULL, 0,
2837 NULL, HFILL }},
2839 { &hf_butc_BUTC_GetStatus_taskId,
2840 { "taskId", "butc.BUTC_GetStatus.taskId", FT_UINT32, BASE_DEC,
2841 NULL, 0,
2842 NULL, HFILL }},
2844 { &hf_butc_BUTC_GetStatus_statusPtr,
2845 { "statusPtr", "butc.BUTC_GetStatus.statusPtr", FT_NONE, BASE_NONE,
2846 NULL, 0,
2847 NULL, HFILL }},
2849 { &hf_butc_BUTC_RequestAbort_taskId,
2850 { "taskId", "butc.BUTC_RequestAbort.taskId", FT_UINT32, BASE_DEC,
2851 NULL, 0,
2852 NULL, HFILL }},
2854 { &hf_butc_BUTC_ScanStatus_taskId,
2855 { "taskId", "butc.BUTC_ScanStatus.taskId", FT_UINT32, BASE_DEC,
2856 NULL, 0,
2857 NULL, HFILL }},
2859 { &hf_butc_BUTC_ScanStatus_statusPtr,
2860 { "statusPtr", "butc.BUTC_ScanStatus.statusPtr", FT_NONE, BASE_NONE,
2861 NULL, 0,
2862 NULL, HFILL }},
2864 { &hf_butc_BUTC_ScanStatus_flags,
2865 { "flags", "butc.BUTC_ScanStatus.flags", FT_UINT32, BASE_DEC,
2866 NULL, 0,
2867 NULL, HFILL }},
2869 /* END OF INCLUDED FILE : ETH_HFARR */
2874 static gint *ett[] = {
2877 /* INCLUDED FILE : ETH_ETTARR */
2878 &ett_butc,
2879 &ett_butc_Restore_flags,
2880 &ett_butc_afsNetAddr,
2881 &ett_butc_tc_dumpDesc,
2882 &ett_butc_tc_restoreDesc,
2883 &ett_butc_tc_dumpStat,
2884 &ett_butc_tc_tapeLabel,
2885 &ett_butc_tc_tapeSet,
2886 &ett_butc_tc_tcInfo,
2887 &ett_butc_tc_restoreArray,
2888 &ett_butc_tc_dumpArray,
2889 &ett_butc_tc_dumpInterface,
2890 &ett_butc_tc_statusInfoSwitchVol,
2891 &ett_butc_tc_statusInfoSwitchLabel,
2892 &ett_butc_tc_statusInfoSwitch,
2893 &ett_butc_tciStatusS,
2894 /* END OF INCLUDED FILE : ETH_ETTARR */
2899 proto_butc = proto_register_protocol(
2900 "DCE/RPC BUTC",
2901 "BUTC", "butc");
2902 proto_register_field_array(proto_butc, hf, array_length(hf));
2903 proto_register_subtree_array(ett, array_length(ett));
2906 static dcerpc_sub_dissector function_dissectors[] = {
2909 /* INCLUDED FILE : ETH_FT */
2910 { 0, "BUTC_PerformDump",
2911 butc_dissect_BUTC_PerformDump_request,
2912 butc_dissect_BUTC_PerformDump_response },
2913 { 1, "BUTC_PerformRestore",
2914 butc_dissect_BUTC_PerformRestore_request,
2915 butc_dissect_BUTC_PerformRestore_response },
2916 { 2, "BUTC_AbortDump",
2917 butc_dissect_BUTC_AbortDump_request,
2918 butc_dissect_BUTC_AbortDump_response },
2919 { 3, "BUTC_LabelTape",
2920 butc_dissect_BUTC_LabelTape_request,
2921 butc_dissect_BUTC_LabelTape_response },
2922 { 4, "BUTC_ReadLabel",
2923 butc_dissect_BUTC_ReadLabel_request,
2924 butc_dissect_BUTC_ReadLabel_response },
2925 { 5, "BUTC_ScanDumps",
2926 butc_dissect_BUTC_ScanDumps_request,
2927 butc_dissect_BUTC_ScanDumps_response },
2928 { 6, "BUTC_TCInfo",
2929 butc_dissect_BUTC_TCInfo_request,
2930 butc_dissect_BUTC_TCInfo_response },
2931 { 7, "BUTC_SaveDb",
2932 butc_dissect_BUTC_SaveDb_request,
2933 butc_dissect_BUTC_SaveDb_response },
2934 { 8, "BUTC_RestoreDb",
2935 butc_dissect_BUTC_RestoreDb_request,
2936 butc_dissect_BUTC_RestoreDb_response },
2937 { 9, "BUTC_EndStatus",
2938 butc_dissect_BUTC_EndStatus_request,
2939 butc_dissect_BUTC_EndStatus_response },
2940 { 10, "BUTC_GetStatus",
2941 butc_dissect_BUTC_GetStatus_request,
2942 butc_dissect_BUTC_GetStatus_response },
2943 { 11, "BUTC_RequestAbort",
2944 butc_dissect_BUTC_RequestAbort_request,
2945 butc_dissect_BUTC_RequestAbort_response },
2946 { 12, "BUTC_ScanStatus",
2947 butc_dissect_BUTC_ScanStatus_request,
2948 butc_dissect_BUTC_ScanStatus_response },
2949 { 13, "BUTC_GetServerInterfaces",
2950 butc_dissect_BUTC_GetServerInterfaces_request,
2951 butc_dissect_BUTC_GetServerInterfaces_response },
2952 /* END OF INCLUDED FILE : ETH_FT */
2955 { 0, NULL, NULL, NULL },
2958 void
2959 proto_reg_handoff_butc(void)
2963 /* INCLUDED FILE : ETH_HANDOFF */
2964 dcerpc_init_uuid(proto_butc, ett_butc,
2965 &uuid_dcerpc_butc, ver_butc,
2966 function_dissectors, hf_butc_opnum);
2967 /* END OF INCLUDED FILE : ETH_HANDOFF */