Differences between revisions 7 and 8
Revision 7 as of 2005-11-28 22:05:03
Size: 3222
Comment: add link back to SMB2 for easier navigation
Revision 8 as of 2008-04-12 17:50:21
Size: 3222
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
This ["SMB2"] command is used to write to an open FID. This [[SMB2]] command is used to write to an open FID.
Line 39: Line 39:
["SMB2/BufferCode"] 0x32 = 0x30 | 0x01 [[SMB2/BufferCode]] 0x32 = 0x30 | 0x01
Line 51: Line 51:
["SMB2/FID"] [[SMB2/FID]]
Line 73: Line 73:
["SMB2/BufferCode"] 0x11 = 0x10 | 0x01
(why? where is the dynamic part? I assume it's because the same structure as in ["SMB2/Read"] is used)
[[SMB2/BufferCode]] 0x11 = 0x10 | 0x01
(why? where is the dynamic part? I assume it's because the same structure as in [[SMB2/Read]] is used)

SMB2/Write

Opcode 0x09

This SMB2 command is used to write to an open FID.

SMB2/Write Request

SMB2/Write Request Packet Format

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          Buffer Code          |           Data Offset         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          Data Length                          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                                               |
+-+-+-+-+                  File Offset                  +-+-+-+-+
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                                                               |
+-+-+-+-+                      FID                      +-+-+-+-+
|                                                               |
+-+-+-+-+                                               +-+-+-+-+
|                                                               |
+-+-+-+-+                                               +-+-+-+-+
|                                                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |               |               |               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |               |               |               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |               |               |               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |               |               |               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Data
+-+-+-+-+

Buffer Code

SMB2/BufferCode 0x32 = 0x30 | 0x01

Data Offset

TODO...

Data Length

This is the amount of data to be written.

File Offset

At which offset in the file to write data.

FID

SMB2/FID This is the object to write the data to

Data

Length number of bytes containin the data to be written.

SMB2/Write Response

SMB2/Write Response Packet Format

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|          Buffer Code          |               |               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                         Bytes Written                         |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |               |               |               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |               |               |               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|               |
+-+-+-+-+-+-+-+-+

Buffer Code

SMB2/BufferCode 0x11 = 0x10 | 0x01 (why? where is the dynamic part? I assume it's because the same structure as in SMB2/Read is used)

Bytes Written

The number of bytes written to the object.

NT Status Codes

Discussion

SMB2/Write (last edited 2008-04-12 17:50:21 by localhost)