|
@@ -24,6 +24,9 @@ func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) {
|
|
|
case "plan9", "windows":
|
|
case "plan9", "windows":
|
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
|
}
|
|
}
|
|
|
|
|
+ if !supportsIPv6 {
|
|
|
|
|
+ t.Skip("ipv6 is not supported")
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
for _, gaddr := range udpMultipleGroupListenerTests {
|
|
for _, gaddr := range udpMultipleGroupListenerTests {
|
|
|
c, err := net.ListenPacket("udp6", "[::]:0") // wildcard address with non-reusable port
|
|
c, err := net.ListenPacket("udp6", "[::]:0") // wildcard address with non-reusable port
|
|
@@ -61,6 +64,9 @@ func TestUDPMultipleConnWithMultipleGroupListeners(t *testing.T) {
|
|
|
case "plan9", "windows":
|
|
case "plan9", "windows":
|
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
|
}
|
|
}
|
|
|
|
|
+ if !supportsIPv6 {
|
|
|
|
|
+ t.Skip("ipv6 is not supported")
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
for _, gaddr := range udpMultipleGroupListenerTests {
|
|
for _, gaddr := range udpMultipleGroupListenerTests {
|
|
|
c1, err := net.ListenPacket("udp6", "[ff02::]:1024") // wildcard address with reusable port
|
|
c1, err := net.ListenPacket("udp6", "[ff02::]:1024") // wildcard address with reusable port
|
|
@@ -110,6 +116,9 @@ func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
|
|
|
case "plan9", "windows":
|
|
case "plan9", "windows":
|
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
|
}
|
|
}
|
|
|
|
|
+ if !supportsIPv6 {
|
|
|
|
|
+ t.Skip("ipv6 is not supported")
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
gaddr := &net.IPAddr{IP: net.ParseIP("ff02::114")} // see RFC 4727
|
|
gaddr := &net.IPAddr{IP: net.ParseIP("ff02::114")} // see RFC 4727
|
|
|
type ml struct {
|
|
type ml struct {
|
|
@@ -150,6 +159,9 @@ func TestIPSinglePacketConnWithSingleGroupListener(t *testing.T) {
|
|
|
case "plan9", "windows":
|
|
case "plan9", "windows":
|
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
|
}
|
|
}
|
|
|
|
|
+ if !supportsIPv6 {
|
|
|
|
|
+ t.Skip("ipv6 is not supported")
|
|
|
|
|
+ }
|
|
|
if os.Getuid() != 0 {
|
|
if os.Getuid() != 0 {
|
|
|
t.Skip("must be root")
|
|
t.Skip("must be root")
|
|
|
}
|
|
}
|