Browse Source

SMB1: Added ParametersLength definition to several Transaction2Subcommands

Tal Aloni 7 years ago
parent
commit
99faa4aa92

+ 1 - 1
SMBLibrary/SMB1/Transaction2Subcommands/Transaction2QueryFSInformationResponse.cs

@@ -16,12 +16,12 @@ namespace SMBLibrary.SMB1
     /// </summary>
     public class Transaction2QueryFSInformationResponse : Transaction2Subcommand
     {
+        public const int ParametersLength = 0;
         // Data:
         private byte[] QueryFSInformationBytes;
 
         public Transaction2QueryFSInformationResponse() : base()
         {
-
         }
 
         public Transaction2QueryFSInformationResponse(byte[] parameters, byte[] data, bool isUnicode) : base()

+ 1 - 1
SMBLibrary/SMB1/Transaction2Subcommands/Transaction2QueryFileInformationResponse.cs

@@ -16,6 +16,7 @@ namespace SMBLibrary.SMB1
     /// </summary
     public class Transaction2QueryFileInformationResponse : Transaction2Subcommand
     {
+        public const int ParametersLength = 2;
         // Parameters:
         public ushort EaErrorOffset; // Meaningful only when request's InformationLevel is SMB_INFO_QUERY_EAS_FROM_LIST
         // Data:
@@ -23,7 +24,6 @@ namespace SMBLibrary.SMB1
 
         public Transaction2QueryFileInformationResponse() : base()
         {
-
         }
 
         public Transaction2QueryFileInformationResponse(byte[] parameters, byte[] data, bool isUnicode) : base()

+ 1 - 1
SMBLibrary/SMB1/Transaction2Subcommands/Transaction2SetFileInformationResponse.cs

@@ -16,12 +16,12 @@ namespace SMBLibrary.SMB1
     /// </summary>
     public class Transaction2SetFileInformationResponse : Transaction2Subcommand
     {
+        public const int ParametersLength = 2;
         // Parameters:
         public ushort EaErrorOffset; // Meaningful only when the request's InformationLevel is set to SMB_INFO_SET_EAS
 
         public Transaction2SetFileInformationResponse() : base()
         {
-
         }
 
         public Transaction2SetFileInformationResponse(byte[] parameters, byte[] data, bool isUnicode) : base()