Class: OFPacketIn

Inherits:
OFMessage show all
Defined in:
lib/messages/packet_in.rb

Constant Summary collapse

REASONS =
[:no_match, :action]

Constants inherited from OFMessage

OFMessage::HEADER_LENGTH, OFMessage::OFP_VERSION, OFMessage::TYPES

Instance Attribute Summary

Attributes inherited from SuperclassBase

#type_str

Instance Method Summary collapse

Methods inherited from SuperclassBase

#initialize_instance

Instance Method Details

#body_lengthObject



15
16
17
# File 'lib/messages/packet_in.rb', line 15

def body_length
  10 + data.length
end

#parsed_dataObject



19
20
21
22
# File 'lib/messages/packet_in.rb', line 19

def parsed_data
  @parsed_data ||= Ethernet.read(data)
  @parsed_data
end