Expand description
SMB header codec ([MS-SMB] §2.2.3.1, base layout [MS-CIFS] §2.2.1.1) and AndX-aware response assembly.
Re-exports§
Structs§
- Header
- The 32-byte SMB header shared by every message.
- Resp
Body - One response body (parameter words + data block). A complete frame carries a header plus one body; AndX chains carry several bodies whose parameter blocks open with AndXCommand/AndXOffset links.
Constants§
Functions§
- build_
response - Assemble a complete SMB frame echoing
req_hdr, carryingstatusand the given bodies, wiring AndX offsets between them. - parse_
header - Parse a header from the start of
buf; returns the header plus the WordCount offset (alwaysHDR_LEN).Noneon bad magic/size.