24 Commits

Author SHA1 Message Date
Russ Cox
290c469a71 all: gofmt
Gofmt to update doc comments to the new formatting.

For golang/go#51082.

Change-Id: Iae68a9cd600060577271575e893ecb23bed1e509
Reviewed-on: https://go-review.googlesource.com/c/net/+/399599
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Russ Cox <rsc@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-04-12 02:06:05 +00:00
chigotc
c98bf442cc ipv4: add port for aix/ppc64
Change-Id: Ida9aed579c9a33883dadfef094c30a658edce88e
Reviewed-on: https://go-review.googlesource.com/c/net/+/170558
Run-TryBot: Mikio Hara <mikioh.public.networking@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Mikio Hara <mikioh.public.networking@gmail.com>
2019-04-19 01:02:24 +00:00
sergeydobrodey
e86916475b ipv4: fix typo in comment
Change-Id: I60db66b5bbe25b434d8ec1fbc031438a16720dfa
GitHub-Last-Rev: 152f0ce49b
GitHub-Pull-Request: golang/net#30
Reviewed-on: https://go-review.googlesource.com/c/163865
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-02-27 15:44:36 +00:00
Mikio Hara
10aee18199 icmp, ipv4, ipv6: re-adjust build constraints
Also updates package documentation for AIX.

Change-Id: I4809a334f0a4b8f3fb5345749477394b8f3e7546
Reviewed-on: https://go-review.googlesource.com/c/147678
Run-TryBot: Mikio Hara <mikioh.public.networking@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-11-06 06:57:22 +00:00
Mikio Hara
27e6fde75f ipv4: fix a typo
Change-Id: I7012df3e9083f5a158367009d5f41fc2517ac486
Reviewed-on: https://go-review.googlesource.com/126639
Reviewed-by: Matt Layher <mdlayher@gmail.com>
2018-07-30 21:41:24 +00:00
Mikio Hara
4721d2d970 ipv4: don't fail test on JS
Change-Id: Ie3df352e1b59b7035bdf50a5b06feb3d1859de2a
Reviewed-on: https://go-review.googlesource.com/121556
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-06-29 03:53:19 +00:00
Dmitri Shuralyov
357296a763 all: single space after period
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>
2017-02-01 21:02:21 +00:00
Mikio Hara
bb2257b551 ipv4: drop package name prefix from identifiers in docs for consistency
Change-Id: I00b3297b88142ddb3c0cd08391171ebb6e731550
Reviewed-on: https://go-review.googlesource.com/34751
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-06 00:50:49 +00:00
Mikio Hara
0cc888483f ipv4: add missing BUGS section
Change-Id: Idf0f3ce0cbd5eb402eb4929e4280b1bf746c04e9
Reviewed-on: https://go-review.googlesource.com/34432
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-15 08:38:04 +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
99a55505f4 ipv4: fix typo
Change-Id: Iaec7505bea3ea29cd58147b6057f03a4c7f0861c
Reviewed-on: https://go-review.googlesource.com/29694
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-09-24 02:07:15 +00:00
Mikio Hara
dc692bc613 ipv4: don't use internal/iana's constants in documentation
Change-Id: I55d6ad683b8021722fec8b42b2a8aa0a1883cb96
Reviewed-on: https://go-review.googlesource.com/15052
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-09-27 05:26:17 +00:00
Mikio Hara
1e5264da09 ipv4: fix typo in package documentation
Change-Id: I73a93368cdff6cb9938dbe6b1dda05133a1043f5
Reviewed-on: https://go-review.googlesource.com/12629
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-07-24 22:00:46 +00:00
Mikio Hara
6d91d996ec ipv4: update package documentation
Change-Id: Iff9ef2951093883d775373b798dc7612527d888c
Reviewed-on: https://go-review.googlesource.com/2795
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-01-15 01:52:43 +00:00
Mikio Hara
9818cd4509 ipv4: fix a typo
Change-Id: I9edeffebf3f22880c4e2d14fa3754415757dcdca
2015-01-07 16:07:18 +09:00
David Symonds
8aa6e209cb net: add import comments.
Change-Id: Ifab0fdaec1d810d268b7c19ad30f476802203b37
2014-12-09 14:17:11 +11:00
Mikio Hara
3809e7496c x/net/ipv4: update package documentation
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/173300043
2014-11-22 11:21:45 +09:00
Mikio Hara
a33e90a7ec x/net/ipv4: add support for source-specific multicast
This CL introduces methods for the manipulation of source-specifc
group into both PacketConn and RawConn as follows:

JoinSourceSpecificGroup(*net.Interface, net.Addr, net.Addr) error
LeaveSourceSpecificGroup(*net.Interface, net.Addr, net.Addr) error
ExcludeSourceSpecificGroup(*net.Interface, net.Addr, net.Addr) error
IncludeSourceSpecificGroup(*net.Interface, net.Addr, net.Addr) error

Fixes golang/go#8266.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/174030043
2014-11-13 17:23:46 +09:00
Mikio Hara
080e651530 go.net/ipv4: update package documentation
- fix more multicasting section as pointed out in go.net/ipv6 review
- simplify example codes
- do word alignment; s/multicast group address/multicast group/

R=dave
CC=golang-dev
https://golang.org/cl/10322043
2013-06-29 10:25:47 +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
28323391c4 go.net/ipv4: update doc
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/6996045
2012-12-21 13:18:56 +09:00
Mikio Hara
811c2f5ee8 go.net: gofmt -w -s
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/6811084
2012-11-06 22:00:43 +09:00
Mikio Hara
90b3e53501 go.net/ipv4: make RFC numbers in doc clickable on GoPkgDoc
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/6591077
2012-10-05 11:21:34 +09: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