cmd/tailscaled: start implementing ts_omit_netstack
Baby steps. This permits building without much of gvisor, but not all of it. Updates #17283 Change-Id: I8433146e259918cc901fe86b4ea29be22075b32c Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
b3ae1cb0cc
commit
f715ee2be9
@@ -98,10 +98,14 @@ func NewSystemWithBus(bus *eventbus.Bus) *System {
|
||||
return sys
|
||||
}
|
||||
|
||||
// LocalBackend is a fake name for *ipnlocal.LocalBackend to avoid an import cycle.
|
||||
type LocalBackend = any
|
||||
|
||||
// NetstackImpl is the interface that *netstack.Impl implements.
|
||||
// It's an interface for circular dependency reasons: netstack.Impl
|
||||
// references LocalBackend, and LocalBackend has a tsd.System.
|
||||
type NetstackImpl interface {
|
||||
Start(LocalBackend) error
|
||||
UpdateNetstackIPs(*netmap.NetworkMap)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user