128 lines
3.9 KiB
INI
128 lines
3.9 KiB
INI
# conformance file for SRVSVC
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
MANUAL srvsvc_dissect_element_NetShareInfo_info1501_
|
|
MANUAL srvsvc_dissect_element_NetGetFileSecurity_sd_buf_
|
|
MANUAL srvsvc_dissect_element_NetSetFileSecurity_sd_buf
|
|
MANUAL srvsvc_dissect_element_NetShareCtr1501_array__
|
|
MANUAL srvsvc_dissect_element_NetShareInfo502_sd_
|
|
MANUAL srvsvc_dissect_element_NetShareInfo502_sd__
|
|
# we wont need to manually define servertype once svcctl is autogenerated
|
|
MANUAL srvsvc_dissect_element_NetSrvInfo101_server_type
|
|
MANUAL srvsvc_dissect_element_NetSrvInfo102_server_type
|
|
# until we get secinfo
|
|
MANUAL srvsvc_dissect_element_NetGetFileSecurity_securityinformation
|
|
MANUAL srvsvc_dissect_element_NetSetFileSecurity_securityinformation
|
|
CODE START
|
|
static int
|
|
srvsvc_dissect_sec_desc_buf(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
guint32 len;
|
|
dcerpc_info *di;
|
|
|
|
di=pinfo->private_data;
|
|
if(di->conformant_run){
|
|
/*just a run to handle conformant arrays, nothing to dissect */
|
|
return offset;
|
|
}
|
|
|
|
offset = dissect_ndr_uint32 (tvb, offset, pinfo, tree, drep,
|
|
-1, &len);
|
|
|
|
dissect_nt_sec_desc(tvb, offset, pinfo, tree, drep, TRUE, len,
|
|
NULL);
|
|
|
|
offset += len;
|
|
|
|
return offset;
|
|
}
|
|
static int
|
|
srvsvc_dissect_element_NetShareInfo_info1501_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
return srvsvc_dissect_sec_desc_buf(tvb, offset, pinfo, tree, drep);
|
|
}
|
|
static int
|
|
srvsvc_dissect_element_NetGetFileSecurity_sd_buf_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
return srvsvc_dissect_sec_desc_buf(tvb, offset, pinfo, tree, drep);
|
|
}
|
|
static int
|
|
srvsvc_dissect_element_NetSetFileSecurity_sd_buf(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
return srvsvc_dissect_sec_desc_buf(tvb, offset, pinfo, tree, drep);
|
|
}
|
|
static int
|
|
srvsvc_dissect_element_NetShareCtr1501_array__(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
return srvsvc_dissect_sec_desc_buf(tvb, offset, pinfo, tree, drep);
|
|
}
|
|
static int
|
|
srvsvc_dissect_element_NetShareInfo502_sd_(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
return srvsvc_dissect_sec_desc_buf(tvb, offset, pinfo, tree, drep);
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
srvsvc_dissect_ServerType(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
int dissect_smb_server_type_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, gboolean infoflag);
|
|
|
|
guint32 len;
|
|
dcerpc_info *di;
|
|
|
|
di=pinfo->private_data;
|
|
if(di->conformant_run){
|
|
/*just a run to handle conformant arrays, nothing to dissect */
|
|
return offset;
|
|
}
|
|
|
|
offset=dissect_smb_server_type_flags(tvb, offset, pinfo, tree,
|
|
drep, 0);
|
|
|
|
return offset;
|
|
}
|
|
static int
|
|
srvsvc_dissect_element_NetSrvInfo101_server_type(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
return srvsvc_dissect_ServerType(tvb, offset, pinfo, tree, drep);
|
|
}
|
|
static int
|
|
srvsvc_dissect_element_NetSrvInfo102_server_type(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
return srvsvc_dissect_ServerType(tvb, offset, pinfo, tree, drep);
|
|
}
|
|
|
|
|
|
static int
|
|
srvsvc_dissect_secinfo(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
dcerpc_info *di;
|
|
|
|
di=pinfo->private_data;
|
|
if(di->conformant_run){
|
|
/*just a run to handle conformant arrays, nothing to dissect */
|
|
return offset;
|
|
}
|
|
|
|
offset=dissect_security_information_mask(tvb, tree, offset);
|
|
|
|
return offset;
|
|
}
|
|
static int
|
|
srvsvc_dissect_element_NetGetFileSecurity_securityinformation(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
return srvsvc_dissect_secinfo(tvb, offset, pinfo, tree, drep);
|
|
}
|
|
static int
|
|
srvsvc_dissect_element_NetSetFileSecurity_securityinformation(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep)
|
|
{
|
|
return srvsvc_dissect_secinfo(tvb, offset, pinfo, tree, drep);
|
|
}
|
|
|
|
CODE END
|
|
|