]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix comment on IPv4bcast
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 15 Dec 2016 09:00:12 +0000 (18:00 +0900)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 15 Dec 2016 15:35:21 +0000 (15:35 +0000)
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>
src/net/ip.go

index 11518f05f41426a42de18f63c03fe3ccf731f617..4a7774ab38a334247d392c1764fe62118c57a863 100644 (file)
@@ -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