tap

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new tap interface.

Types

type TapInterface

type TapInterface struct {
	*os.File
	// contains filtered or unexported fields
}

TapInterface is Linux tap interface.

func (*TapInterface) Delete

func (t *TapInterface) Delete() error

Delete deletes the tap interface.

func (*TapInterface) IfIndex

func (t *TapInterface) IfIndex() int

func (*TapInterface) Write

func (t *TapInterface) Write(frame []byte, _ *kernel.PacketMetadata) (int, error)

Jump to

Keyboard shortcuts

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