Skip to main content

smb_request_table

Macro smb_request_table 

Source
macro_rules! smb_request_table {
    ( $( $variant:ident = $code:path => $req:ty ; )* ) => { ... };
}
Expand description

The command table: the single source of truth mapping an SMB2 command code to its request type. Generates SmbRequest, SmbRequest::command, and SmbRequest::parse, so a decodable command is one line and cannot desync.