|
|
@@ -63,7 +63,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
|
|
|
|
|
|
for i, toggle := range []bool{true, false, true} {
|
|
|
if err := p.SetControlMessage(cf, toggle); err != nil {
|
|
|
- if protocolNotSupported(err) {
|
|
|
+ if nettest.ProtocolNotSupported(err) {
|
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
|
}
|
|
|
t.Fatalf("ipv4.PacketConn.SetControlMessage failed: %v", err)
|
|
|
@@ -139,7 +139,7 @@ func TestPacketConnReadWriteMulticastICMP(t *testing.T) {
|
|
|
t.Fatalf("icmp.Message.Marshal failed: %v", err)
|
|
|
}
|
|
|
if err := p.SetControlMessage(cf, toggle); err != nil {
|
|
|
- if protocolNotSupported(err) {
|
|
|
+ if nettest.ProtocolNotSupported(err) {
|
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
|
}
|
|
|
t.Fatalf("ipv4.PacketConn.SetControlMessage failed: %v", err)
|
|
|
@@ -235,7 +235,7 @@ func TestRawConnReadWriteMulticastICMP(t *testing.T) {
|
|
|
Dst: dst.IP,
|
|
|
}
|
|
|
if err := r.SetControlMessage(cf, toggle); err != nil {
|
|
|
- if protocolNotSupported(err) {
|
|
|
+ if nettest.ProtocolNotSupported(err) {
|
|
|
t.Skipf("not supported on %q", runtime.GOOS)
|
|
|
}
|
|
|
t.Fatalf("ipv4.RawConn.SetControlMessage failed: %v", err)
|