Class: Nl::Linux::Nftables::Messages::DumpGetsetReply

Inherits:
Raw::Message
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/nftables.rb

Overview

Get / dump sets.

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 gc_interval userdata obj_type handle expr expressions])

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:



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

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

#data_type ⇒ Integer

mapping data type

Returns:

  • (Integer)

See Also:



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

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

#desc ⇒ AttributeSets::SetDescAttrs

set description



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

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

#expr ⇒ Array<AttributeSets::ExprAttrs>

set expression



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

def expr; attributes[:"expr"].map(&:value); end

#expressions ⇒ AttributeSets::SetListAttrs

list of expressions



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

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

#flags ⇒ Integer

bitmask of enum nft_set_flags

Known flags are defined in Flags::SetFlags.

Returns:

  • (Integer)

See Also:



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

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

#gc_interval ⇒ Integer

garbage collection interval

Returns:

  • (Integer)

See Also:



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

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

#handle ⇒ Integer

set handle

Returns:

  • (Integer)

See Also:



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

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

#key_len ⇒ Integer

key data length

Returns:

  • (Integer)

See Also:



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

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

#key_type ⇒ Integer

key data type, informational purpose only

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

set name

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#obj_type ⇒ Integer

stateful object type

Returns:

  • (Integer)

See Also:



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

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

#policy ⇒ Integer

selection policy

Returns:

  • (Integer)

See Also:



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

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

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#table ⇒ String

table name

Returns:

  • (String)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end