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

Method PeerForIP

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

PeerForIP returns the node to which the provided IP routes, if any. If none is found, (nil, false) is returned.

(netip.Addr)

Source from the content-addressed store, hash-verified

79 // PeerForIP returns the node to which the provided IP routes,
80 // if any. If none is found, (nil, false) is returned.
81 PeerForIP(netip.Addr) (_ PeerForIP, ok bool)
82
83 // GetFilter returns the current packet filter, if any.
84 GetFilter() *filter.Filter

Callers 4

startMethod · 0.65
newNetstackFunction · 0.65
probeLocksMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected