/* Dissects an SMB_FILE_ATTRIBUTES, to use the term given to it by section 2.2.1.2.4 of , in cases where it's search attributes.  */
static int dissect_search_attributes(tvbuff_t *tvb, proto_tree *parent_tree, int offset)
/* Dissects an SMB_FILE_ATTRIBUTES, to use the term given to it by section 2.2.1.2.4 of , in cases where it's search attributes.  */
static int dissect_search_attributes(tvbuff_t *tvb, proto_tree *parent_tree, int offset)
{
	static const int * flags[] = {
		&hf_smb_search_attribute_read_only,
		&hf_smb_search_attribute_hidden,
		&hf_smb_search_attribute_system,
		&hf_smb_search_attribute_volume,
		&hf_smb_search_attribute_directory,
		&hf_smb_search_attribute_archive,
		NULL
	};
	proto_tree_add_bitmask(parent_tree, tvb, offset, hf_smb_search_attribute, ett_smb_search, flags, ENC_LITTLE_ENDIAN);
	offset += 2;
	return offset;
}