Minor logging improvement

This commit is contained in:
Tal Aloni 2017-07-25 14:48:06 +03:00
parent 1c13a0e539
commit e91b9d30d6
2 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -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)