2.2.9.2 SMB2 TREE_CONNECT_CONTEXT Request Values

The SMB2_TREE_CONNECT_CONTEXT structure is used by the SMB2 TREE_CONNECT request and the SMB2 TREE_CONNECT response to encode additional properties.


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

ContextType

DataLength

Reserved

Data (variable)

...

ContextType (2 bytes): Specifies the type of context in the Data field. This field MUST be one of the following values:

Value

Meaning

SMB2_RESERVED_TREE_CONNECT_CONTEXT_ID

0x0000

This value is reserved.

SMB2_REMOTED_IDENTITY_TREE_CONNECT_CONTEXT_ID

0x0001

The Data field contains remoted identity tree connect context data as specified in section 2.2.9.2.1.

DataLength (2 bytes): The length, in bytes, of the Data field.

Reserved (4 bytes): This field MUST NOT be used and MUST be reserved. This value MUST be set to 0 by the client, and MUST be ignored by the server.

Data (variable): A variable-length field that contains the tree connect context specified by the ContextType field.