/* 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 just file attributes, not search attributes.  */
static int dissect_file_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 just file attributes, not search attributes.  */
static int dissect_file_attributes(tvbuff_t *tvb, proto_tree *parent_tree, int offset)
{
	static const int * flags[] = {
		&hf_smb_file_attr_archive_16bit,
		&hf_smb_file_attr_directory_16bit,
		&hf_smb_file_attr_volume_16bit,
		&hf_smb_file_attr_system_16bit,
		&hf_smb_file_attr_hidden_16bit,
		&hf_smb_file_attr_read_only_16bit,
		NULL
	};
	proto_tree_add_bitmask(parent_tree, tvb, offset, hf_smb_file_attr_16bit, ett_smb_file_attributes, flags, ENC_LITTLE_ENDIAN);
	offset += 2;
	return offset;
}