4 MANUAL dnsserver_dissect_struct_DNS_RPC_NAME
5 HF_FIELD hf_dnsserver_DNS_RPC_NAME_name "Name" "dnsserver.DNS_RPC_NAME.name" FT_STRING BASE_NONE NULL 0 "" "" ""
11 MANUAL dnsserver_dissect_element_DNS_RPC_NODE_RecordCount
12 MANUAL dnsserver_dissect_element_DNS_RPC_NODE_records
16 #include "packet-smb-common.h"
19 dnsserver_dissect_struct_DNS_RPC_NAME(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di, guint8 *drep _U_, int hf_index _U_, guint32 param _U_)
21 proto_item *item = NULL;
22 proto_tree *tree = NULL;
29 if(di->conformant_run){
30 /*just a run to handle conformant arrays, nothing to dissect */
39 item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE);
40 tree = proto_item_add_subtree(item, ett_dnsserver_DNS_RPC_NAME);
43 offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, di, drep, hf_dnsserver_DNS_RPC_NAME_NameLength, &len);
44 bc = tvb_length_remaining(tvb, offset);
45 dn = get_unicode_or_ascii_string(tvb, &offset,
46 TRUE, &dn_len, TRUE, TRUE, &bc);
48 proto_tree_add_string(tree, hf_dnsserver_DNS_RPC_NAME_name, tvb,
53 proto_item_set_len(item, offset-old_offset);
59 static guint16 node_record_count;
62 dnsserver_dissect_element_DNS_RPC_NODE_RecordCount(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di, guint8 *drep _U_)
64 if(di->conformant_run){
65 /*just a run to handle conformant arrays, nothing to dissect */
69 offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, di, drep, hf_dnsserver_DNS_RPC_NODE_RecordCount, &node_record_count);
75 dnsserver_dissect_element_DNS_RPC_NODE_records(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di, guint8 *drep _U_)
77 if(di->conformant_run){
78 /*just a run to handle conformant arrays, nothing to dissect */
82 while(node_record_count--){
83 offset = dnsserver_dissect_element_DNS_RPC_NODE_records_(tvb, offset, pinfo, tree, di, drep);