6 Commits

Author SHA1 Message Date
Mikio Hara
cabdc3af38 ipv4: update RFC number of IPv6 specification in docs
Change-Id: Ia3dbad890e3574b34370034fd4cb4bf96323bab3
Reviewed-on: https://go-review.googlesource.com/49790
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-07-19 08:39:33 +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
a14f429b86 ipv4: rename internal types and constants generated by cgo
To match up with other packages that work with IP protocol stack.

Change-Id: I2d20e4194617b05b6b46d6fba5df1f6c12ae2793
Reviewed-on: https://go-review.googlesource.com/30574
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-10-07 03:58:42 +00:00
Mikio Hara
e92559f37e x/net/ipv4: add support for icmp filter on linux
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/179510043
2014-12-04 17:31:40 +09:00
Mikio Hara
e93b1edd55 x/net/{internal/icmp,ipv4,ipv6}: better method for icmp.Type interface
LGTM=iant
R=iant, bradfitz
CC=golang-codereviews
https://golang.org/cl/173670044
2014-11-29 10:11:10 +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