diff options
Diffstat (limited to 'dhcpv4/bindtodevice_linux.go')
-rw-r--r-- | dhcpv4/bindtodevice_linux.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dhcpv4/bindtodevice_linux.go b/dhcpv4/bindtodevice_linux.go index 957744a..c1ae025 100644 --- a/dhcpv4/bindtodevice_linux.go +++ b/dhcpv4/bindtodevice_linux.go @@ -2,10 +2,8 @@ package dhcpv4 -import ( - "syscall" -) +import "golang.org/x/sys/unix" func BindToInterface(fd int, ifname string) error { - return syscall.BindToDevice(fd, ifname) + return unix.BindToDevice(fd, ifname) } |