Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.09 KB

README.md

File metadata and controls

38 lines (26 loc) · 1.09 KB

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