Class: Nl::Linux::Nftables::Messages::DumpGetruleResetReply

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

Overview

Get / dump rules and reset stateful expressions.

Constant Summary collapse

TYPE =
2566
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::RuleAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[table chain handle expressions position 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

#chain ⇒ String

name of the chain containing the rule

Returns:

  • (String)

See Also:



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

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

#expressions ⇒ AttributeSets::ExprListAttrs

list of expressions



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

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

#handle ⇒ Integer

numeric handle of the rule

Returns:

  • (Integer)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#position ⇒ Integer

numeric handle of the previous rule

Returns:

  • (Integer)

See Also:



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

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

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#table ⇒ String

name of the table containing the rule

Returns:

  • (String)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end