James Tucker 95034e15a7 cmd/natc: fix ip allocation runtime
Avoid the unbounded runtime during random allocation, if random
allocation fails after a first pass at random through the provided
ranges, pick the next free address by walking through the allocated set.

The new ipx utilities provide a bitset based allocation pool, good for
small to moderate ranges of IPv4 addresses as used in natc.

Updates #15367

Signed-off-by: James Tucker <james@tailscale.com>
2025-04-01 10:23:11 -07:00
..
2025-01-07 13:05:37 -08:00
2023-08-03 13:00:45 -07:00
2025-04-01 10:23:11 -07:00
2024-04-16 15:32:38 -07:00
2025-03-29 11:02:42 -07:00