PoolSnapshot struct final
#include <net/pool/pool_types.hpp>
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
truewhen the pool exists in config and is enabled.- bool dns_active
truewhen 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
truewhen 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
truewhen the pool currently has a valid address range.