2.2.4.50.2 Response

 SMB_Parameters
   {
   UCHAR  WordCount;
   Words
     {
     USHORT MaxBufferSize;
     USHORT TID;
     }
   }
 SMB_Data
   {
   USHORT ByteCount;
   }


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

SMB_Parameters

...

SMB_Data

SMB_Parameters (5 bytes):


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

WordCount

Words

...

WordCount (1 byte): This field MUST be set to 0x02.

Words (4 bytes):


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

MaxBufferSize

TID

MaxBufferSize (2 bytes): The maximum size, in bytes, of the largest SMB message that the server can receive. This is the size of the largest SMB message that the client can send to the server. SMB message size includes the size of the SMB Header (section 2.2.3.1), parameter, and data blocks. This size MUST NOT include any transport-layer framing or other transport-layer data.

TID (2 bytes): The newly generated Tree ID, used in subsequent CIFS client requests to refer to a resource relative to the SMB_Data.Bytes.Path specified in the request. Most access to the server requires a valid TID, whether the resource is password protected or not. The value 0xFFFF is reserved; the server MUST NOT return a TID value of 0xFFFF.

SMB_Data (2 bytes):


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

ByteCount

ByteCount (2 bytes): This field MUST be 0x0000. No data is sent by this message.

Error Codes

SMB error class

SMB error code

NT status code

POSIX equivalent

Description

ERRDOS (0x01)

ERRbadpath

(0x0003)

STATUS_OBJECT_PATH_NOT_FOUND

(0xC000003A)

ENOENT

The share path does not reference a valid resource.

ERRDOS (0x01)

ERRnoaccess

(0x0005)

STATUS_LOGON_FAILURE

(0xC000006D)

EPERM

The server rejected the client logon attempt.

ERRDOS (0x01)

ERRnomem

(0x0008)

STATUS_INSUFF_SERVER_RESOURCES

(0xC0000205)

ENOMEM

The server is out of resources. Out of memory or TIDs.

ERRDOS (0x01)

ERRnosuchshare

(0x0043)

STATUS_BAD_NETWORK_NAME

(0xC00000CC)

The server is temporarily paused.

ERRDOS (0x01)

ERRpaused

(0x0046)

STATUS_SHARING_PAUSED

(0xC00000CF)

The server is temporarily paused.

ERRDOS (0x01)

ERRreqnotaccep

(0x0047)

STATUS_REQUEST_NOT_ACCEPTED

(0xC00000D0)

The server has no more connections available.

ERRDOS (0x01)

ERRinvalidparam

(0x0057)

STATUS_INVALID_PARAMETER

(0xC000000D)

Tree connect request after request to end session or internal error.

ERRSRV

(0x02)

ERRerror

(0x0001)

STATUS_INVALID_SMB

(0x00010002)

Invalid SMB. Not enough parameter bytes were sent. Did the client omit a session setup?

ERRSRV

(0x02)

ERRbadpw

(0x0002)

STATUS_LOGON_FAILURE

(0xC000006D)

Incorrect password during logon attempt.

ERRSRV

(0x02)

ERRaccess

(0x0004)

STATUS_ACCESS_DENIED

(0xC0000022)

The user is not authorized to access the resource.

ERRSRV

(0x02)

ERRinvnetname

(0x0006)

STATUS_BAD_NETWORK_NAME

(0xC00000CC)

The share path is not valid.

ERRSRV

(0x02)

ERRinvdevice

(0x0007)

STATUS_BAD_DEVICE_TYPE

(0xC00000CB)

Resource type invalid. Value of Service field in the request was invalid.

ERRSRV

(0x02)

ERRbaduid

(0x005B)

STATUS_SMB_BAD_UID

(0x005B0002)

The UID supplied is not defined to the session.