inet

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func New

func New(opt *Options) stack.LinkEndpoint

func RegisterDevice

func RegisterDevice(d Device)

Types

type Device

type Device interface {
	Mac() [6]byte
	Transmit(pkt *stack.PacketBuffer) error
	SetReceiveCallback(func(b []byte))
}
var DefaultDevice Device

type Options

type Options struct {
	// MTU is the mtu to use for this endpoint.
	MTU uint32

	// Address is the link address for this endpoint. Only used if
	// EthernetHeader is true.
	Address tcpip.LinkAddress
}

Directories

Path Synopsis
Package dhcp implements a DHCP client and server as described in RFC 2131.
Package dhcp implements a DHCP client and server as described in RFC 2131.

Jump to

Keyboard shortcuts

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