Add support for naming FreeBSD tun devices (#903)

This commit is contained in:
John Maguire
2023-06-22 12:13:31 -04:00
committed by GitHub
parent 3bbf5f4e67
commit 8ba5d64dbc
6 changed files with 142 additions and 41 deletions

14
overlay/tun_notwin.go Normal file
View File

@@ -0,0 +1,14 @@
//go:build !windows
// +build !windows
package overlay
import "syscall"
func ioctl(a1, a2, a3 uintptr) error {
_, _, errno := syscall.Syscall(syscall.SYS_IOCTL, a1, a2, a3)
if errno != 0 {
return errno
}
return nil
}