INetworkConfigProvider class
#include <net/network_task_runner.hpp>
Provides current IPv4 netif configuration for lwIP and PPPoS bootstrap values.
A scenario-specific adapter implements this interface and translates protocol runtime state into generic network stack inputs. This keeps src/net free of compile-time coupling to any particular radio module.
Derived classes
- class CombinedNetworkConfigProvider final
- Combines the primary routed interface snapshot with optional host-side service interfaces.
Constructors, destructors, conversion operators
- ~INetworkConfigProvider() defaulted virtual
Public functions
- auto snapshot_ipv4_config(Ipv4NetifConfig* netif_cfg, std::span<EthernetLikeConfigSnapshot> eth_like_cfgs, size_t* out_eth_like_count, PppIpv4Config* ppp_cfg) -> bool pure virtual
- Captures current networking config snapshot.
Function documentation
bool prf:: net:: INetworkConfigProvider:: snapshot_ipv4_config(Ipv4NetifConfig* netif_cfg,
std::span<EthernetLikeConfigSnapshot> eth_like_cfgs,
size_t* out_eth_like_count,
PppIpv4Config* ppp_cfg) pure virtual
Captures current networking config snapshot.
| Parameters | |
|---|---|
| netif_cfg | Output npX/lwIP netif config. |
| eth_like_cfgs | Output list for Ethernet-like interfaces (us0, et1, ...). |
| out_eth_like_count | Number of valid entries written to eth_like_cfgs. |
| ppp_cfg | Output PPP local and peer addressing config. |
| Returns | true when snapshot was produced successfully. Individual interface validity is carried inside output structs. |