Class: Nl::Linux::OvsFlow::Structs::OvsHeader
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::OvsFlow::Structs::OvsHeader
- Defined in:
- nl-linux/generated/nl/linux/ovs_flow.rb,
nl-linux/generated/nl/linux/ovs_flow.rb
Overview
Header for OVS Generic Netlink messages.
Instance Attribute Summary collapse
-
#dp_ifindex ⇒ Integer
ifindex of local port for datapath (0 to make a request not specific to a datapath).
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
91 92 93 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 91 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
Instance Method Details
#encode(encoder) ⇒ void
This method returns an undefined value.
Encodes the struct.
99 100 101 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 99 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |