![]() The ipallocator for the new IPAddress object use the golang big.Int library for some math operations, like adding an offset to an IP address. We use the bytes array to convert between big.Int and IP addresses, however, IP addresses are always represented as 4 or 16 bytes arrays. Big int bytes representations just return the byte array until the most representative number, this requires that we need to prepend these extra bytes for IPs with leading zeros. Change-Id: I9d539f582cae1f9f4e373b28c5b94d7a342f09c7 Signed-off-by: Antonio Ojea <aojea@google.com> |
||
---|---|---|
.. | ||
controller | ||
storage | ||
bitmap_test.go | ||
bitmap.go | ||
interfaces.go | ||
ipallocator_test.go | ||
ipallocator.go | ||
metrics.go |