Class: Nl::Linux::Nftables::Messages::DoGetchainRequest

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

Overview

Get / dump chains.

Constant Summary collapse

TYPE =
2564
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::ChainAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[table name])

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

#name ⇒ String

name of the chain

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#table ⇒ String

name of the table containing the chain

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end