2024-01-03 16:06:20 +01:00
|
|
|
//go:build !android
|
|
|
|
// +build !android
|
|
|
|
|
2023-03-17 10:37:27 +01:00
|
|
|
package iface
|
|
|
|
|
2024-01-03 16:06:20 +01:00
|
|
|
import (
|
|
|
|
"github.com/netbirdio/netbird/iface/bind"
|
|
|
|
)
|
2023-06-12 14:43:55 +02:00
|
|
|
|
2024-08-27 19:21:14 +02:00
|
|
|
// CustomWindowsGUIDString is a custom GUID string for the interface
|
|
|
|
var CustomWindowsGUIDString string
|
|
|
|
|
2024-01-03 16:06:20 +01:00
|
|
|
type wgTunDevice interface {
|
|
|
|
Create() (wgConfigurer, error)
|
|
|
|
Up() (*bind.UniversalUDPMuxDefault, error)
|
|
|
|
UpdateAddr(address WGAddress) error
|
|
|
|
WgAddress() WGAddress
|
|
|
|
DeviceName() string
|
2023-03-17 10:37:27 +01:00
|
|
|
Close() error
|
2024-01-03 16:06:20 +01:00
|
|
|
Wrapper() *DeviceWrapper // todo eliminate this function
|
2023-03-17 10:37:27 +01:00
|
|
|
}
|