NprNetworkBridge class final
#include <npr/runtime/network_bridge.hpp>
NPR-to-generic networking bridge used by shared network task runner.
Base classes
- class prf::net::IPrimaryNetifConfigProvider
- Provides the primary routed IPv4 interface snapshot consumed by the network stack.
- class prf::net::Ipv4LinkAdapter
Constructors, destructors, conversion operators
- NprNetworkBridge(NprRuntime& runtime) explicit
- Binds bridge to NPR runtime instance that owns queueing and network config.
Public functions
- auto dequeue_downlink_ipv4(uint8_t* out, size_t out_capacity, size_t* out_size) -> bool override
- Dequeues IPv4 downlink packet from NPR towards lwIP input path.
- auto enqueue_uplink_ipv4(const uint8_t* packet, size_t packet_size) -> bool override
- Enqueues IPv4 uplink packet from lwIP towards NPR uplink queue.
- auto mtu_bytes() const -> size_t override
- Returns NPR IPv4 MTU supported by frame segmenter.
-
void set_npr_config(const npr::
cfg:: NprConfigSection* npr_config) - Deprecated no-op retained for compatibility with existing runtime wiring.
-
auto snapshot_primary_ipv4_config(prf::
net:: Ipv4NetifConfig* netif_cfg) -> bool override - Collects current NPR role-specific routed netif snapshot.
Function documentation
npr:: rf:: NprNetworkBridge:: NprNetworkBridge(NprRuntime& runtime) explicit
Binds bridge to NPR runtime instance that owns queueing and network config.
| Parameters | |
|---|---|
| runtime | NPR runtime instance. |
bool npr:: rf:: NprNetworkBridge:: dequeue_downlink_ipv4(uint8_t* out,
size_t out_capacity,
size_t* out_size) override
Dequeues IPv4 downlink packet from NPR towards lwIP input path.
| Returns | true when a packet was produced. |
|---|
bool npr:: rf:: NprNetworkBridge:: enqueue_uplink_ipv4(const uint8_t* packet,
size_t packet_size) override
Enqueues IPv4 uplink packet from lwIP towards NPR uplink queue.
| Returns | true when packet was accepted for transmission. |
|---|
bool npr:: rf:: NprNetworkBridge:: snapshot_primary_ipv4_config(prf:: net:: Ipv4NetifConfig* netif_cfg) override
Collects current NPR role-specific routed netif snapshot.
| Parameters | |
|---|---|
| netif_cfg | Output npX/lwIP netif configuration. |
| Returns | true when NPR runtime has valid network config. |
Today this consumes slave-learned CONNECT_ACK state. Future master mode sources netif settings from local NPR config while still keeping host-side service interfaces outside src/npr.