summaryrefslogtreecommitdiffstats
path: root/src/lib/asiolink/addr_utilities.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* [#2830] use uint128_t for random prefix allocationRazvan Becheriu2023-06-211-1/+1
|
* [#2889] release changesAndrei Pavel2023-05-291-1/+1
|
* [#2658] add big integer support to statisticsAndrei Pavel2023-05-171-4/+5
| | | | | | | | | | | | | | | | | | | Pool capacities have been promoted in code from uint64_t to uint128_t. Bigint is modelled as an int128_t in statistics, following the precedent of signed integer of int64_t from statistics. - "total-nas" is extended to 128 bits as requested in the issue. - "total-pds" has the same risk of overflowing so it has been extended as well. - "total-addresses" always fits in 64 bits, but certain code forces a 128 bit value on it. See Pool::getCapacity(), Subnet::getPoolCapacity(), Subnet::sumPoolCapacity(). It could have been truncated to a 64 bit value, but that seems like an unnecessary complication. Because of the disparity in signedness there is some truncation that can happen when pool capacity values are passed on to statistics. That only happens for the last half of the value range, so for prefix ranges larger than /1.
* [#1415] Improved offsetAddresMarcin Siodelski2020-09-161-1/+2
| | | | | | According to the review comments, the conversion of the offset to a vector was simplified. In addition, when the offset address exceeds the maximum value for IPv4 address the max value is returned.
* [#1415] Added utility to find offset addressMarcin Siodelski2020-09-161-1/+13
|
* [551-wrong-namespace-for-address-utilities] Moved address utils to ↵Francis Dupont2019-06-241-11/+7
| | | | isc::asiolink namespace
* [20-update-addr_utilities-h-comments] Removed obsolete @todo'sFrancis Dupont2018-09-181-5/+1
|
* [19-move-address-utilities] Moved address utilitieslibyang-models_baselibyang-generic_baselibyang-adaptor_basegitlab20_baseFrancis Dupont2018-08-311-0/+93