Compartilhar via


2.2.2.1 SMB2 ERROR Context Response

For the SMB dialect 3.1.1, the servers format the error data as an array of SMB2 ERROR Context structures. Each error context is a variable-length structure that contains an identifier for the error context followed by the error data.


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

ErrorDataLength

ErrorId

ErrorContextData (variable)

...

ErrorDataLength (4 bytes): The length, in bytes, of the ErrorContextData field.

ErrorId (4 bytes): An identifier for the error context. This field MUST be set to one of the following values.

ErrorId

Description

SMB2_ERROR_ID_DEFAULT

0x00000000

Unless otherwise specified, all errors defined in the [MS-SMB2] protocol use this error ID.

SMB2_ERROR_ID_SHARE_REDIRECT

0x72645253

The ErrorContextData field contains a share redirect message described in section 2.2.2.2.2.

ErrorContextData (variable): Variable-length error data formatted as specified in section 2.2.2.2.