2.2.2.2.2 Share Redirect Error Context Response

Servers which negotiate SMB 3.1.1 or higher can return this error context to a client in response to a tree connect request with the SMB2_TREE_CONNECT_FLAG_REDIRECT_TO_OWNER bit set in the Flags field of the SMB2 TREE_CONNECT request. The corresponding Status code in the SMB2 header of the response MUST be set to STATUS_BAD_NETWORK_NAME. The error context data is formatted as follows.


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

NotificationType

ResourceNameOffset

ResourceNameLength

Flags

TargetType

IPAddrCount

IPAddrMoveList (variable)

...

ResourceName (variable)

...

StructureSize (4 bytes): This field MUST be set to the size of the structure.

NotificationType (4 bytes): This field MUST be set to 3.

ResourceNameOffset (4 bytes): The offset from the start of this structure to the ResourceName field.

ResourceNameLength (4 bytes): The length of the share name provided in the ResourceName field, in bytes.

Flags (2 bytes): This field MUST be set to zero.

TargetType (2 bytes): This field MUST be set to zero.

IPAddrCount (4 bytes): The number of MOVE_DST_IPADDR structures in the IPAddrMoveList field.

IPAddrMoveList (variable): Array of MOVE_DST_IPADDR structures, as specified in section 2.2.2.2.2.1.

ResourceName (variable): Name of the share as a counted Unicode string, as specified in [MS-DTYP] section 2.3.10.