Class: Nl::Linux::Nftables::Messages::DoGetgenReply

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

Overview

Get / dump rule-set generation.

Constant Summary collapse

TYPE =
2575
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::GenAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[id proc_pid proc_name])

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

#id ⇒ Integer

ruleset generation id

Returns:

  • (Integer)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#proc_name ⇒ String

Returns:

  • (String)

See Also:



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

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

#proc_pid ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end