Class: Nl::Linux::Nftables::AttributeSets::NumgenAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::NumgenAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Overview
nf_tables number generator expression netlink attributes
Defined Under Namespace
Classes: Attribute, Dreg, Modulus, Offset, Type
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
-
#dreg ⇒ Integer
destination register.
-
#modulus ⇒ Integer
maximum counter value.
-
#offset ⇒ Integer
offset to be added to the counter.
-
#type ⇒ Integer
operation type.
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.
519 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 519 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
525 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 525 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#dreg ⇒ Integer
destination register
Known enum values are defined in Enums::Registers.
495 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 495 def dreg; self[:"dreg"]&.value; end |
#modulus ⇒ Integer
maximum counter value
500 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 500 def modulus; self[:"modulus"]&.value; end |
#offset ⇒ Integer
offset to be added to the counter
512 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 512 def offset; self[:"offset"]&.value; end |
#type ⇒ Integer
operation type
Known enum values are defined in Enums::NumgenTypes.
507 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 507 def type; self[:"type"]&.value; end |