Class: Nl::Linux::Nftables::Messages::DoGettableReply

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

Overview

Get / dump tables.

Constant Summary collapse

TYPE =
2560
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::TableAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[name flags use handle userdata owner])

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

#flags ⇒ Integer

bitmask of flags

Known flags are defined in Flags::TableFlags.

Returns:

  • (Integer)

See Also:



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

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

#handle ⇒ Integer

numeric handle of the table

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

name of the table

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#owner ⇒ Integer

owner of this table through netlink portID

Returns:

  • (Integer)

See Also:



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

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

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#use ⇒ Integer

number of chains in this table

Returns:

  • (Integer)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end