Class: Nl::Linux::Nftables::Messages::DumpGetchainReply

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



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

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

#flags ⇒ Integer

chain flags

Known flags are defined in Flags::ChainFlags.

Returns:

  • (Integer)

See Also:



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

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

#handle ⇒ Integer

numeric handle of the chain

Returns:

  • (Integer)

See Also:



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

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

#hook ⇒ AttributeSets::NftHookAttrs

hook specification for basechains



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

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

#id ⇒ Integer

uniquely identifies a chain in a transaction

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

name of the chain

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#policy ⇒ Integer

numeric policy of the chain

Returns:

  • (Integer)

See Also:



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

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

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#table ⇒ String

name of the table containing the chain

Returns:

  • (String)

See Also:



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

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

#type ⇒ String

type name of the chain

Returns:

  • (String)

See Also:



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

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

#use ⇒ Integer

number of references to this chain

Returns:

  • (Integer)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end