Class: Nl::Linux::Nftables::Messages::DoNewtableRequest

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

Overview

Create a new table.

Constant Summary collapse

TYPE =
2560
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::TableAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[name flags 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

#flags ⇒ Integer

bitmask of flags

Known flags are defined in Flags::TableFlags.

Returns:

  • (Integer)

See Also:



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

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

#name ⇒ String

name of the table

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end