Class: Nl::Linux::Nftables::Messages::DoNewflowtableRequest

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

Overview

Create a new flow table.

Constant Summary collapse

TYPE =
2582
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::FlowtableAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[table name hook flags])

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

Returns:

  • (Integer)

See Also:



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

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

#hook ⇒ AttributeSets::FlowtableHookAttrs



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

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

#name ⇒ String

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#table ⇒ String

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end