Class: Nl::Linux::Nftables::AttributeSets::ExprNatAttrs

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

Defined Under Namespace

Classes: Attribute, Family, Flags, RegAddrMax, RegAddrMin, RegProtoMax, RegProtoMin, Type

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#family ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#flags ⇒ Integer

Known flags are defined in Flags::NatRangeFlags.

Returns:

  • (Integer)

See Also:



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

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

#reg_addr_max ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#reg_addr_min ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#reg_proto_max ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#reg_proto_min ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#type ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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