Class: Nl::Linux::Nftables::Messages::DoGetchainReply

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

Overview

Get / dump chains.

Constant Summary collapse

TYPE =
2563
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::ChainAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[table handle name hook policy use type counters flags id 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

#counters ⇒ AttributeSets::NftCounterAttrs

counter specification of the chain



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

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

#flags ⇒ Integer

chain flags

Known flags are defined in Flags::ChainFlags.

Returns:

  • (Integer)

See Also:



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

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

#handle ⇒ Integer

numeric handle of the chain

Returns:

  • (Integer)

See Also:



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

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

#hook ⇒ AttributeSets::NftHookAttrs

hook specification for basechains



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

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

#id ⇒ Integer

uniquely identifies a chain in a transaction

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

name of the chain

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#policy ⇒ Integer

numeric policy of the chain

Returns:

  • (Integer)

See Also:



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

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

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#table ⇒ String

name of the table containing the chain

Returns:

  • (String)

See Also:



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

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

#type ⇒ String

type name of the chain

Returns:

  • (String)

See Also:



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

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

#use ⇒ Integer

number of references to this chain

Returns:

  • (Integer)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end