Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / pidl / dnsserver / dnsserver.cnf
blob9579ae118cdd2a4f530ad250766dae1220f44056
2 # DNS_RPC_NAME
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 "" "" ""
9 # DNS_RPC_NODE
11 MANUAL dnsserver_dissect_element_DNS_RPC_NODE_RecordCount
12 MANUAL dnsserver_dissect_element_DNS_RPC_NODE_records
13 NOEMIT dnsserver_dissect_element_DNS_RPC_NODE_records_
15 NOEMIT dnsserver_dissect_element_DNS_RPC_NAME_NameLength
16 NOEMIT dnsserver_dissect_element_DNS_RPC_NAME_Name
17 NOEMIT dnsserver_dissect_element_DNS_RPC_NAME_Name_
19 CODE START
21 int
22 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, uint8_t *drep _U_, int hf_index _U_, uint32_t param _U_)
24         proto_item *item = NULL;
25         proto_tree *tree = NULL;
26         int old_offset;
27         uint8_t len;
29         if(di->conformant_run){
30                 /*just a run to handle conformant arrays, nothing to dissect */
31                 return offset;
32         }
36         old_offset = offset;
38         if (parent_tree) {
39                 item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, ENC_NA);
40                 tree = proto_item_add_subtree(item, ett_dnsserver_DNS_RPC_NAME);
41         }
43         offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, di, drep, hf_dnsserver_DNS_RPC_NAME_NameLength, &len);
44         proto_tree_add_item(tree, hf_dnsserver_DNS_RPC_NAME_name, tvb,
45                 offset, len, ENC_UTF_8);
46         offset += len;
48         proto_item_set_len(item, offset-old_offset);
50         return offset;
54 static int
55 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, uint8_t *drep _U_, uint16_t *RecordCount)
57         if(di->conformant_run){
58                 /*just a run to handle conformant arrays, nothing to dissect */
59                 return offset;
60         }
62         offset = dissect_ndr_uint16(tvb, offset, pinfo, tree, di, drep, hf_dnsserver_DNS_RPC_NODE_RecordCount, RecordCount);
64         return offset;
67 static int
68 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, uint8_t *drep _U_, uint16_t *RecordCount)
70         uint16_t i;
72         if(di->conformant_run){
73                 /*just a run to handle conformant arrays, nothing to dissect */
74                 return offset;
75         }
77         for (i=0; i < *RecordCount; i++) {
78                 offset = dnsserver_dissect_struct_DNS_RPC_RECORD(tvb,offset,pinfo,tree,di,drep,hf_dnsserver_DNS_RPC_NODE_records,0);
79         }
81         return offset;
84 CODE END