Skip to content

Commit 9704df9

Browse files
committed
go.net/ipv6: add support for dragonfly
Update golang/go#7174 LGTM=iant R=golang-codereviews, iant CC=golang-codereviews https://golang.org/cl/91770049
1 parent 8ecd624 commit 9704df9

25 files changed

+35
-35
lines changed

ipv6/control_rfc3542_stub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build dragonfly plan9 solaris
5+
// +build plan9 solaris
66

77
package ipv6
88

ipv6/control_rfc3542_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build freebsd linux netbsd openbsd
5+
// +build dragonfly freebsd linux netbsd openbsd
66

77
package ipv6
88

ipv6/dgramopt_posix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build darwin freebsd linux netbsd openbsd windows
5+
// +build darwin dragonfly freebsd linux netbsd openbsd windows
66

77
package ipv6
88

ipv6/dgramopt_stub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build dragonfly plan9 solaris
5+
// +build plan9 solaris
66

77
package ipv6
88

ipv6/genericopt_posix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build darwin freebsd linux netbsd openbsd windows
5+
// +build darwin dragonfly freebsd linux netbsd openbsd windows
66

77
package ipv6
88

ipv6/genericopt_stub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build dragonfly plan9 solaris
5+
// +build plan9 solaris
66

77
package ipv6
88

ipv6/helper_stub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build dragonfly plan9 solaris
5+
// +build plan9 solaris
66

77
package ipv6
88

ipv6/helper_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build darwin freebsd linux netbsd openbsd
5+
// +build darwin dragonfly freebsd linux netbsd openbsd
66

77
package ipv6
88

ipv6/icmp_bsd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build darwin freebsd netbsd openbsd
5+
// +build darwin dragonfly freebsd netbsd openbsd
66

77
package ipv6
88

ipv6/icmp_stub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build dragonfly plan9 solaris
5+
// +build plan9 solaris
66

77
package ipv6
88

ipv6/icmp_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestICMPString(t *testing.T) {
3434

3535
func TestICMPFilter(t *testing.T) {
3636
switch runtime.GOOS {
37-
case "dragonfly", "plan9", "solaris", "windows":
37+
case "plan9", "solaris", "windows":
3838
t.Skipf("not supported on %q", runtime.GOOS)
3939
}
4040

@@ -67,7 +67,7 @@ func TestICMPFilter(t *testing.T) {
6767

6868
func TestSetICMPFilter(t *testing.T) {
6969
switch runtime.GOOS {
70-
case "dragonfly", "plan9", "solaris", "windows":
70+
case "plan9", "solaris", "windows":
7171
t.Skipf("not supported on %q", runtime.GOOS)
7272
}
7373
if !supportsIPv6 {

ipv6/multicast_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
1919
case "freebsd": // due to a bug on loopback marking
2020
// See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065.
2121
t.Skipf("not supported on %q", runtime.GOOS)
22-
case "dragonfly", "plan9", "solaris", "windows":
22+
case "plan9", "solaris", "windows":
2323
t.Skipf("not supported on %q", runtime.GOOS)
2424
}
2525
if !supportsIPv6 {
@@ -97,7 +97,7 @@ func TestPacketConnReadWriteMulticastUDP(t *testing.T) {
9797

9898
func TestPacketConnReadWriteMulticastICMP(t *testing.T) {
9999
switch runtime.GOOS {
100-
case "dragonfly", "plan9", "solaris", "windows":
100+
case "plan9", "solaris", "windows":
101101
t.Skipf("not supported on %q", runtime.GOOS)
102102
}
103103
if !supportsIPv6 {

ipv6/multicastlistener_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var udpMultipleGroupListenerTests = []net.Addr{
2121

2222
func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) {
2323
switch runtime.GOOS {
24-
case "dragonfly", "plan9", "solaris", "windows":
24+
case "plan9", "solaris", "windows":
2525
t.Skipf("not supported on %q", runtime.GOOS)
2626
}
2727
if !supportsIPv6 {
@@ -61,7 +61,7 @@ func TestUDPSinglePacketConnWithMultipleGroupListeners(t *testing.T) {
6161

6262
func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) {
6363
switch runtime.GOOS {
64-
case "dragonfly", "plan9", "solaris", "windows":
64+
case "plan9", "solaris", "windows":
6565
t.Skipf("not supported on %q", runtime.GOOS)
6666
}
6767
if !supportsIPv6 {
@@ -113,7 +113,7 @@ func TestUDPMultiplePacketConnWithMultipleGroupListeners(t *testing.T) {
113113

114114
func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
115115
switch runtime.GOOS {
116-
case "dragonfly", "plan9", "solaris", "windows":
116+
case "plan9", "solaris", "windows":
117117
t.Skipf("not supported on %q", runtime.GOOS)
118118
}
119119
if !supportsIPv6 {
@@ -156,7 +156,7 @@ func TestUDPPerInterfaceSinglePacketConnWithSingleGroupListener(t *testing.T) {
156156

157157
func TestIPSinglePacketConnWithSingleGroupListener(t *testing.T) {
158158
switch runtime.GOOS {
159-
case "dragonfly", "plan9", "solaris", "windows":
159+
case "plan9", "solaris", "windows":
160160
t.Skipf("not supported on %q", runtime.GOOS)
161161
}
162162
if !supportsIPv6 {

ipv6/multicastsockopt_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var packetConnMulticastSocketOptionTests = []struct {
2222

2323
func TestPacketConnMulticastSocketOptions(t *testing.T) {
2424
switch runtime.GOOS {
25-
case "dragonfly", "plan9", "solaris", "windows":
25+
case "plan9", "solaris", "windows":
2626
t.Skipf("not supported on %q", runtime.GOOS)
2727
}
2828
if !supportsIPv6 {

ipv6/readwrite_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func benchmarkReadWriteIPv6UDP(b *testing.B, p *ipv6.PacketConn, wb, rb []byte,
9090

9191
func TestPacketConnConcurrentReadWriteUnicastUDP(t *testing.T) {
9292
switch runtime.GOOS {
93-
case "dragonfly", "plan9", "solaris", "windows":
93+
case "plan9", "solaris", "windows":
9494
t.Skipf("not supported on %q", runtime.GOOS)
9595
}
9696
if !supportsIPv6 {

ipv6/sockopt_rfc3493_bsd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build darwin freebsd netbsd openbsd
5+
// +build darwin dragonfly freebsd netbsd openbsd
66

77
package ipv6
88

ipv6/sockopt_rfc3493_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build darwin freebsd linux netbsd openbsd
5+
// +build darwin dragonfly freebsd linux netbsd openbsd
66

77
package ipv6
88

ipv6/sockopt_rfc3542_stub.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build dragonfly plan9 solaris
5+
// +build plan9 solaris
66

77
package ipv6
88

ipv6/sockopt_rfc3542_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build freebsd linux netbsd openbsd
5+
// +build dragonfly freebsd linux netbsd openbsd
66

77
package ipv6
88

ipv6/sockopt_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ func init() {
2424
var condFatalf = func() func(*testing.T, string, ...interface{}) {
2525
// A few APIs are not implemented yet on some platforms.
2626
switch runtime.GOOS {
27-
case "darwin", "dragonfly", "plan9", "solaris", "windows":
27+
case "darwin", "plan9", "solaris", "windows":
2828
return (*testing.T).Logf
2929
}
3030
return (*testing.T).Fatalf
3131
}()
3232

3333
func TestConnInitiatorPathMTU(t *testing.T) {
3434
switch runtime.GOOS {
35-
case "dragonfly", "plan9", "solaris", "windows":
35+
case "plan9", "solaris", "windows":
3636
t.Skipf("not supported on %q", runtime.GOOS)
3737
}
3838
if !supportsIPv6 {
@@ -65,7 +65,7 @@ func TestConnInitiatorPathMTU(t *testing.T) {
6565

6666
func TestConnResponderPathMTU(t *testing.T) {
6767
switch runtime.GOOS {
68-
case "dragonfly", "plan9", "solaris", "windows":
68+
case "plan9", "solaris", "windows":
6969
t.Skipf("not supported on %q", runtime.GOOS)
7070
}
7171
if !supportsIPv6 {
@@ -98,7 +98,7 @@ func TestConnResponderPathMTU(t *testing.T) {
9898

9999
func TestPacketConnChecksum(t *testing.T) {
100100
switch runtime.GOOS {
101-
case "dragonfly", "plan9", "solaris", "windows":
101+
case "plan9", "solaris", "windows":
102102
t.Skipf("not supported on %q", runtime.GOOS)
103103
}
104104
if !supportsIPv6 {

ipv6/sys_bsd.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build freebsd netbsd openbsd
5+
// +build dragonfly freebsd netbsd openbsd
66

77
package ipv6
88

ipv6/sys_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build darwin freebsd linux netbsd openbsd
5+
// +build darwin dragonfly freebsd linux netbsd openbsd
66

77
package ipv6
88

ipv6/syscall_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
// +build darwin freebsd linux,amd64 linux,arm netbsd openbsd
5+
// +build darwin dragonfly freebsd linux,amd64 linux,arm netbsd openbsd
66

77
package ipv6
88

ipv6/unicast_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616

1717
func TestPacketConnReadWriteUnicastUDP(t *testing.T) {
1818
switch runtime.GOOS {
19-
case "dragonfly", "plan9", "solaris", "windows":
19+
case "plan9", "solaris", "windows":
2020
t.Skipf("not supported on %q", runtime.GOOS)
2121
}
2222
if !supportsIPv6 {
@@ -77,7 +77,7 @@ func TestPacketConnReadWriteUnicastUDP(t *testing.T) {
7777

7878
func TestPacketConnReadWriteUnicastICMP(t *testing.T) {
7979
switch runtime.GOOS {
80-
case "dragonfly", "plan9", "solaris", "windows":
80+
case "plan9", "solaris", "windows":
8181
t.Skipf("not supported on %q", runtime.GOOS)
8282
}
8383
if !supportsIPv6 {

ipv6/unicastsockopt_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414

1515
func TestConnUnicastSocketOptions(t *testing.T) {
1616
switch runtime.GOOS {
17-
case "dragonfly", "plan9", "solaris", "windows":
17+
case "plan9", "solaris", "windows":
1818
t.Skipf("not supported on %q", runtime.GOOS)
1919
}
2020
if !supportsIPv6 {
@@ -50,7 +50,7 @@ var packetConnUnicastSocketOptionTests = []struct {
5050

5151
func TestPacketConnUnicastSocketOptions(t *testing.T) {
5252
switch runtime.GOOS {
53-
case "dragonfly", "plan9", "solaris", "windows":
53+
case "plan9", "solaris", "windows":
5454
t.Skipf("not supported on %q", runtime.GOOS)
5555
}
5656
if !supportsIPv6 {

0 commit comments

Comments
 (0)