2.2.4.23.1 Request
-
SMB_Parameters { UCHAR WordCount; Words { USHORT FID; ULONG Offset; USHORT MaxCountOfBytesToReturn; USHORT MinCountOfBytesToReturn; ULONG Timeout; USHORT Reserved; } } SMB_Data { USHORT ByteCount; }
-
-
CID (2 bytes): This field MUST contain the Connection ID (CID) of the connectionless transport session.
-
MID (2 bytes): This field MUST contain a valid MID that MUST be unique to this request within the client's session.
-
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SMB_Parameters (17 bytes) |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
SMB_Data |
SMB_Parameters (17 bytes):
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1WordCount
Words (16 bytes)
...
...
...
-
WordCount (1 byte): This field MUST be 0x08. The length, in two-byte words, of the remaining SMB_Parameters.
-
Words (16 bytes):
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1FID
Offset
...
MaxCountOfBytesToReturn
MinCountOfBytesToReturn
Timeout
...
Reserved
-
FID (2 bytes): This field MUST be a valid 16-bit unsigned integer indicating the file from which the data MUST be read.
-
Offset (4 bytes): The offset, in bytes, from the start of the file at which the read begins.
-
MaxCountOfBytesToReturn (2 bytes): The requested maximum number of bytes to read from the file and return to the client. The value MAY exceed the negotiated buffer size.
-
MinCountOfBytesToReturn (2 bytes): The requested minimum number of bytes to read from the file and return to the client. This field is used only when reading from a named pipe or a device. It MUST be ignored when reading from a standard file.
-
Timeout (4 bytes): The number of milliseconds that the server is requested to wait while processing this command. This field is optionally honored only when reading from a named pipe or I/O device. It does not apply when reading from a regular file.
-
Reserved (2 bytes): This field SHOULD be set to 0x0000.
-
SMB_Data (2 bytes):
-
0
1
2
3
4
5
6
7
8
91
0
1
2
3
4
5
6
7
8
92
0
1
2
3
4
5
6
7
8
93
0
1ByteCount
-
ByteCount (2 bytes): This field MUST be 0x0000. No data is sent by this message.