Compartir a través de


2.2.38 SMB2 QUERY_INFO Response

The SMB2 QUERY_INFO Response packet is sent by the server in response to an SMB2 QUERY_INFO Request packet. This response consists of an SMB2 header, as specified in section 2.2.1, followed by this response structure.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

StructureSize

OutputBufferOffset

OutputBufferLength

Buffer (variable)

...

StructureSize (2 bytes): The server MUST set this field to 9, indicating the size of the request structure, not including the header. The server MUST set this field to this value regardless of how long Buffer[] actually is in the request being sent.

OutputBufferOffset (2 bytes): The offset, in bytes, from the beginning of the SMB2 header to the information being returned.

OutputBufferLength (4 bytes): The length, in bytes, of the information being returned.

Buffer (variable): A variable-length buffer that contains the information that is returned in the response, as described by the OutputBufferOffset and OutputBufferLength fields. Buffer format depends on InfoType and AdditionalInformation, as follows.

InfoType

AdditionalInformation

Buffer format specification

SMB2_0_INFO_FILE

The value depends on FileInfoClass, as specified in section 2.2.37.

See [MS-FSCC] section 2.4. For FileFullEaInformation, the server MUST return the list of extended attributes (EA) that will fit in the Buffer, beginning with the attribute whose index is specified by the AdditionalInformation field of the request. The size of the returned buffer is equal to the size of the EA entries that are returned.

SMB2_0_INFO_FILESYSTEM

0

See [MS-FSCC] section 2.5.

SMB2_0_INFO_SECURITY

Any combination of the values:

OWNER_SECURITY_INFORMATION

GROUP_SECURITY_INFORMATION

LABEL_SECURITY_INFORMATION

DACL_SECURITY_INFORMATION

SACL_SECURITY_INFORMATION

ATTRIBUTE_SECURITY_INFORMATION

SCOPE_SECURITY_INFORMATION

BACKUP_SECURITY_INFORMATION

The security descriptor data structure, as specified in [MS-DTYP] section 2.4.6, populated with the data specified by the AdditionalInformation value.

SMB2_0_INFO_QUOTA

0

See [MS-FSCC] section 2.4.40.