diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2020-10-27 14:39:35 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-27 16:20:09 +0100 |
commit | e6b7c4eef3f914c8657ca02676e48f61e8bf3ed8 (patch) | |
tree | 9f8f2f2cca3e0cea74c1d8e83915b84ecc0a772b /tun/wintun/nci/zsyscall_windows.go | |
parent | 8ae09213a7ba2520dd4c206c76d1730a55408519 (diff) |
tun: use Ioctl{Get,Set}IfreqMTU from golang.org/x/sys/unix on macOS
Direct syscalls using unix.Syscall(unix.SYS_*, ...) are discouraged on
macOS and might not be supported in future versions. Switch to use
unix.Ioctl{Get,Set}IfreqMTU to get and set an interface's MTU.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/wintun/nci/zsyscall_windows.go')
0 files changed, 0 insertions, 0 deletions