PoolSourceSnapshot struct final
#include <net/pool/pool_types.hpp>
Live network parameters published by a dynamic source owner.
This is the input shape used by runtime producers such as NPR slave. The pool manager validates and translates it into PoolSnapshot.
Example:
prf::net::pool::PoolSourceSnapshot src{}; src.valid = true; src.source_revision = 7; src.ip_start = 0x0A0A0001u; src.ip_size = 8u; src.subnet_mask = 0xFFFFFF00u; src.interface_ip_valid = true; src.interface_ip = 0x0A0A0002u;
Public variables
- bool dns_active
truewhen DNS server should be advertised to pool clients.- uint32_t dns_server
- Optional DNS server within the same subnet.
- uint32_t gateway
- Optional gateway within the same subnet.
- bool gateway_active
truewhen gateway should be advertised to pool clients.- uint32_t interface_ip
- Source interface IP reserved for the owning interface, for example
np2. - bool interface_ip_valid
truewhen the source interface has its own address inside the range.- uint32_t ip_size
- Number of addresses in the source-provided range.
- uint32_t ip_start
- First IPv4 address in source-provided range.
- uint32_t source_revision
- Monotonic source-owned revision used to suppress redundant republishes.
- uint32_t subnet_mask
- Subnet mask associated with the range.
- bool valid
truewhen source currently exposes a usable IPv4 range.