lib/ruby_smb/smb1/packet/trans/response.rb in ruby_smb-1.0.3 vs lib/ruby_smb/smb1/packet/trans/response.rb in ruby_smb-1.0.4
- old
+ new
@@ -4,10 +4,12 @@
module Trans
# This class represents a generic SMB1 Trans Response Packet as defined in
# [2.2.4.33.2 Response](https://msdn.microsoft.com/en-us/library/ee442061.aspx)
class Response < RubySMB::GenericPacket
+ COMMAND = RubySMB::SMB1::Commands::SMB_COM_TRANSACTION
+
# A SMB1 Parameter Block
class ParameterBlock < RubySMB::SMB1::ParameterBlock
uint16 :total_parameter_count, label: 'Total Parameter Count(bytes)', initial_value: -> { parameter_count }
uint16 :total_data_count, label: 'Total Data Count(bytes)', initial_value: -> { data_count }
uint16 :reserved, label: 'Reserved Space', value: 0x0000
@@ -33,10 +35,9 @@
parameter_block :parameter_block
data_block :data_block
def initialize_instance
super
- smb_header.command = RubySMB::SMB1::Commands::SMB_COM_TRANSACTION
smb_header.flags.reply = 1
end
end
end