Expand description
SMB1 command routing and handlers.
Re-exports§
pub use crate::dispatch::IoCtx;pub use crate::cmds::dir_cmds::split_pattern_pub as split_pattern;
Modules§
- dir_
cmds - Legacy path command handlers ([MS-CIFS] core/LANMAN set).
- file_
cmds - File command handlers: NT_CREATE_ANDX, READ/WRITE_ANDX, CLOSE, FLUSH, SEEK, LOCKING_ANDX and QUERY_INFORMATION_DISK.
- session
- Negotiate / session setup / tree connect / echo handlers.
- smb_
server_ 🔒vfs_ stub - Stub namespace so
share_vfscan always return something. - trans2_
cmds - TRANSACTION2 subcommand dispatch ([MS-SMB] §2.2.6).
Functions§
- dir_
cmds_ split - Split a find pattern into directory + filename parts.
- dispatch_
one - Route one request: fills
bodiesand returns the response status. - share_
vfs - Resolve the VFS for the request’s tree; IPC$ yields a stub that rejects. Clone the VFS handle for the request’s tree (Arc so handlers can hold it across mutable connection access).
- share_
vfs_ 🔒any - wildcard
- DOS wildcard match.