Class: Nl::Linux::OvsFlow::Structs::OvsKeyNd
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::OvsFlow::Structs::OvsKeyNd
- Defined in:
- nl-linux/generated/nl/linux/ovs_flow.rb,
nl-linux/generated/nl/linux/ovs_flow.rb
Instance Attribute Summary collapse
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#nd_sll ⇒ String
456 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 456 MEMBERS = Ractor.make_shareable({nd_target: ::Nl::DataTypes::Binary.new(length: 16, check: nil), nd_sll: ::Nl::DataTypes::Binary.new(length: 6, check: nil), nd_tll: ::Nl::DataTypes::Binary.new(length: 6, check: nil)}) |
#nd_target ⇒ String
456 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 456 MEMBERS = Ractor.make_shareable({nd_target: ::Nl::DataTypes::Binary.new(length: 16, check: nil), nd_sll: ::Nl::DataTypes::Binary.new(length: 6, check: nil), nd_tll: ::Nl::DataTypes::Binary.new(length: 6, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
462 463 464 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 462 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.
470 471 472 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 470 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |