Class: Nl::Linux::Nftables::Messages::DoNewobjRequest

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

Overview

Create a new stateful object.

Constant Summary collapse

TYPE =
2578
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::ObjAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[table name type data userdata])

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 ⇒ SubMessages::ObjData::Counter, ...

stateful object data



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

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

#name ⇒ String

name of this expression type

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#table ⇒ String

name of the table containing the expression

Returns:

  • (String)

See Also:



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

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

#type ⇒ Integer

stateful object type

Known enum values are defined in Enums::ObjectType.

Returns:

  • (Integer)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end