iana.org, www.iana.org and data.iana.org all present a valid TLS
certificate, so let's use it when fetching data to avoid errors in
transit.
Change-Id: I1f295442d24a221fe2b722c4782dceee38b960ec
Reviewed-on: https://go-review.googlesource.com/89415
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
As per RFC 3246, the registry renames the name for DSCP 101110
(binary) from EF PHB to EF to clarify that a particular per-hop
behavior (PHB) is called expedited forwarding (EF).
Change-Id: I022c2fcd4bb42a210ae5c6ec62200b7c5a638250
Reviewed-on: https://go-review.googlesource.com/43695
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This is a counterpart of https://go-review.googlesource.com/37039.
This change introduces a package that provides a portable interface
for the manipulation of sockets using either syscall.Conn and
syscall.RawConn interfaces or the internal/netreflect package
appropriately.
The package ensures that a package using this works with all supported
versions of the Go standard library.
Updates golang/go#19051.
Change-Id: Ib72ea369e6839e77fed6e35b9aedc364e73c51cb
Reviewed-on: https://go-review.googlesource.com/37035
Reviewed-by: Ian Lance Taylor <iant@golang.org>
The x/net package is currently broken for Go 1.9 (#19051) so
I am unable to use trybots for x/net/http2.
This disables the tests for the broken stuff and makes things compile
at least, so x/net trybots aren't broken for others.
Updates golang/go#19051
Change-Id: I67401d7ad32d855e99a417545328eb4e803287cc
Reviewed-on: https://go-review.googlesource.com/37401
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matt Layher <mdlayher@gmail.com>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
This package doesn't work with Go 1.9 or above.
The bypass surgery for grafting the net and internal/poll packages of
Go 1.9 starts with disabling this packge.
Updates golang/go#19051.
Change-Id: I82d742d267f155cf440884e845b24402a5a5bfdf
Reviewed-on: https://go-review.googlesource.com/37034
Reviewed-by: Ian Lance Taylor <iant@golang.org>
The tree's pretty inconsistent about single space vs double space
after a period in documentation. Make it consistently a single space,
per earlier decisions, and changes in go repository. This means
contributors won't be confused by misleading precedence.
This CL was generated with:
perl -i -npe 's,^(\s*// .+[a-z]\.) +([A-Z]),$1 $2,' $(git grep -l -E '^\s*//(.+\.) +([A-Z])')
on top of copyright headers change in https://golang.org/cl/32878.
Follows https://golang.org/cl/20022.
Change-Id: I821e4a300122b4668aa31e12eaa914db615e5369
Reviewed-on: https://go-review.googlesource.com/32879
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Go policy has been single space after periods in comments for some time.
The copyright header template at:
https://golang.org/doc/contribute.html#copyright
also uses a single space.
Make them all consistent.
This CL was generated with:
perl -i -npe 's,^(// Copyright [0-9]+ The Go Authors\.) (All rights reserved\.)$,$1 $2,' $(git grep -l -E '^// Copyright [0-9]+ The Go Authors\. All rights reserved\.$')
Follows https://golang.org/cl/20111.
Change-Id: I66671dddf821f5dc027bc254e0196b3e3a2bdf3b
Reviewed-on: https://go-review.googlesource.com/32878
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This change introduces an internal package that provides the
manipulation of net package facilities by using runtime reflection.
The package is supposed to be used by ipv4 and ipv6 packages.
Change-Id: I73ec3b7d3762e675ca03ad9ee5e8a68e75ceb997
Reviewed-on: https://go-review.googlesource.com/27732
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This implements a time series data structure.
It is not a general purpose package, but will be used
by the upcoming trace package.
Change-Id: I3aa547b2f76582fea246b2b35b465b35499f3fda
Reviewed-on: https://go-review.googlesource.com/10720
Reviewed-by: Andrew Gerrand <adg@golang.org>
Also fixes parseProtocolNumbers to make it possible to grab the recently
added keyword "deprecated" correctly.
Change-Id: I431da33a722eab9aa13ce1834acab4e9e6346bfd
Reviewed-on: https://go-review.googlesource.com/2852
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This CL adds ParseIPv4Header for parsing an IPv4 header in ICMP
error message. We cannot use ipv4.ParseHeader for it because they
are different things processed by either ip_input or icmp_input.
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/184850043
This CL introduces few ICMP error message body types such as
DstUnreach, PacketTooBig, TimeExceeded or ParamProb.
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/183850043
Moves from go.net/ipv4 pacakge to here, we use this function not only
for ipv4 testing but ipv6 testing.
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/169150043