mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-22 08:51:41 +00:00
net/art: document valid values of strideTable.prefix
Updates #7781 Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
736a44264f
commit
de5c6ed4be
@ -38,8 +38,11 @@ type strideEntry[T any] struct {
|
|||||||
// The leaves of the binary tree are host routes (/8s). Each parent is a
|
// The leaves of the binary tree are host routes (/8s). Each parent is a
|
||||||
// successively larger prefix that encompasses its children (/7 through /0).
|
// successively larger prefix that encompasses its children (/7 through /0).
|
||||||
type strideTable[T any] struct {
|
type strideTable[T any] struct {
|
||||||
// prefix is the prefix represented by the 0/0 route of this strideTable. It
|
// prefix is the prefix represented by the 0/0 route of this
|
||||||
// is used in multi-level tables to support path compression.
|
// strideTable. It is used in multi-level tables to support path
|
||||||
|
// compression. All strideTables must have a valid prefix
|
||||||
|
// (non-zero value, passes IsValid()) whose length is a multiple
|
||||||
|
// of 8 (e.g. /8, /16, but not /15).
|
||||||
prefix netip.Prefix
|
prefix netip.Prefix
|
||||||
// entries is the nodes of the binary tree, laid out in a flattened array.
|
// entries is the nodes of the binary tree, laid out in a flattened array.
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user