Class: Nl::Linux::Nftables::AttributeSets::ChainAttrs

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

Defined Under Namespace

Classes: Attribute, Counters, Flags, Handle, Hook, Id, Name, Policy, Table, Type, Use, Userdata

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#counters ⇒ AttributeSets::NftCounterAttrs

counter specification of the chain



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

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

#flags ⇒ Integer

chain flags

Known flags are defined in Flags::ChainFlags.

Returns:

  • (Integer)

See Also:



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

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

#handle ⇒ Integer

numeric handle of the chain

Returns:

  • (Integer)

See Also:



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

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

#hook ⇒ AttributeSets::NftHookAttrs

hook specification for basechains

Returns:

See Also:



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

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

#id ⇒ Integer

uniquely identifies a chain in a transaction

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

name of the chain

Returns:

  • (String)

See Also:



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

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

#policy ⇒ Integer

numeric policy of the chain

Returns:

  • (Integer)

See Also:



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

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

#table ⇒ String

name of the table containing the chain

Returns:

  • (String)

See Also:



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

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

#type ⇒ String

type name of the chain

Returns:

  • (String)

See Also:



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

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

#use ⇒ Integer

number of references to this chain

Returns:

  • (Integer)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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