Class: Nl::Linux::Tc::AttributeSets::RedAttrs

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

Defined Under Namespace

Classes: Attribute, EarlyDropBlock, Flags, MarkBlock, MaxP, Parms, Stab

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:



10259
# File 'nl-linux/generated/nl/linux/tc.rb', line 10259

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



10265
# File 'nl-linux/generated/nl/linux/tc.rb', line 10265

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

Instance Method Details

#early_drop_block ⇒ Integer

Returns:

  • (Integer)

See Also:



10248
# File 'nl-linux/generated/nl/linux/tc.rb', line 10248

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

#flags ⇒ Nl::Bitfield32

Returns:

See Also:



10244
# File 'nl-linux/generated/nl/linux/tc.rb', line 10244

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

#mark_block ⇒ Integer

Returns:

  • (Integer)

See Also:



10252
# File 'nl-linux/generated/nl/linux/tc.rb', line 10252

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

#max_p ⇒ Integer

Returns:

  • (Integer)

See Also:



10240
# File 'nl-linux/generated/nl/linux/tc.rb', line 10240

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

#parms ⇒ Structs::TcRedQopt

Returns:

See Also:



10232
# File 'nl-linux/generated/nl/linux/tc.rb', line 10232

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

#stab ⇒ String

Returns:

  • (String)

See Also:



10236
# File 'nl-linux/generated/nl/linux/tc.rb', line 10236

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