Class: Nl::Linux::OvsFlow::Structs::OvsActionPushVlan
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::OvsFlow::Structs::OvsActionPushVlan
- Defined in:
- nl-linux/generated/nl/linux/ovs_flow.rb,
nl-linux/generated/nl/linux/ovs_flow.rb
Instance Attribute Summary collapse
-
#vlan_tci ⇒ Integer
Tag control identifier (TCI) to push.
-
#vlan_tpid ⇒ Integer
Tag protocol identifier (TPID) to push.
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#vlan_tci ⇒ Integer
Tag control identifier (TCI) to push.
523 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 523 MEMBERS = Ractor.make_shareable({vlan_tpid: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil), vlan_tci: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil)}) |
#vlan_tpid ⇒ Integer
Tag protocol identifier (TPID) to push.
523 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 523 MEMBERS = Ractor.make_shareable({vlan_tpid: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil), vlan_tci: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U16, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
529 530 531 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 529 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.
537 538 539 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 537 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |