Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPersist ¶
func WithPersist() func(info *linkOptInfo)
func WithUidGid ¶
Types ¶
type Link ¶
type Link struct { chanreader.Publisher // contains filtered or unexported fields }
func New ¶
func New(ctx context.Context, deviceName string, tunAddr net.IP, subnet *net.IPNet, mtu uint16) (*Link, error)
New returns a link.Link connected to a newly created Linux tun/tap device.
func (*Link) SendPacket ¶
Click to show internal directories.
Click to hide internal directories.