mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-26 12:42:32 +02:00
26 lines
605 B
Go
26 lines
605 B
Go
//go:build !android
|
|
|
|
package iface
|
|
|
|
import (
|
|
"golang.zx2c4.com/wireguard/tun/netstack"
|
|
|
|
wgdevice "golang.zx2c4.com/wireguard/device"
|
|
|
|
"github.com/netbirdio/netbird/client/iface/bind"
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
|
"github.com/netbirdio/netbird/client/iface/wgaddr"
|
|
)
|
|
|
|
type WGTunDevice interface {
|
|
Create() (device.WGConfigurer, error)
|
|
Up() (*bind.UniversalUDPMuxDefault, error)
|
|
UpdateAddr(address wgaddr.Address) error
|
|
WgAddress() wgaddr.Address
|
|
DeviceName() string
|
|
Close() error
|
|
FilteredDevice() *device.FilteredDevice
|
|
Device() *wgdevice.Device
|
|
GetNet() *netstack.Net
|
|
}
|