Class: Nl::Linux::OvsFlow::Structs::OvsActionAddMpls
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::OvsFlow::Structs::OvsActionAddMpls
- Defined in:
- nl-linux/generated/nl/linux/ovs_flow.rb,
nl-linux/generated/nl/linux/ovs_flow.rb
Instance Attribute Summary collapse
-
#mpls_ethertype ⇒ Integer
Ethertype to set in the encapsulating ethernet frame.
-
#mpls_lse ⇒ Integer
MPLS label stack entry to push.
-
#tun_flags ⇒ Integer
MPLS tunnel attributes.
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#mpls_ethertype ⇒ Integer
Ethertype to set in the encapsulating ethernet frame. The only values ethertype should ever be given are ETH_P_MPLS_UC and ETH_P_MPLS_MC, indicating MPLS unicast or multicast. Other are rejected.
621 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 621 MEMBERS = Ractor.make_shareable({mpls_lse: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil), mpls_ethertype: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil), tun_flags: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil)}) |
#mpls_lse ⇒ Integer
MPLS label stack entry to push
621 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 621 MEMBERS = Ractor.make_shareable({mpls_lse: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil), mpls_ethertype: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil), tun_flags: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil)}) |
#tun_flags ⇒ Integer
MPLS tunnel attributes.
621 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 621 MEMBERS = Ractor.make_shareable({mpls_lse: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil), mpls_ethertype: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Big::U32, check: nil), tun_flags: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U16, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
627 628 629 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 627 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.
635 636 637 |
# File 'nl-linux/generated/nl/linux/ovs_flow.rb', line 635 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |