RandomPrefix returns a single IPv6 /128 prefix within the service prefix.
()
| 428 | |
| 429 | // RandomPrefix returns a single IPv6 /128 prefix within the service prefix. |
| 430 | func (p ServicePrefix) RandomPrefix() netip.Prefix { |
| 431 | return netip.PrefixFrom(p.RandomAddr(), 128) |
| 432 | } |
| 433 | |
| 434 | func (p ServicePrefix) AsNetip() netip.Prefix { |
| 435 | out := [16]byte{} |