You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/natc
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>
8 months ago
..
ipx.go cmd/natc: fix ip allocation runtime 8 months ago
ipx_test.go cmd/natc: fix ip allocation runtime 8 months ago
natc.go cmd/natc: fix ip allocation runtime 8 months ago
natc_test.go cmd/natc: fix ip allocation runtime 8 months ago