]> Cypherpunks repositories - gostls13.git/commit
net: fix multicast and IPv6 related issues on Plan 9
authorFazlul Shahriar <fshahriar@gmail.com>
Wed, 16 Oct 2019 02:58:40 +0000 (22:58 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 16 Oct 2019 17:46:16 +0000 (17:46 +0000)
commite94475eab199463f81f4a55e0f841d15504a0e56
tree13d46b995f6c8bc9d20511a38586c8d30e57ae80
parentf6c624a22ab0e548d3c95db68b2303fda271838f
net: fix multicast and IPv6 related issues on Plan 9

Fix issues that make these tests pass:
- TestDialerLocalAddr: return error if local address is not IPv4 for
"tcp4" network.
- TestInterfaceAddrs, TestInterfaceUnicastAddrs: don't assume each
interface has only one address. It may have more than one or none.
- TestConcurrentPreferGoResolversDial: should be skipped on Plan 9.
- TestListenMulticastUDP: remove IP from `announce` command and don't
mix IPv4 address with IPv6 address in `addmulti` command.

Fixes #34931

Change-Id: Ie0fdfe19ea282e5d6d6c938bf3c9139f8f5b0308
Reviewed-on: https://go-review.googlesource.com/c/go/+/201397
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/interface_plan9.go
src/net/ipsock_plan9.go
src/net/lookup_test.go
src/net/tcpsock_plan9.go
src/net/udpsock_plan9.go
src/net/udpsock_plan9_test.go