LwipRuntime class final
#include <net/lwip/runtime.hpp>
Public types
- struct State
Public static functions
- static auto instance() -> LwipRuntime&
Public functions
- auto apply_netif_config(const Ipv4NetifConfig& cfg) -> bool
- Applies IPv4 configuration to managed NPR-side interface.
- auto init() -> bool
- auto inject_ipv4_packet(const uint8_t* packet, size_t packet_size) -> bool
- Injects one downlink IPv4 packet into managed NPR-side interface input path.
- auto ipv4_ready() const -> bool
- Returns
truewhen at least one managed IPv4 interface is up and has an address. - void log_counters() const
- void log_status() const
- auto memory_stats(LwipHeapStats* out) const -> bool
- Returns lwIP heap counters when statistics are enabled.
- auto netif_ready() const -> bool
- Returns
truewhen managed NPR-side interface is configured and up. - auto ready() const -> bool
- void set_ipv4_link_adapter(Ipv4LinkAdapter* adapter)
- Binds uplink/downlink adapter used by NPR-side managed interface.