1
0
mirror of https://github.com/golang/go synced 2024-10-03 09:11:22 -06:00

net: fix protocol number for IPv6 test

The protocol number of ICMP for IPv6 is 58, not 1.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6810093
This commit is contained in:
Mikio Hara 2012-11-07 21:55:29 +09:00
parent 1a19f01a68
commit 63f29d17d1

View File

@ -21,7 +21,7 @@ var icmpTests = []struct {
ipv6 bool // test with underlying AF_INET6 socket ipv6 bool // test with underlying AF_INET6 socket
}{ }{
{"ip4:icmp", "", "127.0.0.1", false}, {"ip4:icmp", "", "127.0.0.1", false},
{"ip6:icmp", "", "::1", true}, {"ip6:ipv6-icmp", "", "::1", true},
} }
func TestICMP(t *testing.T) { func TestICMP(t *testing.T) {