aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2016-12-15 18:00:12 +0900
committerBrad Fitzpatrick <bradfitz@golang.org>2016-12-15 15:35:21 +0000
commit34bd7d5d4bf93484f920d2ccb12183f530a684e6 (patch)
tree83db4ccfceb14074438e6b1b545624e0e8d0ced7
parent7e4ef4ebfc4f24bb030716c81e0f812aa3a36c97 (diff)
downloadgo-34bd7d5d4bf93484f920d2ccb12183f530a684e6.tar.gz
go-34bd7d5d4bf93484f920d2ccb12183f530a684e6.zip
net: fix comment on IPv4bcast
In Go 1.8, almost all the platforms except NaCl provide network interface and address identification and applications can use IPv4 limited or directed broadcast addresses appropriately. Fixes #18176. Change-Id: Ie5de834d19c0aaeb4128a3ca655f6c4c9ae5e501 Reviewed-on: https://go-review.googlesource.com/34435 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
-rw-r--r--src/net/ip.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ip.go b/src/net/ip.go
index 11518f05f4..4a7774ab38 100644
--- a/src/net/ip.go
+++ b/src/net/ip.go
@@ -90,7 +90,7 @@ func CIDRMask(ones, bits int) IPMask {
// Well-known IPv4 addresses
var (
- IPv4bcast = IPv4(255, 255, 255, 255) // broadcast
+ IPv4bcast = IPv4(255, 255, 255, 255) // limited broadcast
IPv4allsys = IPv4(224, 0, 0, 1) // all systems
IPv4allrouter = IPv4(224, 0, 0, 2) // all routers
IPv4zero = IPv4(0, 0, 0, 0) // all zeros