prf::net::parp::ParpRoutePolicyBuilder class final

PARP-owned registry of interface config sections used by runtime and route hook.

Base classes

class IParpRoutePolicyProvider
PARP-owned provider for runtime binding and startup route-policy snapshot build.

Public static variables

static size_t kMaxEthernetLikeConfigs constexpr

Public functions

auto bind_runtime(std::string_view iface_name, eth::EthNetifRuntime* runtime, pool::Ipv4PoolManager* pool_manager) -> bool override
Binds PARP runtime for one Ethernet-like interface when config is present.
auto build_route_policy_snapshot(ParpRoutePolicySnapshot* out) -> bool override
Builds immutable PARP route-policy snapshot used by lwIP route hook.
auto register_eth_config(std::string iface_name, const cfg::EthConfigSection* eth_config) -> bool
auto register_usb_config(std::string iface_name, const cfg::UsbConfigSection* usb_config) -> bool
void set_eth_config(const cfg::EthConfigSection* eth_config)
void set_pool_manager(pool::Ipv4PoolManager* pool_manager)
void set_usb_config(const cfg::UsbConfigSection* usb_config)