mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
tailcfg: ping request notes WIP
This commit is contained in:
parent
b8fb8264a5
commit
3bce8328a2
@ -884,6 +884,24 @@ type PingRequest struct {
|
|||||||
// Log is whether to log about this ping in the success case.
|
// Log is whether to log about this ping in the success case.
|
||||||
// For failure cases, the client will log regardless.
|
// For failure cases, the client will log regardless.
|
||||||
Log bool `json:",omitempty"`
|
Log bool `json:",omitempty"`
|
||||||
|
|
||||||
|
Initiator string // admin@email; "system" (for Tailscale)
|
||||||
|
TestIP netaddr.IP
|
||||||
|
Types string // empty means all: TSMP+ICMP+disco
|
||||||
|
StopAfterNDirect int // 1 means stop on 1st direct ping; 4 means 4 direct pings; 0 means do MaxPings and stop
|
||||||
|
MaxPings int // MaxPings total, direct or DERPed
|
||||||
|
PayloadSize int // default: 0 extra bytes
|
||||||
|
}
|
||||||
|
|
||||||
|
type StreamedPingResult struct {
|
||||||
|
IP netaddr.IP
|
||||||
|
SeqNum int // somewhat redundant with TxID but for clarity
|
||||||
|
SentTo NodeID // for exit/subnet relays
|
||||||
|
TxID string // N hex bytes random
|
||||||
|
Dir string // "in"/"out"
|
||||||
|
Type string // ICMP, disco, TSMP, ...
|
||||||
|
Via string // "direct", "derp-nyc", ...
|
||||||
|
Seconds float64 // for Dir "in" only
|
||||||
}
|
}
|
||||||
|
|
||||||
type MapResponse struct {
|
type MapResponse struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user