iface

package
v0.0.0-...-c5c3ef8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPlatformSpecifics

func GetPlatformSpecifics(config *water.Config, ifaceConfig *InterfaceConfig) error

func InitializeWater

func InitializeWater() error

func VerifyPlatformFlags

func VerifyPlatformFlags(ifaceConfig *InterfaceConfig, mode shared.VPNMode) error

Types

type InterfaceConfig

type InterfaceConfig struct {
	Name                      string `yaml:"name"`
	Persist                   bool   `yaml:"persist"`
	ComponentID               string `yaml:"component-id"`
	OneInterfacePerConnection bool   `yaml:"one-interface-per-connection"`
}

type WaterInterfaceWrapper

type WaterInterfaceWrapper struct {
	Interface *water.Interface
	// contains filtered or unexported fields
}

func NewInterfaceWrapper

func NewInterfaceWrapper(iface *water.Interface) *WaterInterfaceWrapper

func (*WaterInterfaceWrapper) AddIPRoute

func (w *WaterInterfaceWrapper) AddIPRoute(ipNet *net.IPNet, gateway net.IP) error

func (*WaterInterfaceWrapper) AddInterfaceRoute

func (w *WaterInterfaceWrapper) AddInterfaceRoute(ipNet *net.IPNet) error

func (*WaterInterfaceWrapper) Close

func (w *WaterInterfaceWrapper) Close() error

func (*WaterInterfaceWrapper) Configure

func (w *WaterInterfaceWrapper) Configure(ipLocal net.IP, ipNet *shared.VPNNet, ipPeer net.IP) error

func (*WaterInterfaceWrapper) GetNetInterface

func (w *WaterInterfaceWrapper) GetNetInterface() (*net.Interface, error)

func (*WaterInterfaceWrapper) SetMTU

func (w *WaterInterfaceWrapper) SetMTU(mtu int) error

Jump to

Keyboard shortcuts

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