10 Commits

Author SHA1 Message Date
Tobias Klauser
cb1fcc7394 ipv6: use socket option consts from x/sys/unix on freebsd
Use the socket option constants defined in the golang.org/x/sys/unix
package instead of duplicating them in this package.

Note that for now, sysIPV6_TCLASS, sysIPV6_PATHMTU, sysIPV6_PKTINFO,
sysIPV6_HOPLIMIT and sysIPV6_NEXTHOP still need to be defined because
they are used in code shared with other platforms.

Change-Id: I5de2fa26dea61b0de94cbe48575c1d842c973ff5
Reviewed-on: https://go-review.googlesource.com/c/net/+/306070
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
2021-03-31 06:09:03 +00:00
Mikio Hara
617fbc828a ipv6: rename freebsd32o64 with compatFreeBSD32 for consistency
The variable name compatFreeBSD32 refers to the kernel configuration
directive COMPAT_FREEBSD32 and is also used in route and ipv6 packages.

Change-Id: I00e6de390c25b7df45b76e772719a83fa6b0843b
Reviewed-on: https://go-review.googlesource.com/c/149879
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2019-02-27 02:21:22 +00:00
Mikio Hara
bd58382b56 ipv6: plumb in the standard library of Go 1.9 by using internal/socket package
This change uses the internal/socket package to ensure that the ipv6
package works with all supported versions of the Go standard library.

Fixes golang/go#19051.

Change-Id: I74911a8c5bba79e082a10d64e621ed415be1c033
Reviewed-on: https://go-review.googlesource.com/37042
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-05-24 08:42:47 +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
30df40a6a1 ipv6: rename internal types and constants generated by cgo
To match up with other packages that work with IP protocol stack.

Change-Id: I1f4eb76051964766113914c9698233022e73d5eb
Reviewed-on: https://go-review.googlesource.com/30575
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:57 +00:00
Mikio Hara
c4bb2f7b3d ipv6: remove unnecessary sysSockoptLen type
Change-Id: I87887ea03c36ca7d26e1ab2cb55d723611c942a8
Reviewed-on: https://go-review.googlesource.com/21354
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-03-31 04:07:02 +00:00
Mikio Hara
10576091dc ipv6: simplify init function for freebsd
Change-Id: I515bdaf3f30b00d61c341295e549bb4c2163bd54
Reviewed-on: https://go-review.googlesource.com/11293
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-06-20 03:04:27 +00:00
Mikio Hara
d375fa3408 ipv6: fix multicast socket options on freebsd/386 on amd64
Change-Id: Ifdd525f27a8ed35bda240c08f379014d03fd2201
Reviewed-on: https://go-review.googlesource.com/11226
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-06-19 01:28:42 +00:00
Mikio Hara
8869759228 x/net/ipv6: enable IPV6_NEXTHOP, IPV6_PATHMTU ancillary data options for BSD variants
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/174310043
2014-11-19 06:07:43 +09:00
Mikio Hara
e9210114b2 x/net/ipv6: add sticky source-specific multicast socket options
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/175010043
2014-11-13 17:20:40 +09:00