MCPcopy Create free account
hub / github.com/tailscale/tailcat / newNetstack

Function newNetstack

tailcat.go:1346–1355  ·  view source on GitHub ↗
(logf logger.Logf, sys *tsd.System)

Source from the content-addressed store, hash-verified

1344}
1345
1346func newNetstack(logf logger.Logf, sys *tsd.System) (*netstack.Impl, error) {
1347 return netstack.Create(logf,
1348 sys.Tun.Get(),
1349 sys.Engine.Get(),
1350 sys.MagicSock.Get(),
1351 sys.Dialer.Get(),
1352 sys.DNSManager.Get(),
1353 sys.ProxyMapper(),
1354 )
1355}
1356
1357// createEngine creates the wgengine.Engine with userspace networking.
1358func createEngine(logf logger.Logf, lb *locoBackend) (err error) {

Callers 2

StartMethod · 0.85
initLockedMethod · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected