Documentation ¶
Index ¶
- func GetPlatformSpecifics(config *water.Config, ifaceConfig *InterfaceConfig) error
- func InitializeWater() error
- func VerifyPlatformFlags(ifaceConfig *InterfaceConfig, mode shared.VPNMode) error
- type InterfaceConfig
- type WaterInterfaceWrapper
- func (w *WaterInterfaceWrapper) AddIPRoute(ipNet *net.IPNet, gateway net.IP) error
- func (w *WaterInterfaceWrapper) AddInterfaceRoute(ipNet *net.IPNet) error
- func (w *WaterInterfaceWrapper) Close() error
- func (w *WaterInterfaceWrapper) Configure(ipLocal net.IP, ipNet *shared.VPNNet, ipPeer net.IP) error
- func (w *WaterInterfaceWrapper) GetNetInterface() (*net.Interface, error)
- func (w *WaterInterfaceWrapper) SetMTU(mtu int) error
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 WaterInterfaceWrapper ¶
type WaterInterfaceWrapper struct { Interface *water.Interface // contains filtered or unexported fields }
func NewInterfaceWrapper ¶
func NewInterfaceWrapper(iface *water.Interface) *WaterInterfaceWrapper
func (*WaterInterfaceWrapper) AddIPRoute ¶
func (*WaterInterfaceWrapper) AddInterfaceRoute ¶
func (w *WaterInterfaceWrapper) AddInterfaceRoute(ipNet *net.IPNet) error
func (*WaterInterfaceWrapper) Close ¶
func (w *WaterInterfaceWrapper) Close() error
func (*WaterInterfaceWrapper) GetNetInterface ¶
func (w *WaterInterfaceWrapper) GetNetInterface() (*net.Interface, error)
func (*WaterInterfaceWrapper) SetMTU ¶
func (w *WaterInterfaceWrapper) SetMTU(mtu int) error
Click to show internal directories.
Click to hide internal directories.