Class: Nl::Linux::Nftables::AttributeSets::LogAttrs

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

Overview

log expression netlink attributes

Defined Under Namespace

Classes: Attribute, Flags, Group, Level, Prefix, Qthreshold, Snaplen

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AttributeSet

#<<, #[], build_attributes, decode, #encode, #initialize

Constructor Details

This class inherits a constructor from Nl::AttributeSet

Class Method Details

.by_name(name) ⇒ Attribute

Looks up Attribute class by name.

Parameters:

  • name (Symbol)

Returns:



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

def by_name(name); BY_NAME.fetch(name); end

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

def by_type(type); BY_TYPE.fetch(type); end

Instance Method Details

#flags ⇒ Integer

logging flags

Known flags are defined in Flags::LogFlags.

Returns:

  • (Integer)

See Also:



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

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

#group ⇒ Integer

netlink group to send messages to

Returns:

  • (Integer)

See Also:



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

def group; self[:"group"]&.value; end

#level ⇒ Integer

log level

Known enum values are defined in Enums::LogLevel.

Returns:

  • (Integer)

See Also:



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

def level; self[:"level"]&.value; end

#prefix ⇒ String

prefix to prepend to log messages

Returns:

  • (String)

See Also:



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

def prefix; self[:"prefix"]&.value; end

#qthreshold ⇒ Integer

queue threshold

Returns:

  • (Integer)

See Also:



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

def qthreshold; self[:"qthreshold"]&.value; end

#snaplen ⇒ Integer

length of payload to include in netlink message

Returns:

  • (Integer)

See Also:



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

def snaplen; self[:"snaplen"]&.value; end