From 34bd7d5d4bf93484f920d2ccb12183f530a684e6 Mon Sep 17 00:00:00 2001 From: Mikio Hara Date: Thu, 15 Dec 2016 18:00:12 +0900 Subject: [PATCH] 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 --- src/net/ip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.50.0