Class: OpenFlow::Protocol::PacketIn

Inherits:
Message show all
Defined in:
lib/openflow-protocol/messages/packet_in.rb

Constant Summary collapse

REASONS =
[:no_match, :action]

Constants inherited from Message

Message::HEADER_LENGTH, Message::OFP_VERSION, Message::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



17
18
19
# File 'lib/openflow-protocol/messages/packet_in.rb', line 17

def body_length
  10 + data.length
end

#parsed_dataObject



21
22
23
24
# File 'lib/openflow-protocol/messages/packet_in.rb', line 21

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