Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / pidl / srvsvc / srvsvc.cnf
blob26a07fe803fa6238fdf6356823fe20f5a250a8b9
1 # conformance file for SRVSVC
4 MANUAL srvsvc_dissect_element_NetShareInfo_info1501_
5 MANUAL srvsvc_dissect_element_NetGetFileSecurity_sd_buf_
6 MANUAL srvsvc_dissect_element_NetSetFileSecurity_sd_buf
7 MANUAL srvsvc_dissect_element_NetShareCtr1501_array__
8 MANUAL srvsvc_dissect_element_NetShareInfo502_sd_
9 NOEMIT srvsvc_dissect_element_NetShareInfo502_sd__
10 # we wont need to manually define servertype once svcctl is autogenerated
11 MANUAL srvsvc_dissect_element_NetSrvInfo101_server_type
12 MANUAL srvsvc_dissect_element_NetSrvInfo102_server_type
13 # until we get secinfo
14 MANUAL srvsvc_dissect_element_NetGetFileSecurity_securityinformation
15 MANUAL srvsvc_dissect_element_NetSetFileSecurity_securityinformation
16 MANUAL srvsvc_dissect_element_NetShareInfo502_sd_buf
17 MANUAL srvsvc_dissect_element_NetShareInfoCtr_ctr
18 NOEMIT srvsvc_dissect_element_NetGetFileSecurity_sd_buf__
19 NOEMIT srvsvc_dissect_element_NetSetFileSecurity_sd_buf_
21 HF_FIELD hf_srvsvc_sec_desc_buf_len "Sec Desc Buf Len" "srvsvc.sec_desc_buf_len" FT_UINT32 BASE_DEC NULL 0 "" "" ""
25 # Prettifications
26 PARAM_VALUE srvsvc_dissect_element_NetCharDevEnum_server_unc_ 1|PIDL_SET_COL_INFO
27 PARAM_VALUE srvsvc_dissect_element_NetCharDevEnum_level_  PIDL_SET_COL_INFO
29 PARAM_VALUE srvsvc_dissect_element_NetCharDevQEnum_server_unc_ 1|PIDL_SET_COL_INFO
30 PARAM_VALUE srvsvc_dissect_element_NetCharDevQEnum_user_ 1|PIDL_SET_COL_INFO
31 PARAM_VALUE srvsvc_dissect_element_NetCharDevQEnum_level_  PIDL_SET_COL_INFO
33 PARAM_VALUE srvsvc_dissect_element_NetConnEnum_server_unc_ 1|PIDL_SET_COL_INFO
34 PARAM_VALUE srvsvc_dissect_element_NetConnEnum_path_ 1|PIDL_SET_COL_INFO
35 PARAM_VALUE srvsvc_dissect_element_NetConnEnum_level_ PIDL_SET_COL_INFO
37 PARAM_VALUE srvsvc_dissect_element_NetFileEnum_server_unc_ 1|PIDL_SET_COL_INFO
38 PARAM_VALUE srvsvc_dissect_element_NetFileEnum_level_ PIDL_SET_COL_INFO
41 CODE START
42         #include "packet-smb.h"
43         #include "packet-smb-browse.h"
45 static int
46 srvsvc_dissect_NetShareCtr(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_, int hf_index _U_, uint32_t param _U_);
47 static int
48 srvsvc_dissect_element_NetShareInfoCtr_ctr(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_, uint32_t level)
50         ALIGN_TO_5_BYTES
51         offset = srvsvc_dissect_NetShareCtr(tvb, offset, pinfo, tree, di, drep, hf_srvsvc_srvsvc_NetShareInfoCtr_ctr, level);
53         return offset;
57 static int
58 srvsvc_dissect_sec_desc_buf(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep, int hf_index);
59 static int
60 srvsvc_dissect_sec_desc_buf(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep, int hf_index _U_)
62         uint32_t len;
64         if(di->conformant_run){
65                 /*just a run to handle conformant arrays, nothing to dissect */
66                 return offset;
67         }
69         offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, di, drep,
70                 hf_srvsvc_sec_desc_buf_len, &len);
72         dissect_nt_sec_desc(tvb, offset, pinfo, tree, drep, true, len,
73                 NULL);
75         offset += len;
77         return offset;
79 static int
80 srvsvc_dissect_element_NetShareInfo_info1501_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
82         return srvsvc_dissect_sec_desc_buf(tvb, offset, pinfo, tree, di, drep, hf_srvsvc_srvsvc_NetShareInfo_info1501);
84 static int
85 srvsvc_dissect_element_NetGetFileSecurity_sd_buf_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
87         return srvsvc_dissect_sec_desc_buf(tvb, offset, pinfo, tree, di, drep, hf_srvsvc_srvsvc_NetGetFileSecurity_sd_buf);
89 static int
90 srvsvc_dissect_element_NetSetFileSecurity_sd_buf(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
92         return srvsvc_dissect_sec_desc_buf(tvb, offset, pinfo, tree, di, drep, hf_srvsvc_srvsvc_NetSetFileSecurity_sd_buf);
94 static int
95 srvsvc_dissect_element_NetShareCtr1501_array__(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
97         return srvsvc_dissect_sec_desc_buf(tvb, offset, pinfo, tree, di, drep, hf_srvsvc_srvsvc_NetShareCtr1501_array);
99 static int
100 srvsvc_dissect_element_NetShareInfo502_sd_buf(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, uint8_t *drep _U_)
102         return  srvsvc_dissect_sec_desc_buf(tvb,offset,pinfo,tree,di,drep, hf_srvsvc_srvsvc_NetShareInfo502_sd_buf);
104 static int
105 srvsvc_dissect_ServerType(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
107         if(di->conformant_run){
108                 /*just a run to handle conformant arrays, nothing to dissect */
109                 return offset;
110         }
112         offset=dissect_smb_server_type_flags(tvb, offset, pinfo, tree, drep, 0);
114         return offset;
116 static int
117 srvsvc_dissect_element_NetSrvInfo101_server_type(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
119         return srvsvc_dissect_ServerType(tvb, offset, pinfo, tree, di, drep);
122 static int
123 srvsvc_dissect_element_NetSrvInfo102_server_type(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
125         return srvsvc_dissect_ServerType(tvb, offset, pinfo, tree, di, drep);
127 static int
128 srvsvc_dissect_secinfo(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, dcerpc_info* di, uint8_t *drep _U_, int hf_index _U_)
130         if(di->conformant_run){
131                 /*just a run to handle conformant arrays, nothing to dissect */
132                 return offset;
133         }
135         offset=dissect_security_information_mask(tvb, tree, offset);
137         return offset;
139 static int
140 srvsvc_dissect_element_NetGetFileSecurity_securityinformation(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
142          return srvsvc_dissect_secinfo(tvb, offset, pinfo, tree, di, drep, hf_srvsvc_srvsvc_NetGetFileSecurity_securityinformation);
144 static int
145 srvsvc_dissect_element_NetSetFileSecurity_securityinformation(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info* di, uint8_t *drep)
147          return srvsvc_dissect_secinfo(tvb, offset, pinfo, tree, di, drep, hf_srvsvc_srvsvc_NetSetFileSecurity_securityinformation);
150 CODE END