Class: Nl::Linux::Nftables::Messages::DoDelchainRequest

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

Overview

Delete an existing chain.

Constant Summary collapse

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

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

#handle ⇒ Integer

numeric handle of the chain

Returns:

  • (Integer)

See Also:



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

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

#hook ⇒ AttributeSets::NftHookAttrs

hook specification for basechains



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

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

#name ⇒ String

name of the chain

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#table ⇒ String

name of the table containing the chain

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end