Class: Nl::Linux::Nftables::AttributeSets::SetAttrs

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

Defined Under Namespace

Classes: Attribute, Count, DataLen, DataType, Desc, Expr, Expressions, Flags, GcInterval, Handle, Id, KeyLen, KeyType, Name, ObjType, Pad, Policy, Table, Timeout, Type, 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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#count ⇒ Integer

number of set elements

Returns:

  • (Integer)

See Also:



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

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

#data_len ⇒ Integer

mapping data length

Returns:

  • (Integer)

See Also:



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

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

#data_type ⇒ Integer

mapping data type

Returns:

  • (Integer)

See Also:



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

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

#desc ⇒ AttributeSets::SetDescAttrs

set description

Returns:

See Also:



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

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

#expr ⇒ Array<AttributeSets::ExprAttrs>

set expression

Returns:

See Also:



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

def expr; self[:"expr"].map(&:value); end

#expressions ⇒ AttributeSets::SetListAttrs

list of expressions



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

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

#flags ⇒ Integer

bitmask of enum nft_set_flags

Known flags are defined in Flags::SetFlags.

Returns:

  • (Integer)

See Also:



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

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

#gc_interval ⇒ Integer

garbage collection interval

Returns:

  • (Integer)

See Also:



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

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

#handle ⇒ Integer

set handle

Returns:

  • (Integer)

See Also:



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

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

#id ⇒ Integer

uniquely identifies a set in a transaction

Returns:

  • (Integer)

See Also:



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

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

#key_len ⇒ Integer

key data length

Returns:

  • (Integer)

See Also:



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

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

#key_type ⇒ Integer

key data type, informational purpose only

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

set name

Returns:

  • (String)

See Also:



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

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

#obj_type ⇒ Integer

stateful object type

Returns:

  • (Integer)

See Also:



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

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

#policy ⇒ Integer

selection policy

Returns:

  • (Integer)

See Also:



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

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

#table ⇒ String

table name

Returns:

  • (String)

See Also:



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

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

#timeout ⇒ Integer

default timeout value

Returns:

  • (Integer)

See Also:



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

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

#type ⇒ String

set backend type

Returns:

  • (String)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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