Transaction2GetDfsReferralResponse.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Text;
  10. using Utilities;
  11. namespace SMBLibrary.SMB1
  12. {
  13. /// <summary>
  14. /// TRANS2_GET_DFS_REFERRAL Response
  15. /// We will always return STATUS_NO_SUCH_DEVICE
  16. /// </summary>
  17. public class Transaction2GetDfsReferralResponse : Transaction2Subcommand
  18. {
  19. // Data:
  20. ResponseGetDfsReferral ReferralResponse;
  21. public Transaction2GetDfsReferralResponse() : base()
  22. {
  23. }
  24. public Transaction2GetDfsReferralResponse(byte[] parameters, byte[] data) : base()
  25. {
  26. ReferralResponse = new ResponseGetDfsReferral(data);
  27. }
  28. public override byte[] GetData(bool isUnicode)
  29. {
  30. return ReferralResponse.GetBytes();
  31. }
  32. public override Transaction2SubcommandName SubcommandName
  33. {
  34. get
  35. {
  36. return Transaction2SubcommandName.TRANS2_GET_DFS_REFERRAL;
  37. }
  38. }
  39. }
  40. }