Skip to main content

Module cmds

Module cmds 

Source
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_vfs can 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 bodies and 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.