13 Commits

Author SHA1 Message Date
Cherry Zhang
328152dc79 all: add GOOS=ios
Following CL 254740, this CL does it on x/net.

Updates golang/go#38485.

Change-Id: I80831dd0faa6f216d8d3b8f1af0af811aacce43f
Reviewed-on: https://go-review.googlesource.com/c/net/+/255537
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2020-09-23 18:22:12 +00:00
Dmitri Shuralyov
5d997795f7 all: make copyright headers consistent with one space after period
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>
2016-11-07 23:52:11 +00:00
Mikio Hara
ba406c5067 ipv4: update example for the use of dual stack listener
Fixes golang/go#13612.

Change-Id: Ie224c1018fb4ceb013476f586000801ce447956e
Reviewed-on: https://go-review.googlesource.com/17798
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-12-15 03:16:29 +00:00
Mikio Hara
b6ee6b33ae ipv4: don't refer internal packages in examples
Updates golang/go#12163.

Change-Id: I1cd3b6324eb37d7a2285683590acd188758e7d90
Reviewed-on: https://go-review.googlesource.com/13654
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-08-17 04:08:34 +00:00
Mikio Hara
e50142f87f x/net/ipv4: use new import path for icmp
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/183030043
2014-12-03 12:33:13 +09:00
Mikio Hara
7339ca6711 x/net/ipv4: update package example
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/178800043
2014-11-19 06:08:48 +09:00
Andrew Gerrand
fbe893ddcd go.net: use golang.org/x/... import paths
LGTM=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/167030043
2014-11-10 09:04:43 +11:00
Mikio Hara
e5dac17b9b go.net/ipv4: make use of internal/{iana,icmp} packages
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/154880043
2014-10-07 06:35:16 +09:00
Mikio Hara
8108b4b39d go.net/ipv4: drop DIffServ and ECN constants, add ICMPType
This CL removes DiffServ and ECN constants assigned by IANA because
for now we don't have an appropriate package to put those constants
as part of API. There were used for the type-of-service field of IPv4
header and the traffic class field of IPv6 header.

Also adds ICMPType for convenience, makes use of internal IANA
protocol number constants instead of syscall's to prevent churning of
package syscall in the near future.

R=dave
CC=golang-dev
https://golang.org/cl/9353045
2013-06-07 14:52:58 +09:00
Mikio Hara
0e4f6eb3bd go.net/ipv4: change I/O method signatures on PacketConn and RawConn
Preserves both Read and Write signatures for the future usage.

R=dave, rsc
CC=golang-dev
https://golang.org/cl/6970048
2012-12-21 07:30:42 +09:00
Mikio Hara
175ced2c8a go.net/ipv4: remove arguments from example functions
The testing packege expects that Example functions in each
package don't take any arguments. Will do so for the safety.

R=iant, dave, minux.ma, adg
CC=golang-dev
https://golang.org/cl/6591076
2012-12-01 01:06:07 +09:00
David Symonds
cf0ed346d5 go.net/ipv4: Disable an example.
This is an example that isn't executed normally anyway
because the function has arguments. Adding an underscore prefix
makes it easier to exclude it from automated tools.

R=adg, r, dave
CC=golang-dev
https://golang.org/cl/6570062
2012-09-28 17:04:59 +10:00
Mikio Hara
d2e5a1215d go.net/ipv4: new package
Package ipv4 implements IP-level socket options for the Internet
Protocol version 4. It also provides raw IP socket access methods
including IPv4 header manipulation.

Fixes golang/go#3684.
Fixes golang/go#3820.

This CL requires CL 6426047;
net: add read, write message methods to IPConn, UDPConn

R=rsc, dave, alex.brainman
CC=gobot, golang-dev
https://golang.org/cl/6482044
2012-09-26 21:03:09 +09:00