mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-20 21:51:42 +00:00
docstring
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
This commit is contained in:
parent
7b8733ffdf
commit
7a9f0eb3bb
@ -81,6 +81,23 @@ const (
|
|||||||
socketBufferSize = 7 << 20
|
socketBufferSize = 7 << 20
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Path is a label indicating the type of path a packet took.
|
||||||
|
type Path string
|
||||||
|
|
||||||
|
const (
|
||||||
|
PathDirectIPv4 Path = "direct_ipv4"
|
||||||
|
PathDirectIPv6 Path = "direct_ipv6"
|
||||||
|
PathDERP Path = "derp"
|
||||||
|
)
|
||||||
|
|
||||||
|
type pathLabel struct {
|
||||||
|
// Path indicates the path that the packet took:
|
||||||
|
// - direct_ipv4
|
||||||
|
// - direct_ipv6
|
||||||
|
// - derp
|
||||||
|
Path Path
|
||||||
|
}
|
||||||
|
|
||||||
// A Conn routes UDP packets and actively manages a list of its endpoints.
|
// A Conn routes UDP packets and actively manages a list of its endpoints.
|
||||||
type Conn struct {
|
type Conn struct {
|
||||||
// This block mirrors the contents and field order of the Options
|
// This block mirrors the contents and field order of the Options
|
||||||
@ -3138,19 +3155,3 @@ func (le *lazyEndpoint) GetPeerEndpoint(peerPublicKey [32]byte) conn.Endpoint {
|
|||||||
le.c.logf("magicsock: lazyEndpoint.GetPeerEndpoint(%v) found: %v", pubKey.ShortString(), ep.nodeAddr)
|
le.c.logf("magicsock: lazyEndpoint.GetPeerEndpoint(%v) found: %v", pubKey.ShortString(), ep.nodeAddr)
|
||||||
return ep
|
return ep
|
||||||
}
|
}
|
||||||
|
|
||||||
type Path string
|
|
||||||
|
|
||||||
const (
|
|
||||||
PathDirectIPv4 Path = "direct_ipv4"
|
|
||||||
PathDirectIPv6 Path = "direct_ipv6"
|
|
||||||
PathDERP Path = "derp"
|
|
||||||
)
|
|
||||||
|
|
||||||
type pathLabel struct {
|
|
||||||
// Path indicates the path that the packet took:
|
|
||||||
// - direct_ipv4
|
|
||||||
// - direct_ipv6
|
|
||||||
// - derp
|
|
||||||
Path Path
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user