Class: Nl::Linux::OvsPacket::AttributeSets::Packet
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::OvsPacket::AttributeSets::Packet
- Defined in:
- nl-linux/generated/nl/linux/ovs_packet.rb
Defined Under Namespace
Classes: Actions, Attribute, EgressTunKey, Hash, Key, Len, Mru, Packet, Probe, UpcallPid, Userdata
Constant Summary
Constants inherited from AttributeSet
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#actions ⇒ String
Nested OVS_ACTION_ATTR_* attributes.
-
#egress_tun_key ⇒ String
Nested OVS_TUNNEL_KEY_ATTR_* for output tunnel metadata.
-
#hash ⇒ Integer
Packet hash, low 32 bits are skb hash, upper bits are flags.
-
#key ⇒ String
Nested OVS_KEY_ATTR_* attributes, extracted flow key.
-
#len ⇒ Integer
Packet size before truncation.
-
#mru ⇒ Integer
Maximum received IP fragment size.
-
#packet ⇒ String
Packet data, from the start of the Ethernet header.
-
#probe ⇒ Integer
Packet operation is a feature probe, error logging suppressed.
-
#upcall_pid ⇒ Integer
Netlink PID to use for upcalls during EXECUTE processing.
-
#userdata ⇒ String
Opaque userspace cookie from OVS_USERSPACE_ATTR_USERDATA.
Methods inherited from AttributeSet
#<<, #[], build_attributes, decode, #encode, #initialize
Constructor Details
This class inherits a constructor from Nl::AttributeSet
Class Method Details
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
229 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 229 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
235 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 235 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#actions ⇒ String
Nested OVS_ACTION_ATTR_* attributes. Defined as binary for the same reason as key.
187 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 187 def actions; self[:"actions"]&.value; end |
#egress_tun_key ⇒ String
Nested OVS_TUNNEL_KEY_ATTR_* for output tunnel metadata.
197 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 197 def egress_tun_key; self[:"egress_tun_key"]&.value; end |
#hash ⇒ Integer
Packet hash, low 32 bits are skb hash, upper bits are flags.
217 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 217 def hash; self[:"hash"]&.value; end |
#key ⇒ String
Nested OVS_KEY_ATTR_* attributes, extracted flow key. Defined as binary because the key attribute-set belongs to the ovs_flow family spec; cross-spec references are not supported.
181 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 181 def key; self[:"key"]&.value; end |
#len ⇒ Integer
Packet size before truncation.
212 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 212 def len; self[:"len"]&.value; end |
#mru ⇒ Integer
Maximum received IP fragment size.
207 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 207 def mru; self[:"mru"]&.value; end |
#packet ⇒ String
Packet data, from the start of the Ethernet header.
174 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 174 def packet; self[:"packet"]&.value; end |
#probe ⇒ Integer
Packet operation is a feature probe, error logging suppressed.
202 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 202 def probe; self[:"probe"]&.value; end |
#upcall_pid ⇒ Integer
Netlink PID to use for upcalls during EXECUTE processing.
222 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 222 def upcall_pid; self[:"upcall_pid"]&.value; end |
#userdata ⇒ String
Opaque userspace cookie from OVS_USERSPACE_ATTR_USERDATA.
192 |
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 192 def userdata; self[:"userdata"]&.value; end |