Class: Nl::Linux::Nftables::AttributeSets::TableAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::TableAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Defined Under Namespace
Classes: Attribute, Flags, Handle, Name, Owner, Pad, 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
-
#flags ⇒ Integer
bitmask of flags.
-
#handle ⇒ Integer
numeric handle of the table.
-
#name ⇒ String
name of the table.
-
#owner ⇒ Integer
owner of this table through netlink portID.
-
#use ⇒ Integer
number of chains in this table.
-
#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.
758 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 758 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
764 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 764 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#flags ⇒ Integer
bitmask of flags
Known flags are defined in Flags::TableFlags.
731 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 731 def flags; self[:"flags"]&.value; end |
#handle ⇒ Integer
numeric handle of the table
741 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 741 def handle; self[:"handle"]&.value; end |
#name ⇒ String
name of the table
724 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 724 def name; self[:"name"]&.value; end |
#owner ⇒ Integer
owner of this table through netlink portID
751 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 751 def owner; self[:"owner"]&.value; end |
#use ⇒ Integer
number of chains in this table
736 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 736 def use; self[:"use"]&.value; end |
#userdata ⇒ String
user data
746 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 746 def userdata; self[:"userdata"]&.value; end |