Class: Nl::Linux::Nftables::Messages::DoNewsetRequest
- Inherits:
-
Raw::Message
- Object
- Raw::Message
- Nl::Linux::Nftables::Messages::DoNewsetRequest
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Overview
Create a new set.
Constant Summary collapse
- TYPE =
2569- FIXED_HEADER =
Structs::Nfgenmsg
- ATTRIBUTE_SET =
AttributeSets::SetAttrs
- ATTRIBUTES =
Ractor.make_shareable(%i[table name flags key_type key_len data_type data_len policy desc id timeout gc_interval userdata obj_type])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#data_len ⇒ Integer
mapping data length.
-
#data_type ⇒ Integer
mapping data type.
-
#desc ⇒ AttributeSets::SetDescAttrs
set description.
-
#flags ⇒ Integer
bitmask of enum nft_set_flags.
-
#gc_interval ⇒ Integer
garbage collection interval.
-
#id ⇒ Integer
uniquely identifies a set in a transaction.
-
#key_len ⇒ Integer
key data length.
-
#key_type ⇒ Integer
key data type, informational purpose only.
-
#name ⇒ String
set name.
- #nfgen_family ⇒ Integer
-
#obj_type ⇒ Integer
stateful object type.
-
#policy ⇒ Integer
selection policy.
- #res_id ⇒ Integer
-
#table ⇒ String
table name.
-
#timeout ⇒ Integer
default timeout value.
-
#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
#data_len ⇒ Integer
mapping data length
5702 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5702 def data_len; attributes[:"data_len"]&.value; end |
#data_type ⇒ Integer
mapping data type
5697 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5697 def data_type; attributes[:"data_type"]&.value; end |
#desc ⇒ AttributeSets::SetDescAttrs
set description
5712 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5712 def desc; attributes[:"desc"]&.value; end |
#flags ⇒ Integer
bitmask of enum nft_set_flags
Known flags are defined in Flags::SetFlags.
5682 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5682 def flags; attributes[:"flags"]&.value; end |
#gc_interval ⇒ Integer
garbage collection interval
5727 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5727 def gc_interval; attributes[:"gc_interval"]&.value; end |
#id ⇒ Integer
uniquely identifies a set in a transaction
5717 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5717 def id; attributes[:"id"]&.value; end |
#key_len ⇒ Integer
key data length
5692 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5692 def key_len; attributes[:"key_len"]&.value; end |
#key_type ⇒ Integer
key data type, informational purpose only
5687 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5687 def key_type; attributes[:"key_type"]&.value; end |
#name ⇒ String
set name
5675 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5675 def name; attributes[:"name"]&.value; end |
#nfgen_family ⇒ Integer
5659 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5659 def nfgen_family; fixed_header.nfgen_family; end |
#obj_type ⇒ Integer
stateful object type
5737 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5737 def obj_type; attributes[:"obj_type"]&.value; end |
#policy ⇒ Integer
selection policy
5707 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5707 def policy; attributes[:"policy"]&.value; end |
#res_id ⇒ Integer
5665 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5665 def res_id; fixed_header.res_id; end |
#table ⇒ String
table name
5670 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5670 def table; attributes[:"table"]&.value; end |
#timeout ⇒ Integer
default timeout value
5722 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5722 def timeout; attributes[:"timeout"]&.value; end |
#userdata ⇒ String
user data
5732 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5732 def userdata; attributes[:"userdata"]&.value; end |
#version ⇒ Integer
5662 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5662 def version; fixed_header.version; end |