2023-12-08 10:48:21 +01:00
|
|
|
package firewall
|
|
|
|
|
2024-10-02 13:41:00 +02:00
|
|
|
import (
|
2025-02-07 14:11:53 +01:00
|
|
|
wgdevice "golang.zx2c4.com/wireguard/device"
|
|
|
|
|
2024-10-02 18:24:22 +02:00
|
|
|
"github.com/netbirdio/netbird/client/iface/device"
|
2024-10-02 13:41:00 +02:00
|
|
|
)
|
2023-12-08 10:48:21 +01:00
|
|
|
|
|
|
|
// IFaceMapper defines subset methods of interface required for manager
|
|
|
|
type IFaceMapper interface {
|
|
|
|
Name() string
|
2024-10-02 18:24:22 +02:00
|
|
|
Address() device.WGAddress
|
2023-12-08 10:48:21 +01:00
|
|
|
IsUserspaceBind() bool
|
2024-10-02 18:24:22 +02:00
|
|
|
SetFilter(device.PacketFilter) error
|
2025-02-07 14:11:53 +01:00
|
|
|
GetDevice() *device.FilteredDevice
|
|
|
|
GetWGDevice() *wgdevice.Device
|
2023-12-08 10:48:21 +01:00
|
|
|
}
|