Class: Nl::Linux::OvsPacket::AttributeSets::Packet

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

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • name (Symbol)

Returns:



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.

Parameters:

  • type (Integer)

Returns:



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.

Returns:

  • (String)

See Also:



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.

Returns:

  • (String)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (String)

See Also:



181
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 181

def key; self[:"key"]&.value; end

#len ⇒ Integer

Packet size before truncation.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (String)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (String)

See Also:



192
# File 'nl-linux/generated/nl/linux/ovs_packet.rb', line 192

def userdata; self[:"userdata"]&.value; end