Class: Nl::Linux::Tc::AttributeSets::NetemAttrs

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

Defined Under Namespace

Classes: Attribute, Corr, Corrupt, DelayDist, Ecn, Jitter64, Latency64, Loss, Pad, PrngSeed, Rate, Rate64, Reorder, Slot, SlotDist

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:



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

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



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

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

Instance Method Details

#corr ⇒ Structs::TcNetemCorr

Returns:

See Also:



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

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

#corrupt ⇒ Structs::TcNetemCorrupt

Returns:

See Also:



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

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

#delay_dist ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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

#ecn ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#jitter64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#latency64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#loss ⇒ AttributeSets::NetemLossAttrs

Returns:

See Also:



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

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

#pad ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#prng_seed ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#rate ⇒ Structs::TcNetemRate

Returns:

See Also:



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

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

#rate64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#reorder ⇒ Structs::TcNetemReorder

Returns:

See Also:



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

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

#slot ⇒ Structs::TcNetemSlot

Returns:

See Also:



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

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

#slot_dist ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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