Class: Nl::Linux::Nftables::Messages::DoNewchainRequest

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

Overview

Create a new chain.

Constant Summary collapse

TYPE =
2563
FIXED_HEADER =
Structs::Nfgenmsg
ATTRIBUTE_SET =
AttributeSets::ChainAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[table handle name hook policy type counters 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

#counters ⇒ AttributeSets::NftCounterAttrs

counter specification of the chain



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

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

#flags ⇒ Integer

chain flags

Known flags are defined in Flags::ChainFlags.

Returns:

  • (Integer)

See Also:



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

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

#handle ⇒ Integer

numeric handle of the chain

Returns:

  • (Integer)

See Also:



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

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

#hook ⇒ AttributeSets::NftHookAttrs

hook specification for basechains



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

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

#name ⇒ String

name of the chain

Returns:

  • (String)

See Also:



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

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

#nfgen_family ⇒ Integer

Returns:

  • (Integer)


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

def nfgen_family; fixed_header.nfgen_family; end

#policy ⇒ Integer

numeric policy of the chain

Returns:

  • (Integer)

See Also:



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

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

#res_id ⇒ Integer

Returns:

  • (Integer)


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

def res_id; fixed_header.res_id; end

#table ⇒ String

name of the table containing the chain

Returns:

  • (String)

See Also:



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

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

#type ⇒ String

type name of the chain

Returns:

  • (String)

See Also:



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

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

#userdata ⇒ String

user data

Returns:

  • (String)

See Also:



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

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

#version ⇒ Integer

Returns:

  • (Integer)


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

def version; fixed_header.version; end