mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-24 06:19:08 +02:00
24 lines
559 B
Go
24 lines
559 B
Go
package iface
|
|
|
|
import (
|
|
"net"
|
|
"net/netip"
|
|
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
|
"github.com/netbirdio/netbird/client/iface/wgaddr"
|
|
"github.com/netbirdio/netbird/client/iface/wgbackend"
|
|
)
|
|
|
|
type wgIfaceBase interface {
|
|
AddAllowedIP(peerKey string, allowedIP netip.Prefix) error
|
|
RemoveAllowedIP(peerKey string, allowedIP netip.Prefix) error
|
|
|
|
Name() string
|
|
Address() wgaddr.Address
|
|
ToInterface() *net.Interface
|
|
IsUserspaceBind() bool
|
|
GetFilter() device.PacketFilter
|
|
GetDevice() *device.FilteredDevice
|
|
GetNet() *wgbackend.NetstackNet
|
|
}
|