summaryrefslogtreecommitdiffhomepage
path: root/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces')
-rw-r--r--interfaces/bindtodevice_bsd.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces/bindtodevice_bsd.go b/interfaces/bindtodevice_bsd.go
index 226e2a8..a0cc0b5 100644
--- a/interfaces/bindtodevice_bsd.go
+++ b/interfaces/bindtodevice_bsd.go
@@ -15,5 +15,5 @@ func BindToInterface(fd int, ifname string) error {
if err != nil {
return err
}
- return syscall.SetsockoptInt(fd, syscall.IPPROTO_IP, syscall.IP_RECVIF, iface.Index)
+ return syscall.SetsockoptInt(fd, unix.IPPROTO_IP, unix.IP_RECVIF, iface.Index)
}