We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4b282f commit d11e07cCopy full SHA for d11e07c
interfaces/bindtodevice_bsd.go
@@ -15,5 +15,5 @@ func BindToInterface(fd int, ifname string) error {
15
if err != nil {
16
return err
17
}
18
- return syscall.SetsockoptInt(fd, syscall.IPPROTO_IP, syscall.IP_RECVIF, iface.Index)
+ return syscall.SetsockoptInt(fd, unix.IPPROTO_IP, unix.IP_RECVIF, iface.Index)
19
0 commit comments