Class: Nl::Linux::Tc::Structs::TcHhfXstats
- Inherits:
-
Struct
- Object
- Struct
- Nl::Linux::Tc::Structs::TcHhfXstats
- Defined in:
- nl-linux/generated/nl/linux/tc.rb,
nl-linux/generated/nl/linux/tc.rb
Instance Attribute Summary collapse
-
#drop_overlimit ⇒ Integer
Number of times max qdisc packet limit was hit.
-
#hh_cur_count ⇒ Integer
Number of current heavy-hitters.
-
#hh_overlimit ⇒ Integer
Number of times max heavy-hitters was hit.
-
#hh_tot_count ⇒ Integer
Number of captured heavy-hitters so far.
Class Method Summary collapse
-
.decode(decoder) ⇒ self
Decodes the struct.
Instance Method Summary collapse
-
#encode(encoder) ⇒ void
Encodes the struct.
Instance Attribute Details
#drop_overlimit ⇒ Integer
Number of times max qdisc packet limit was hit
1678 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1678 MEMBERS = Ractor.make_shareable({drop_overlimit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_overlimit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_tot_count: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_cur_count: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#hh_cur_count ⇒ Integer
Number of current heavy-hitters
1678 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1678 MEMBERS = Ractor.make_shareable({drop_overlimit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_overlimit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_tot_count: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_cur_count: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#hh_overlimit ⇒ Integer
Number of times max heavy-hitters was hit
1678 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1678 MEMBERS = Ractor.make_shareable({drop_overlimit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_overlimit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_tot_count: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_cur_count: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
#hh_tot_count ⇒ Integer
Number of captured heavy-hitters so far
1678 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1678 MEMBERS = Ractor.make_shareable({drop_overlimit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_overlimit: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_tot_count: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil), hh_cur_count: ::Nl::DataTypes::Scalar.new(::Nl::Endian::Host::U32, check: nil)}) |
Class Method Details
.decode(decoder) ⇒ self
Decodes the struct.
1684 1685 1686 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1684 def self.decode(decoder) self.new(*MEMBERS.map {|name, datatype| datatype.decode(decoder) }) end |
Instance Method Details
#encode(encoder) ⇒ void
This method returns an undefined value.
Encodes the struct.
1692 1693 1694 |
# File 'nl-linux/generated/nl/linux/tc.rb', line 1692 def encode(encoder) MEMBERS.each {|name, datatype| datatype.encode(encoder, self.public_send(name)) } end |