2.2.9.1 SMB2 TREE_CONNECT Request Extension

If the Flags field of the SMB2 TREE_CONNECT request has the SMB2_TREE_CONNECT_FLAG_EXTENSION_PRESENT bit set, the following structure MUST be added at the beginning of the Buffer field.


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

TreeConnectContextOffset

TreeConnectContextCount

Reserved

...

...

PathName (variable)

...

TreeConnectContexts (variable)

...

TreeConnectContextOffset (4 bytes): The offset from the start of the SMB2 TREE_CONNECT request of an array of tree connect contexts.

TreeConnectContextCount (2 bytes): The count of elements in the tree connect context array.

Reserved (10 bytes): MUST be set to zero.

PathName (variable): This field is a variable-length buffer that contains the full share path name as specified in section 2.2.9.

TreeConnectContexts (variable): A variable length array of SMB2_TREE_CONNECT_CONTEXT structures as described in section 2.2.9.2.