mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-21 23:53:14 +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
|
|
}
|