Documentation ¶
Overview ¶
Package netstack wires up gVisor's netstack into Tailscale.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DNSMap ¶ added in v1.6.0
DNSMap maps MagicDNS names (both base + FQDN) to their first IP. It should not be mutated once created.
func DNSMapFromNetworkMap ¶ added in v1.6.0
func DNSMapFromNetworkMap(nm *netmap.NetworkMap) DNSMap
type Impl ¶
type Impl struct { // ForwardTCPIn, if non-nil, handles forwarding an inbound TCP // connection. // TODO(bradfitz): provide mechanism for tsnet to reject a // port other than accepting it and closing it. ForwardTCPIn func(c net.Conn, port uint16) // contains filtered or unexported fields }
Impl contains the state for the netstack implementation, and implements wgengine.FakeImpl to act as a userspace network stack when Tailscale is running in fake mode.
func Create ¶ added in v1.6.0
func Create(logf logger.Logf, tundev *tstun.Wrapper, e wgengine.Engine, mc *magicsock.Conn, onlySubnets bool) (*Impl, error)
Create creates and populates a new Impl.
func (*Impl) DialContextTCP ¶ added in v1.6.0
func (*Impl) DialContextUDP ¶ added in v1.10.0
Click to show internal directories.
Click to hide internal directories.