|
SatCat5
|
Record packet statistics based on switch log events.
This API is simplified from the one provided by cfg::NetworkStats.
Definition at line 173 of file eth_sw_log.h.
#include <eth_sw_log.h>
Classes | |
| struct | TrafficStats |
| Data structure for reporting per-port traffic statistics. More... | |
Public Member Functions | |
| TrafficStats | get_port (unsigned idx) |
| Read most recent statistics for the Nth port. More... | |
| void | log_packet (const satcat5::eth::SwitchLogMessage &msg) override |
| Process each packet event. | |
Protected Member Functions | |
| SwitchLogStats (TrafficStats *buff, unsigned size) | |
| Constructor accepts a pointer to the working buffer. | |
Protected Attributes | |
| TrafficStats *const | m_stats |
| Working counters. | |
| const unsigned | m_size |
| Buffer size. | |
Private Attributes | |
| satcat5::eth::SwitchLogHandler * | m_next |
| SwitchLogStats::TrafficStats SwitchLogStats::get_port | ( | unsigned | idx | ) |
Read most recent statistics for the Nth port.
Calling this method resets all counters for the requested port.
Definition at line 211 of file eth_sw_log.cc.