Class: Nl::Linux::Nftables::Messages::DoNewsetRequest

Inherits:
Raw::Message
  • Object
show all
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

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#data_len ⇒ Integer

mapping data length

Returns:

  • (Integer)

See Also:



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

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



5682
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5682

def flags; attributes[:"flags"]&.value; end

#gc_interval ⇒ Integer

garbage collection interval

Returns:

  • (Integer)

See Also:



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

Returns:

  • (Integer)

See Also:



5717
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5717

def id; attributes[:"id"]&.value; end

#key_len ⇒ Integer

key data length

Returns:

  • (Integer)

See Also:



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

Returns:

  • (Integer)

See Also:



5687
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5687

def key_type; attributes[:"key_type"]&.value; end

#name ⇒ String

set name

Returns:

  • (String)

See Also:



5675
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5675

def name; attributes[:"name"]&.value; end

#nfgen_family ⇒ Integer

Returns:

  • (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

Returns:

  • (Integer)

See Also:



5737
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5737

def obj_type; attributes[:"obj_type"]&.value; end

#policy ⇒ Integer

selection policy

Returns:

  • (Integer)

See Also:



5707
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5707

def policy; attributes[:"policy"]&.value; end

#res_id ⇒ Integer

Returns:

  • (Integer)


5665
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5665

def res_id; fixed_header.res_id; end

#table ⇒ String

table name

Returns:

  • (String)

See Also:



5670
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5670

def table; attributes[:"table"]&.value; end

#timeout ⇒ Integer

default timeout value

Returns:

  • (Integer)

See Also:



5722
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5722

def timeout; attributes[:"timeout"]&.value; end

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



5732
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5732

def userdata; attributes[:"userdata"]&.value; end

#version ⇒ Integer

Returns:

  • (Integer)


5662
# File 'nl-linux/generated/nl/linux/nftables.rb', line 5662

def version; fixed_header.version; end