Class: Nl::Linux::Nftables::AttributeSets::ExprPayloadAttrs

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

Overview

nf_tables payload expression netlink attributes

Defined Under Namespace

Classes: Attribute, Base, CsumFlags, CsumOffset, CsumType, Dreg, Len, Offset, Sreg

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#base ⇒ Integer

payload base

Known enum values are defined in Enums::PayloadBase.

Returns:

  • (Integer)

See Also:



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

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

#csum_flags ⇒ Integer

checksum flags

Returns:

  • (Integer)

See Also:



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

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

#csum_offset ⇒ Integer

checksum offset relative to base

Returns:

  • (Integer)

See Also:



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

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

#csum_type ⇒ Integer

checksum type

Returns:

  • (Integer)

See Also:



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

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

#dreg ⇒ Integer

destination register to load data into

Known enum values are defined in Enums::Registers.

Returns:

  • (Integer)

See Also:



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

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

#len ⇒ Integer

payload length

Returns:

  • (Integer)

See Also:



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

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

#offset ⇒ Integer

payload offset relative to base

Returns:

  • (Integer)

See Also:



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

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

#sreg ⇒ Integer

source register to load data from

Known enum values are defined in Enums::Registers.

Returns:

  • (Integer)

See Also:



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

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