Class: Nl::Linux::Conntrack::AttributeSets::NatAttrs

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

Defined Under Namespace

Classes: Attribute, NatProto, NatV4Maxip, NatV4Minip, NatV6Maxip, NatV6Minip

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:



953
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 953

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



959
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 959

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

Instance Method Details

#nat_proto ⇒ AttributeSets::NatProtoAttrs

Returns:

See Also:



946
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 946

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

#nat_v4_maxip ⇒ Integer

Returns:

  • (Integer)

See Also:



934
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 934

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

#nat_v4_minip ⇒ Integer

Returns:

  • (Integer)

See Also:



930
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 930

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

#nat_v6_maxip ⇒ String

Returns:

  • (String)

See Also:



942
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 942

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

#nat_v6_minip ⇒ String

Returns:

  • (String)

See Also:



938
# File 'nl-linux/generated/nl/linux/conntrack.rb', line 938

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