MCPcopy Index your code
hub / github.com/tailscale/tailscale / Ping

Method Ping

wgengine/wgengine.go:134–134  ·  view source on GitHub ↗

Ping is a request to start a ping of the given message size to the peer handling the given IP, then call cb with its ping latency & method. If size is zero too small, it is ignored. See tailscale.PingOpts for details.

(ip netip.Addr, pingType tailcfg.PingType, size int, cb func(*ipnstate.PingResult))

Source from the content-addressed store, hash-verified

132 //
133 // If size is zero too small, it is ignored. See tailscale.PingOpts for details.
134 Ping(ip netip.Addr, pingType tailcfg.PingType, size int, cb func(*ipnstate.PingResult))
135
136 // InstallCaptureHook registers a function to be called to capture
137 // packets traversing the data path. The hook can be uninstalled by

Callers 15

TestConnFunction · 0.65
TestFallbackTCPHandlerFunction · 0.65
TestCapturePcapFunction · 0.65
TestUDPConnFunction · 0.65
setupTwoClientTestFunction · 0.65
doPingerPingFunction · 0.65
PingMethod · 0.65
TestConnClosedFunction · 0.65
newPingerFunction · 0.65
testTwoDevicePingFunction · 0.65

Implementers 2

userspaceEnginewgengine/userspace.go
mockEngineipn/ipnlocal/state_test.go

Calls

no outgoing calls

Tested by 15

TestConnFunction · 0.52
TestFallbackTCPHandlerFunction · 0.52
TestCapturePcapFunction · 0.52
TestUDPConnFunction · 0.52
setupTwoClientTestFunction · 0.52
TestConnClosedFunction · 0.52
newPingerFunction · 0.52
testTwoDevicePingFunction · 0.52
TestIsWireGuardOnlyPeerFunction · 0.52