mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Disable the smb_cmd.log by default.
This commit is contained in:
parent
f9cbee20f8
commit
dbb5992f43
3 changed files with 6 additions and 2 deletions
|
@ -130,6 +130,10 @@ export {
|
|||
smb : Info &optional;
|
||||
};
|
||||
|
||||
## Optionally write out the SMB commands log. This is
|
||||
## primarily useful for debugging so is disabled by default.
|
||||
const write_cmd_log = F &redef;
|
||||
|
||||
## This is an internally used function.
|
||||
const set_current_file: function(smb: Info, file_id: count) &redef;
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ event smb1_message(c: connection, hdr: SMB1::Header, is_orig: bool) &priority=-5
|
|||
# so let's get rid of it.
|
||||
delete c$smb$pending_cmds[hdr$mid];
|
||||
|
||||
if ( c?$smb )
|
||||
if ( SMB::write_cmd_log && c?$smb )
|
||||
Log::write(SMB::CMD_LOG, c$smb);
|
||||
}
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ event smb2_message(c: connection, hdr: SMB2::Header, is_orig: bool) &priority=-5
|
|||
# so let's get rid of it.
|
||||
delete c$smb$pending_cmds[hdr$message_id];
|
||||
|
||||
if ( c?$smb )
|
||||
if ( SMB::write_cmd_log && c?$smb )
|
||||
Log::write(SMB::CMD_LOG, c$smb);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue