Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 }
Click to show internal directories.
Click to hide internal directories.