]> Cypherpunks repositories - gostls13.git/commit
net, http: add and make use of IP address scope identification API
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 17 May 2011 03:21:13 +0000 (23:21 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 17 May 2011 03:21:13 +0000 (23:21 -0400)
commitdb36e03692006c53492353e0187240ef45be97f9
tree92ae4c80a0cae8a6f9955fe83a30716b4545c2a4
parent5342aedeed54606fa1dcad2f039744fabfcc7544
net, http: add and make use of IP address scope identification API

Add seven methods to IP struct: IsUnspecified, IsLoopback,
IsMulticast, IsInterfaceLocalMulticast, IsLinkLocalMulticast,
IsLinkLocalUnicast and IsGlobalUnicast.

R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/4515083
src/pkg/http/transport.go
src/pkg/net/ip.go
src/pkg/net/ip_test.go