Class: Nl::Linux::Nftables::Messages::DumpGettableReply

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:



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

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

#handle ⇒ Integer

numeric handle of the table

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

name of the table

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#owner ⇒ Integer

owner of this table through netlink portID

Returns:

  • (Integer)

See Also:



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

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

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#use ⇒ Integer

number of chains in this table

Returns:

  • (Integer)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end