Skip to main content

Module hdr

Module hdr 

Source
Expand description

Byte offsets and sizes of the 64-byte SMB2 packet header ([MS-SMB2] §2.2.1.2).

Constants§

ALIGN
Compound requests/responses are 8-byte aligned ([MS-SMB2] §3.3.4.1).
ASYNC_ID
AsyncId offset in async mode (overlaps Reserved + TreeId).
COMMAND
Command offset.
CREDIT
CreditRequest / CreditResponse offset.
CREDIT_CHARGE
CreditCharge offset.
FLAGS
Flags offset.
LEN
Total SMB2 packet header length.
MESSAGE_ID
MessageId offset.
NEXT_COMMAND
NextCommand offset (compound chaining).
PROTOCOL_ID
ProtocolId (\xFESMB) offset.
SESSION_ID
SessionId offset.
SIGNATURE
Signature offset.
SIGNATURE_LEN
Signature length.
STATUS
Status / ChannelSequence offset.
STRUCTURE_SIZE
StructureSize offset (the value is always 64).
TREE_ID
TreeId offset in sync mode.