Class: Nl::Linux::Psp::Messages::DumpGetStatsReply
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::Psp::Messages::DumpGetStatsReply
- Defined in:
- nl-linux/generated/nl/linux/psp.rb
Overview
Get device statistics.
Constant Summary collapse
- TYPE =
10- FIXED_HEADER =
nil- ATTRIBUTE_SET =
AttributeSets::Stats
- ATTRIBUTES =
Ractor.make_shareable(%i[dev_id key_rotations stale_events rx_packets rx_bytes rx_auth_fail rx_error rx_bad tx_packets tx_bytes tx_error])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#dev_id ⇒ Integer
PSP device ID.
-
#key_rotations ⇒ Integer
Number of key rotations during the lifetime of the device.
-
#rx_auth_fail ⇒ Integer
Number of received PSP packets with unsuccessful authentication.
-
#rx_bad ⇒ Integer
Number of received PSP packets with miscellaneous errors (invalid master key indicated by SPI, unsupported version, etc.) Device statistic (from the PSP spec).
-
#rx_bytes ⇒ Integer
Number of successfully authenticated PSP bytes received, counting from the first byte after the IV through the last byte of payload.
-
#rx_error ⇒ Integer
Number of received PSP packets with length/framing errors.
-
#rx_packets ⇒ Integer
Number of successfully processed and authenticated PSP packets.
-
#stale_events ⇒ Integer
Number of times a socket's Rx got shut down due to using a key which went stale (fully rotated out).
-
#tx_bytes ⇒ Integer
Number of successfully processed PSP bytes for transmit, counting from the first byte after the IV through the last byte of payload.
-
#tx_error ⇒ Integer
Number of PSP packets for transmission with errors.
-
#tx_packets ⇒ Integer
Number of successfully processed PSP packets for transmission.
Methods inherited from Genl::Message
Methods inherited from Raw::Message
#append_attribute, decode, #initialize
Methods included from StructuredPayload
Constructor Details
This class inherits a constructor from Nl::Raw::Message
Instance Method Details
#dev_id ⇒ Integer
PSP device ID.
960 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 960 def dev_id; attributes[:"dev_id"]&.value; end |
#key_rotations ⇒ Integer
Number of key rotations during the lifetime of the device. Kernel statistic.
966 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 966 def key_rotations; attributes[:"key_rotations"]&.value; end |
#rx_auth_fail ⇒ Integer
Number of received PSP packets with unsuccessful authentication. Device statistic (from the PSP spec).
994 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 994 def rx_auth_fail; attributes[:"rx_auth_fail"]&.value; end |
#rx_bad ⇒ Integer
Number of received PSP packets with miscellaneous errors (invalid master key indicated by SPI, unsupported version, etc.) Device statistic (from the PSP spec).
1007 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 1007 def rx_bad; attributes[:"rx_bad"]&.value; end |
#rx_bytes ⇒ Integer
Number of successfully authenticated PSP bytes received, counting from the first byte after the IV through the last byte of payload. The fixed initial portion of the PSP header (16 bytes) and the PSP trailer/ICV (16 bytes) are not included in this count. Device statistic (from the PSP spec).
988 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 988 def rx_bytes; attributes[:"rx_bytes"]&.value; end |
#rx_error ⇒ Integer
Number of received PSP packets with length/framing errors. Device statistic (from the PSP spec).
1000 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 1000 def rx_error; attributes[:"rx_error"]&.value; end |
#rx_packets ⇒ Integer
Number of successfully processed and authenticated PSP packets. Device statistic (from the PSP spec).
979 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 979 def rx_packets; attributes[:"rx_packets"]&.value; end |
#stale_events ⇒ Integer
Number of times a socket's Rx got shut down due to using a key which went stale (fully rotated out). Kernel statistic.
973 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 973 def stale_events; attributes[:"stale_events"]&.value; end |
#tx_bytes ⇒ Integer
Number of successfully processed PSP bytes for transmit, counting from the first byte after the IV through the last byte of payload. The fixed initial portion of the PSP header (16 bytes) and the PSP trailer/ICV (16 bytes) are not included in this count. Device statistic (from the PSP spec).
1022 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 1022 def tx_bytes; attributes[:"tx_bytes"]&.value; end |
#tx_error ⇒ Integer
Number of PSP packets for transmission with errors. Device statistic (from the PSP spec).
1028 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 1028 def tx_error; attributes[:"tx_error"]&.value; end |
#tx_packets ⇒ Integer
Number of successfully processed PSP packets for transmission. Device statistic (from the PSP spec).
1013 |
# File 'nl-linux/generated/nl/linux/psp.rb', line 1013 def tx_packets; attributes[:"tx_packets"]&.value; end |