Skip to content

Commit d11e07c

Browse files
pmazziniinsomniacslk
authored andcommitted
[interfaces] bsd
1 parent d4b282f commit d11e07c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interfaces/bindtodevice_bsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ func BindToInterface(fd int, ifname string) error {
1515
if err != nil {
1616
return err
1717
}
18-
return syscall.SetsockoptInt(fd, syscall.IPPROTO_IP, syscall.IP_RECVIF, iface.Index)
18+
return syscall.SetsockoptInt(fd, unix.IPPROTO_IP, unix.IP_RECVIF, iface.Index)
1919
}

0 commit comments

Comments
 (0)