7 #ifndef ADDR_UTILITIES_H
8 #define ADDR_UTILITIES_H
57 uint64_t
addrsInRange(
const IOAddress& min,
const IOAddress& max);
81 uint64_t
prefixesInRange(
const uint8_t pool_len,
const uint8_t delegated_len);
93 IOAddress
offsetAddress(
const IOAddress& addr, uint64_t offset);
98 #endif // ADDR_UTILITIES_H
uint64_t addrsInRange(const IOAddress &min, const IOAddress &max)
Returns number of available addresses in the specified range (min - max).
IOAddress getNetmask4(uint8_t len)
Generates an IPv4 netmask of specified length.
IOAddress firstAddrInPrefix(const IOAddress &prefix, uint8_t len)
This code is based on similar code from the Dibbler project.
Defines the logger used by the top-level component of kea-dhcp-ddns.
A wrapper interface for the ASIO library.
IOAddress lastAddrInPrefix(const IOAddress &prefix, uint8_t len)
returns a last address in a given prefix
int prefixLengthFromRange(const IOAddress &min, const IOAddress &max)
Returns prefix length from the specified range (min - max).
IOAddress offsetAddress(const IOAddress &addr, uint64_t offset)
Finds the address increased by offset.
uint64_t prefixesInRange(const uint8_t pool_len, const uint8_t delegated_len)
Returns number of available IPv6 prefixes in the specified prefix.