Class: Nl::Linux::Nftables::Messages::DoNewruleRequest
- Inherits:
-
Raw::Message
- Object
- Raw::Message
- Nl::Linux::Nftables::Messages::DoNewruleRequest
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Overview
Create a new rule.
Constant Summary collapse
- TYPE =
2566- FIXED_HEADER =
Structs::Nfgenmsg
- ATTRIBUTE_SET =
AttributeSets::RuleAttrs
- ATTRIBUTES =
Ractor.make_shareable(%i[table chain handle expressions compat position userdata position_id chain_id])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#chain ⇒ String
name of the chain containing the rule.
-
#chain_id ⇒ Integer
add the rule to chain by ID, alternative to chain name.
-
#compat ⇒ AttributeSets::RuleCompatAttrs
compatibility specifications of the rule.
-
#expressions ⇒ AttributeSets::ExprListAttrs
list of expressions.
-
#handle ⇒ Integer
numeric handle of the rule.
- #nfgen_family ⇒ Integer
-
#position ⇒ Integer
numeric handle of the previous rule.
-
#position_id ⇒ Integer
transaction unique identifier of the previous rule.
- #res_id ⇒ Integer
-
#table ⇒ String
name of the table containing the rule.
-
#userdata ⇒ String
user data.
- #version ⇒ Integer
Methods inherited from Raw::Message
#append_attribute, decode, #initialize
Methods included from StructuredPayload
Constructor Details
This class inherits a constructor from Nl::Raw::Message
Instance Method Details
#chain ⇒ String
name of the chain containing the rule
5239 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5239 def chain; attributes[:"chain"]&.value; end |
#chain_id ⇒ Integer
add the rule to chain by ID, alternative to chain name
5274 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5274 def chain_id; attributes[:"chain_id"]&.value; end |
#compat ⇒ AttributeSets::RuleCompatAttrs
compatibility specifications of the rule
5254 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5254 def compat; attributes[:"compat"]&.value; end |
#expressions ⇒ AttributeSets::ExprListAttrs
list of expressions
5249 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5249 def expressions; attributes[:"expressions"]&.value; end |
#handle ⇒ Integer
numeric handle of the rule
5244 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5244 def handle; attributes[:"handle"]&.value; end |
#nfgen_family ⇒ Integer
5223 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5223 def nfgen_family; fixed_header.nfgen_family; end |
#position ⇒ Integer
numeric handle of the previous rule
5259 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5259 def position; attributes[:"position"]&.value; end |
#position_id ⇒ Integer
transaction unique identifier of the previous rule
5269 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5269 def position_id; attributes[:"position_id"]&.value; end |
#res_id ⇒ Integer
5229 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5229 def res_id; fixed_header.res_id; end |
#table ⇒ String
name of the table containing the rule
5234 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5234 def table; attributes[:"table"]&.value; end |
#userdata ⇒ String
user data
5264 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5264 def userdata; attributes[:"userdata"]&.value; end |
#version ⇒ Integer
5226 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5226 def version; fixed_header.version; end |