Class: Nl::Linux::Nftables::Messages::DoNewchainRequest
- Inherits:
-
Raw::Message
- Object
- Raw::Message
- Nl::Linux::Nftables::Messages::DoNewchainRequest
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Overview
Create a new chain.
Constant Summary collapse
- TYPE =
2563- FIXED_HEADER =
Structs::Nfgenmsg
- ATTRIBUTE_SET =
AttributeSets::ChainAttrs
- ATTRIBUTES =
Ractor.make_shareable(%i[table handle name hook policy type counters flags userdata])
Instance Attribute Summary
Attributes included from StructuredPayload
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.
-
#name ⇒ String
name of the chain.
- #nfgen_family ⇒ Integer
-
#policy ⇒ Integer
numeric policy of the chain.
- #res_id ⇒ Integer
-
#table ⇒ String
name of the table containing the chain.
-
#type ⇒ String
type name of the chain.
-
#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
#counters ⇒ AttributeSets::NftCounterAttrs
counter specification of the chain
4940 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4940 def counters; attributes[:"counters"]&.value; end |
#flags ⇒ Integer
chain flags
Known flags are defined in Flags::ChainFlags.
4947 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4947 def flags; attributes[:"flags"]&.value; end |
#handle ⇒ Integer
numeric handle of the chain
4915 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4915 def handle; attributes[:"handle"]&.value; end |
#hook ⇒ AttributeSets::NftHookAttrs
hook specification for basechains
4925 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4925 def hook; attributes[:"hook"]&.value; end |
#name ⇒ String
name of the chain
4920 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4920 def name; attributes[:"name"]&.value; end |
#nfgen_family ⇒ Integer
4899 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4899 def nfgen_family; fixed_header.nfgen_family; end |
#policy ⇒ Integer
numeric policy of the chain
4930 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4930 def policy; attributes[:"policy"]&.value; end |
#res_id ⇒ Integer
4905 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4905 def res_id; fixed_header.res_id; end |
#table ⇒ String
name of the table containing the chain
4910 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4910 def table; attributes[:"table"]&.value; end |
#type ⇒ String
type name of the chain
4935 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4935 def type; attributes[:"type"]&.value; end |
#userdata ⇒ String
user data
4952 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4952 def userdata; attributes[:"userdata"]&.value; end |
#version ⇒ Integer
4902 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 4902 def version; fixed_header.version; end |