Sha256: 7123ab98ddd0601b5e6ff0ba6d51b5e14d2fb6e9947cc5e6ac03e558fdf6ef38

Contents?: true

Size: 1.73 KB

Versions: 30

Compression:

Stored size: 1.73 KB

Contents

module RubySMB
  module SMB1
    module Packet
      module Trans2
        # The Trans2 Parameter Block for this particular Subcommand
        class SetFileInformationResponseTrans2Parameters < BinData::Record
          endian :little

          uint16 :ea_error_offset, label: 'Extended Attribute Error Offset'

          # Returns the length of the Trans2Parameters struct
          # in number of bytes
          def length
            do_num_bytes
          end
        end

        # The {RubySMB::SMB1::DataBlock} specific to this packet type.
        class SetFileInformationResponseDataBlock < RubySMB::SMB1::Packet::Trans2::DataBlock
          string                                           :pad1,               length: -> { pad1_length }
          set_file_information_response_trans2_parameters  :trans2_parameters,  label: 'Trans2 Parameters'
          # trans2_data: No data is sent by this message.
        end

        # A Trans2 SET_FILE_INFORMATION Response Packet as defined in
        # [2.2.6.9.2 Response](https://msdn.microsoft.com/en-us/library/ff469853.aspx)
        class SetFileInformationResponse < RubySMB::GenericPacket
          COMMAND = RubySMB::SMB1::Commands::SMB_COM_TRANSACTION2

          class ParameterBlock < RubySMB::SMB1::Packet::Trans2::Response::ParameterBlock
          end

          smb_header                                :smb_header
          parameter_block                           :parameter_block
          set_file_information_response_data_block  :data_block

          def initialize_instance
            super
            parameter_block.setup << RubySMB::SMB1::Packet::Trans2::Subcommands::SET_FILE_INFORMATION
            smb_header.flags.reply = 1
          end
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
ruby_smb-3.3.13 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.12 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.11 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.10 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.9 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.7 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.6 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.5 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.4 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.3 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.2 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.1 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.3.0 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.2.8 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.2.7 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.2.6 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.2.5 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.2.4 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.2.3 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb
ruby_smb-3.2.2 lib/ruby_smb/smb1/packet/trans2/set_file_information_response.rb