Documentation ¶
Index ¶
- func Destroy(name string) error
- type LinkTun
- func (l *LinkTun) AddLoopbackRoute() error
- func (l *LinkTun) AddRoutes(routes ...string) error
- func (l *LinkTun) Destroy() error
- func (l *LinkTun) GetLoopbackRoute() (string, error)
- func (l *LinkTun) Name() string
- func (l *LinkTun) RemoveRoutes(routes ...string) error
- func (l *LinkTun) Routes() ([]string, error)
- func (l *LinkTun) SetDown() error
- func (l *LinkTun) SetMTU(mtu int) error
- func (l *LinkTun) SetUp() error
- func (l *LinkTun) Status() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LinkTun ¶
type LinkTun struct {
// contains filtered or unexported fields
}
func GetLinkTunByName ¶
func GetTunTaps ¶
func NewLinkTun ¶
func (*LinkTun) AddLoopbackRoute ¶
add the next available network address to the interface routes from the range 240.0.0.0/4 and each time a new interface is created the address is increased by 1 (for example, 240.1.0.0/32)
func (*LinkTun) GetLoopbackRoute ¶
func (*LinkTun) RemoveRoutes ¶
Click to show internal directories.
Click to hide internal directories.