Skip to content

hztools/go-tap

Repository files navigation

hz.tools/tap

⚠️ Please read Expectations within this Organization before using it.

Go Reference Go Report Card

Linux

$ sudo setcap cap_net_admin=+ep $(which binary)

Linux specific API

OpenBSD

While this code may compile and run on other BSD flavors, only OpenBSD is supported. OpenBSD-specific toggles may be added at any point without effort to keep other BSDs working.

OpenBSD specific API

// SetDescription will set the network interface description to the provided
// string.
func (i Interface) SetDescription(descr string) error

// AddGroup will add the provided group name to the underlying TAP
// interface.
func (i Interface) AddGroup(name string) error

// RemoveGroup will remove the group name from the TAP interface.
func (i Interface) RemoveGroup(name string) error

About

Create a TAP interface to read/write Ethernet Frames on Linux or OpenBSD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published