mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-05 00:44:10 -04:00
24 lines
485 B
Go
24 lines
485 B
Go
//go:build !windows
|
|
|
|
package dns
|
|
|
|
import (
|
|
"net"
|
|
|
|
"golang.zx2c4.com/wireguard/tun/netstack"
|
|
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
|
"github.com/netbirdio/netbird/client/iface/wgaddr"
|
|
)
|
|
|
|
// WGIface defines subset methods of interface required for manager
|
|
type WGIface interface {
|
|
Name() string
|
|
Address() wgaddr.Address
|
|
ToInterface() *net.Interface
|
|
IsUserspaceBind() bool
|
|
GetFilter() device.PacketFilter
|
|
GetDevice() *device.FilteredDevice
|
|
GetNet() *netstack.Net
|
|
}
|