From: Mikio Hara Date: Thu, 15 Dec 2016 09:00:12 +0000 (+0900) Subject: net: fix comment on IPv4bcast X-Git-Tag: go1.8beta2~5 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=34bd7d5d4bf93484f920d2ccb12183f530a684e6;p=gostls13.git 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 --- 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