Commit 238af770 authored by Alex Brainman's avatar Alex Brainman

net: fix windows build

Ignore result of setting SO_BROADCAST.

Disable TestSimpleListenMulticastUDP as
setIPv4MulticastInterface is not implemented.

R=golang-dev, bradfitz, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/5610044
parent f6f83e49
......@@ -86,7 +86,7 @@ func TestListenMulticastUDP(t *testing.T) {
func TestSimpleListenMulticastUDP(t *testing.T) {
switch runtime.GOOS {
case "plan9":
case "plan9", "windows":
return
}
......
......@@ -27,11 +27,7 @@ func setDefaultSockopts(s syscall.Handle, f, t int) error {
// to be handled by the correct socket.
// Allow broadcast.
err := syscall.SetsockoptInt(s, syscall.SOL_SOCKET, syscall.SO_BROADCAST, 1)
if err != nil {
return os.NewSyscallError("setsockopt", err)
}
syscall.SetsockoptInt(s, syscall.SOL_SOCKET, syscall.SO_BROADCAST, 1)
return nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment