Class: Nl::Linux::Tc::SubMessages::OptionsMsg::Netem

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

Constant Summary collapse

FIXED_HEADER =
Structs::TcNetemQopt
ATTRIBUTE_SET =
AttributeSets::NetemAttrs

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods included from StructuredPayload

#encode, #initialize

Instance Method Details

#corr ⇒ Structs::TcNetemCorr



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

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

#corrupt ⇒ Structs::TcNetemCorrupt



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

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

#delay_dist ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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

#duplicate ⇒ Integer

Random packet duplication (0=none, ~0=100%)

Returns:

  • (Integer)


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

def duplicate; fixed_header.duplicate; end

#ecn ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#gap ⇒ Integer

Re-ordering gap (0 for none)

Returns:

  • (Integer)


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

def gap; fixed_header.gap; end

#jitter ⇒ Integer

Random jitter latency in microseconds

Returns:

  • (Integer)


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

def jitter; fixed_header.jitter; end

#jitter64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#latency ⇒ Integer

Added delay in microseconds

Returns:

  • (Integer)


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

def latency; fixed_header.latency; end

#latency64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#limit ⇒ Integer

Fifo limit in packets

Returns:

  • (Integer)


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

def limit; fixed_header.limit; end

#loss ⇒ AttributeSets::NetemLossAttrs



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

def loss; attributes[:"loss"]&.value || fixed_header.loss; end

#pad ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#prng_seed ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#rate ⇒ Structs::TcNetemRate



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

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

#rate64 ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#reorder ⇒ Structs::TcNetemReorder



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

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

#slot ⇒ Structs::TcNetemSlot



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

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

#slot_dist ⇒ Array<Integer>

Returns:

  • (Array<Integer>)

See Also:



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

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