Class: Nl::Linux::TcpMetrics::AttributeSets::Metrics
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::TcpMetrics::AttributeSets::Metrics
- 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
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#cwnd ⇒ Integer
Congestion Window.
-
#reodering ⇒ Integer
Reodering metric.
-
#rtt ⇒ Integer
Round Trip Time (RTT), in msecs with 3 bits fractional (left-shift by 3 to get the msec value).
-
#rtt_us ⇒ Integer
Round Trip Time (RTT), in usecs, with 3 bits fractional (left-shift by 3 to get the msec value).
-
#rttvar ⇒ Integer
Round Trip Time VARiance (RTT), in msecs with 2 bits fractional (left-shift by 2 to get the msec value).
-
#rttvar_us ⇒ Integer
Round Trip Time (RTT), in usecs, with 2 bits fractional (left-shift by 3 to get the msec value).
-
#ssthresh ⇒ Integer
Slow Start THRESHold.
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.
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.
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.
314 |
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 314 def cwnd; self[:"cwnd"]&.value; end |
#reodering ⇒ Integer
Reodering metric.
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).
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).
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).
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).
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.
309 |
# File 'nl-linux/generated/nl/linux/tcp_metrics.rb', line 309 def ssthresh; self[:"ssthresh"]&.value; end |