Class: Nl::Linux::Tc::AttributeSets::FlowAttrs

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

Defined Under Namespace

Classes: Act, Addend, Attribute, Baseclass, Divisor, Ematches, Keys, Mask, Mode, Perturb, Police, Rshift, Xor

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#act ⇒ String

Returns:

  • (String)

See Also:



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

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

#addend ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#baseclass ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#divisor ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#ematches ⇒ String

Returns:

  • (String)

See Also:



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

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

#keys ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#mask ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#mode ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#perturb ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#police ⇒ AttributeSets::PoliceAttrs

Returns:

See Also:



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

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

#rshift ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#xor ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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