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
#type_str
Instance Method Summary
collapse
#initialize_instance
Instance Method Details
#body_length ⇒ Object
17
18
19
|
# File 'lib/openflow-protocol/messages/packet_in.rb', line 17
def body_length
10 + data.length
end
|
#parsed_data ⇒ Object
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
|