mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-07-22 17:25:54 +02:00
Minor logging improvement
This commit is contained in:
parent
1c13a0e539
commit
e91b9d30d6
2 changed files with 3 additions and 0 deletions
|
@ -75,6 +75,7 @@ namespace SMBLibrary.Server.SMB1
|
|||
internal static List<SMB1Command> GetCompleteNTTransactResponse(SMB1Header header, uint maxParameterCount, uint maxDataCount, NTTransactSubcommandName subcommandName, byte[] requestSetup, byte[] requestParameters, byte[] requestData, ISMBShare share, SMB1ConnectionState state)
|
||||
{
|
||||
NTTransactSubcommand subcommand = NTTransactSubcommand.GetSubcommandRequest(subcommandName, requestSetup, requestParameters, requestData, header.UnicodeFlag);
|
||||
state.LogToServer(Severity.Verbose, "Received complete SMB_COM_NT_TRANSACT subcommand: {0}", subcommand.SubcommandName);
|
||||
NTTransactSubcommand subcommandResponse = null;
|
||||
|
||||
if (subcommand is NTTransactCreateRequest)
|
||||
|
|
|
@ -117,6 +117,7 @@ namespace SMBLibrary.Server.SMB1
|
|||
header.Status = NTStatus.STATUS_INVALID_SMB;
|
||||
return new ErrorResponse(CommandName.SMB_COM_TRANSACTION);
|
||||
}
|
||||
state.LogToServer(Severity.Verbose, "Received complete SMB_COM_TRANSACTION subcommand: {0}", subcommand.SubcommandName);
|
||||
TransactionSubcommand subcommandResponse = null;
|
||||
|
||||
if (subcommand is TransactionSetNamedPipeStateRequest)
|
||||
|
@ -191,6 +192,7 @@ namespace SMBLibrary.Server.SMB1
|
|||
header.Status = NTStatus.STATUS_INVALID_SMB;
|
||||
return new ErrorResponse(CommandName.SMB_COM_TRANSACTION2);
|
||||
}
|
||||
state.LogToServer(Severity.Verbose, "Received complete SMB_COM_TRANSACTION2 subcommand: {0}", subcommand.SubcommandName);
|
||||
Transaction2Subcommand subcommandResponse = null;
|
||||
|
||||
if (subcommand is Transaction2FindFirst2Request)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue