Class: Nl::Linux::Nftables::AttributeSets::VerdictAttrs

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

Defined Under Namespace

Classes: Attribute, Chain, ChainId, Code

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



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

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#chain ⇒ String

jump target chain name

Returns:

  • (String)

See Also:



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

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

#chain_id ⇒ Integer

jump target chain ID

Returns:

  • (Integer)

See Also:



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

def chain_id; self[:"chain_id"]&.value; end

#code ⇒ Integer

nf_tables verdict

Known enum values are defined in Enums::VerdictCode.

Returns:

  • (Integer)

See Also:



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

def code; self[:"code"]&.value; end