Class: Nl::Linux::Nftables::AttributeSets::ChainAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::ChainAttrs
- 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
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#counters ⇒ AttributeSets::NftCounterAttrs
counter specification of the chain.
-
#flags ⇒ Integer
chain flags.
-
#handle ⇒ Integer
numeric handle of the chain.
-
#hook ⇒ AttributeSets::NftHookAttrs
hook specification for basechains.
-
#id ⇒ Integer
uniquely identifies a chain in a transaction.
-
#name ⇒ String
name of the chain.
-
#policy ⇒ Integer
numeric policy of the chain.
-
#table ⇒ String
name of the table containing the chain.
-
#type ⇒ String
type name of the chain.
-
#use ⇒ Integer
number of references to this chain.
-
#userdata ⇒ String
user data.
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.
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.
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.
918 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 918 def flags; self[:"flags"]&.value; end |
#handle ⇒ Integer
numeric handle of the chain
881 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 881 def handle; self[:"handle"]&.value; end |
#hook ⇒ AttributeSets::NftHookAttrs
hook specification for basechains
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
923 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 923 def id; self[:"id"]&.value; end |
#name ⇒ String
name of the chain
886 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 886 def name; self[:"name"]&.value; end |
#policy ⇒ Integer
numeric policy of the chain
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
876 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 876 def table; self[:"table"]&.value; end |
#type ⇒ String
type name of the chain
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
901 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 901 def use; self[:"use"]&.value; end |
#userdata ⇒ String
user data
928 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 928 def userdata; self[:"userdata"]&.value; end |