mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 03:11:02 +01:00
fd67892cb4
Refactor the flat code structure
9 lines
291 B
Go
9 lines
291 B
Go
package device
|
|
|
|
// TunAdapter is an interface for create tun device from external service
|
|
type TunAdapter interface {
|
|
ConfigureInterface(address string, mtu int, dns string, searchDomains string, routes string) (int, error)
|
|
UpdateAddr(address string) error
|
|
ProtectSocket(fd int32) bool
|
|
}
|