Class: Nl::Linux::TcpMetrics::AttributeSets::Metrics

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

Overview

Attributes with metrics. Note that the values here do not match the TCP_METRIC_* defines in the kernel, because kernel defines are off-by one (e.g. rtt is defined as enum 0, while netlink carries attribute type 1).

Defined Under Namespace

Classes: Attribute, Cwnd, Reodering, Rtt, RttUs, Rttvar, RttvarUs, Ssthresh

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:



338
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 338

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

.by_type(type) ⇒ Attribute

Looks up Attribute class by type value.

Parameters:

  • type (Integer)

Returns:



344
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 344

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

Instance Method Details

#cwnd ⇒ Integer

Congestion Window.

Returns:

  • (Integer)

See Also:



314
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 314

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

#reodering ⇒ Integer

Reodering metric.

Returns:

  • (Integer)

See Also:



319
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 319

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

#rtt ⇒ Integer

Round Trip Time (RTT), in msecs with 3 bits fractional (left-shift by 3 to get the msec value).

Returns:

  • (Integer)

See Also:



298
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 298

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

#rtt_us ⇒ Integer

Round Trip Time (RTT), in usecs, with 3 bits fractional (left-shift by 3 to get the msec value).

Returns:

  • (Integer)

See Also:



325
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 325

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

#rttvar ⇒ Integer

Round Trip Time VARiance (RTT), in msecs with 2 bits fractional (left-shift by 2 to get the msec value).

Returns:

  • (Integer)

See Also:



304
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 304

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

#rttvar_us ⇒ Integer

Round Trip Time (RTT), in usecs, with 2 bits fractional (left-shift by 3 to get the msec value).

Returns:

  • (Integer)

See Also:



331
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 331

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

#ssthresh ⇒ Integer

Slow Start THRESHold.

Returns:

  • (Integer)

See Also:



309
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 309

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