]> Cypherpunks repositories - gostls13.git/commit
net: ParseCIDR returns IPNet instead of IPMask
authorMikio Hara <mikioh.mikioh@gmail.com>
Wed, 7 Sep 2011 18:01:12 +0000 (14:01 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 7 Sep 2011 18:01:12 +0000 (14:01 -0400)
commita2c2c874396f50301d48efa6e456573a53bea98c
tree2f4476ef5aea8e6acfe6499ac06611c6cda6615d
parent4ba677c6ea5203960476a0dfc73f7ffa3442cd7d
net: ParseCIDR returns IPNet instead of IPMask

Note that this CL will break your existing code which uses
ParseCIDR.

This CL changes ParseCIDR("172.16.253.121/28") to return
the IP address "172.16.253.121", the network implied by the
network number "172.16.253.112" and mask "255.255.255.240".

R=rsc, borman
CC=golang-dev
https://golang.org/cl/4749043
src/pkg/net/ip.go
src/pkg/net/ip_test.go