device

package
v2.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Device

type Device interface {
	stack.LinkEndpoint

	// Close stops and closes the device.
	Close() error

	// Name returns the current name of the device.
	Name() string

	// Type returns the driver type of the device.
	Type() string
}

Device is the interface that implemented by network layer devices (e.g. tun), and easy to use as stack.LinkEndpoint.

Directories

Path Synopsis
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints.
Package iobased provides the implementation of io.ReadWriter based data-link layer endpoints.
Package tun provides TUN which implemented device.Device interface.
Package tun provides TUN which implemented device.Device interface.

Jump to

Keyboard shortcuts

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