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

Method SetPeerByIPPacketFunc

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

SetPeerByIPPacketFunc installs a callback used by wireguard-go to look up which peer should handle an outbound packet by destination IP.

(func(netip.Addr) (_ key.NodePublic, ok bool))

Source from the content-addressed store, hash-verified

141 // SetPeerByIPPacketFunc installs a callback used by wireguard-go to
142 // look up which peer should handle an outbound packet by destination IP.
143 SetPeerByIPPacketFunc(func(netip.Addr) (_ key.NodePublic, ok bool))
144}

Callers 3

SetPeerByIPPacketFuncMethod · 0.65
ReconfigMethod · 0.65
NewLocalBackendFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

ReconfigMethod · 0.52