Partager via


2.2.4.2.2 Server Response Extensions

A successful response takes the following format. Aside from the first two bytes of the SMB_Parameters.Words.Reserved2[] field being extended for use as the new DataLengthHigh field, all other fields are defined as specified in [MS-CIFS] section 2.2.4.42.2.

 SMB_Parameters
   {
   UCHAR WordCount;
   Words
     {
     UCHAR  AndXCommand;
     UCHAR  AndXReserved;
     USHORT AndXOffset;
     USHORT Available;
     USHORT DataCompactionMode;
     USHORT Reserved1;
     USHORT DataLength;
     USHORT DataOffset;
     USHORT DataLengthHigh;
     USHORT Reserved2[4];
     }
   }
 SMB_Data
   {
   USHORT ByteCount;
   Bytes
     {
     UCHAR Pad[] (optional);
     UCHAR Data[variable];
     }
   }

SMB_Parameters

Words (24 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

AndXCommand

AndXReserved

AndXOffset

Available

DataCompactionMode

Reserved1

DataLength

DataOffset

DataLengthHigh

Reserved2

...

DataLengthHigh (2 bytes): If the data read is greater than or equal to 0x00010000 bytes (64KB) in length, then the server MUST set the two least-significant bytes of the length in the DataLength field of the response and the two most-significant bytes of the length in the DataLengthHigh field. Otherwise, this field MUST be set to zero.

Reserved2 (8 bytes): This field MUST be set to zero by the server and MUST be ignored by the client.