Class: Nl::Linux::Nftables::Messages::DoGetobjReply

Inherits:
Raw::Message
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/nftables.rb

Overview

Get / dump stateful objects.

Constant Summary collapse

TYPE =
2578
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::ObjAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[table name type data use handle userdata])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#data ⇒ SubMessages::ObjData::Counter, ...

stateful object data



6524
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6524

def data; attributes[:"data"]&.value; end

#handle ⇒ Integer

object handle

Returns:

  • (Integer)

See Also:



6534
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6534

def handle; attributes[:"handle"]&.value; end

#name ⇒ String

name of this expression type

Returns:

  • (String)

See Also:



6512
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6512

def name; attributes[:"name"]&.value; end

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


6496
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6496

def nfgen_family; fixed_header.nfgen_family; end

#res_id ⇒ Integer

Returns:

  • (Integer)


6502
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6502

def res_id; fixed_header.res_id; end

#table ⇒ String

name of the table containing the expression

Returns:

  • (String)

See Also:



6507
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6507

def table; attributes[:"table"]&.value; end

#type ⇒ Integer

stateful object type

Known enum values are defined in Enums::ObjectType.

Returns:

  • (Integer)

See Also:



6519
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6519

def type; attributes[:"type"]&.value; end

#use ⇒ Integer

number of references to this expression

Returns:

  • (Integer)

See Also:



6529
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6529

def use; attributes[:"use"]&.value; end

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



6539
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6539

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

#version ⇒ Integer

Returns:

  • (Integer)


6499
# File 'nl-linux/generated/nl/linux/nftables.rb', line 6499

def version; fixed_header.version; end