Class: Nl::Linux::OvsFlow::Structs::OvsKeyNd

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#nd_sll ⇒ String

Returns:

  • (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

Returns:

  • (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_tll ⇒ String

Returns:

  • (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.

Parameters:

Returns:

  • (self)


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.

Parameters:



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