Differences between revisions 2 and 3
Revision 2 as of 2005-11-16 12:13:51
Size: 712
Editor: xdsl-195-14-205-204
Comment: only the first 2 bytes are the buffer code, the rest is command specific --metze
Revision 3 as of 2008-04-12 17:51:30
Size: 712
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

SMB2/BufferCode

All SMB2 command PDUs start with a buffer code that is two bytes in size.

SMB commands that return no data at all will have a buffer of only two bytes 0x02 0x00

Structure

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    Length   :D|               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Length

The length in bytes of the fixed portion of the SMB command PDU.

D

This is a flag that indicates whether this command PDU also may contain a dynamic part. The length of the dynamic part is specific to each command opcode and stored in the fixed part of the command.

If present the dynamic part of the command PDU will follow immediately after the fixed part.

SMB2/BufferCode (last edited 2008-04-12 17:51:30 by localhost)