Transaction2GetDfsReferralResponse.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Copyright (C) 2014-2017 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 Utilities;
  10. namespace SMBLibrary.SMB1
  11. {
  12. /// <summary>
  13. /// TRANS2_GET_DFS_REFERRAL Response
  14. /// </summary>
  15. public class Transaction2GetDfsReferralResponse : Transaction2Subcommand
  16. {
  17. public const int ParametersLength = 0;
  18. // Data:
  19. public ResponseGetDfsReferral ReferralResponse;
  20. public Transaction2GetDfsReferralResponse() : base()
  21. {
  22. }
  23. public Transaction2GetDfsReferralResponse(byte[] parameters, byte[] data) : base()
  24. {
  25. ReferralResponse = new ResponseGetDfsReferral(data);
  26. }
  27. public override byte[] GetData(bool isUnicode)
  28. {
  29. return ReferralResponse.GetBytes();
  30. }
  31. public override Transaction2SubcommandName SubcommandName
  32. {
  33. get
  34. {
  35. return Transaction2SubcommandName.TRANS2_GET_DFS_REFERRAL;
  36. }
  37. }
  38. }
  39. }