#include <net/eth/control_commands.hpp>
template<typename ConfigSectionT>
EthernetControlCommands class final
Generic control adapter for Ethernet-like interfaces.
| Template parameters | |
|---|---|
| ConfigSectionT | Typed config section (UsbConfigSection, EthConfigSection, ...). |
This class exposes /interface/<iface>/{status,config,counters,schema,set} for any interface whose runtime follows EthNetifRuntime contracts.
Base classes
- class IEthernetControlCommands
- Type-erased interface for Ethernet-like interface command adapters.
Constructors, destructors, conversion operators
-
EthernetControlCommands(const IEthNetifStatsSource& stats_source,
ConfigSectionT& config_section,
std::string iface_name,
std::string module_name,
const prf::
net:: parp:: IParpStatusSource* parp_status_source = nullptr) - Creates control command table for one Ethernet-like interface.
Public functions
-
auto descriptors() const -> std::span<const prf::
control:: CommandDescriptor> override - Returns read-only view of command descriptors owned by this adapter.
- auto iface_name() const -> const char* override
- Returns interface identifier used in control path (
us0,et1, ...).