Browse Source

SMB1: Improved implementation of TRANS2_GET_DFS_REFERRAL request and response

Tal Aloni 7 years ago
parent
commit
e287129571

+ 4 - 4
SMBLibrary/SMB1/Transaction2Subcommands/Transaction2GetDfsReferralRequest.cs

@@ -1,4 +1,4 @@
-/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
+/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  * 
  * You can redistribute this program and/or modify it under the terms of
  * the GNU Lesser Public License as published by the Free Software Foundation,
@@ -6,7 +6,6 @@
  */
 using System;
 using System.Collections.Generic;
-using System.Text;
 using Utilities;
 
 namespace SMBLibrary.SMB1
@@ -17,10 +16,11 @@ namespace SMBLibrary.SMB1
     public class Transaction2GetDfsReferralRequest : Transaction2Subcommand
     {
         // Parameters:
-        RequestGetDfsReferral ReferralRequest;
+        public RequestGetDfsReferral ReferralRequest;
 
         public Transaction2GetDfsReferralRequest() : base()
-        {}
+        {
+        }
 
         public Transaction2GetDfsReferralRequest(byte[] parameters, byte[] data) : base()
         {

+ 2 - 4
SMBLibrary/SMB1/Transaction2Subcommands/Transaction2GetDfsReferralResponse.cs

@@ -1,4 +1,4 @@
-/* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
+/* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  * 
  * You can redistribute this program and/or modify it under the terms of
  * the GNU Lesser Public License as published by the Free Software Foundation,
@@ -6,19 +6,17 @@
  */
 using System;
 using System.Collections.Generic;
-using System.Text;
 using Utilities;
 
 namespace SMBLibrary.SMB1
 {
     /// <summary>
     /// TRANS2_GET_DFS_REFERRAL Response
-    /// We will always return STATUS_NO_SUCH_DEVICE
     /// </summary>
     public class Transaction2GetDfsReferralResponse : Transaction2Subcommand
     {
         // Data:
-        ResponseGetDfsReferral ReferralResponse; 
+        public ResponseGetDfsReferral ReferralResponse; 
 
         public Transaction2GetDfsReferralResponse() : base()
         {