prf::net::pool::PoolSnapshot struct final

Effective pool view visible to clients of the pool manager.

Unlike PoolSourceSnapshot, this structure is already validated and carries a pool-local generation. Clients should treat a generation change as a full invalidation of previous allocations.

Public variables

bool configured
true when the pool exists in config and is enabled.
bool dns_active
true when DNS server is part of the effective parameters.
uint32_t dns_server
Effective DNS server address.
uint32_t gateway
Effective gateway address.
bool gateway_active
true when gateway is part of the effective parameters.
uint32_t generation
Pool-local generation incremented whenever effective parameters change.
uint32_t ip_size
Number of addresses in the effective range.
uint32_t ip_start
First IPv4 address in the effective range.
uint32_t subnet_mask
Effective subnet mask.
bool valid
true when the pool currently has a valid address range.