netstack

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2021 License: BSD-3-Clause Imports: 31 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSMap added in v1.6.0

type DNSMap map[string]netaddr.IP

func DNSMapFromNetworkMap added in v1.6.0

func DNSMapFromNetworkMap(nm *netmap.NetworkMap) DNSMap

func (DNSMap) Resolve added in v1.6.0

func (m DNSMap) Resolve(ctx context.Context, addr string) (netaddr.IPPort, error)

type Impl

type Impl struct{}

func Create added in v1.6.0

func Create(logf logger.Logf, tundev *tstun.TUN, e wgengine.Engine, mc *magicsock.Conn) (*Impl, error)

func (*Impl) DialContextTCP added in v1.6.0

func (*Impl) DialContextTCP(ctx context.Context, addr string) (net.Conn, error)

func (*Impl) Start added in v1.6.0

func (*Impl) Start() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL