Commit Graph

228 Commits

Author SHA1 Message Date
Mikio Hara
5c9495a327 x/net/ipv4: enable IP_STRIPHDR sticky socket option on latest darwin kernels
This reduces allocation and copy ops with net.IPConn-based
ipv4.PacketConn on latest darwin kernels.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/184770043
2014-11-29 10:17:57 +09:00
Mikio Hara
d86755811a x/net/ipv6: add Header, ParseHeader
This CL adds Header type and ParseHeader function for convenience
in parsing ICMP error messages such as destination unreachable,
packet too big, time exceeded and parameter problem.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/177530043
2014-11-29 10:12:55 +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
3748d8c2fd x/net/ipv6: remove unnecessary stubs
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/183750044
2014-11-27 07:15:05 +09:00
Mikio Hara
41bf233481 x/net/ipv4: remove unnecessary stubs
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/181200043
2014-11-27 07:14:33 +09:00
Mikio Hara
d96e6bbf42 x/net/ipv6: update package documentation
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/177840043
2014-11-22 11:23:12 +09: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
ed45f19369 x/net/ipv6: fix using wrong constant in test
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/174480043
2014-11-22 11:16:20 +09:00
Mikio Hara
9f8bef6b59 x/net/ipv6: replace a magic number with an iana constant
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/179930043
2014-11-20 06:39:03 +09:00
Mikio Hara
7ad508c2a7 x/net/ipv6: add package example
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/176960043
2014-11-19 06:09:29 +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
Mikio Hara
fb6231e1cc x/net/ipv6: enable IPV6_PATHMTU ancillary data option for Linux
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/176980043
2014-11-19 06:08:13 +09: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
5b76c8047c x/net/ipv6: fix a nit found by vet
LGTM=dsymonds
R=iant, dsymonds
CC=golang-codereviews
https://golang.org/cl/176920043
2014-11-17 12:24:06 +09:00
Mikio Hara
ccf541d876 x/net/html/charset: add missing copyright
LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/174240043
2014-11-17 10:54:40 +09:00
Mikio Hara
716c3ccf9b x/net/html/charset: fix nacl build
LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/177880043
2014-11-17 10:54:21 +09:00
Mikio Hara
dd7a4b48bb x.net/ipv6: fix path mtu test on older darwin kernels
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/173290043
2014-11-17 06:57:00 +09:00
Mikio Hara
b56b609928 x/net/ipv6: fix full stack test cases
Readjusts Traffic Class and ICMP test cases on older darwin kernels,
per-interface link-local address multicasting and loopback interface
required test cases on BSD variants.
Also simplifies error logs.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/177790043
2014-11-16 11:31:00 +09:00
Mikio Hara
c25a4f3082 x/net/ipv4: fix full stack test cases
Readjusts ICMP test cases on older darwin kernels
Also simplifies error logs.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/178740043
2014-11-16 11:30:27 +09:00
Mikio Hara
2a8eb9119c x/net/ipv6: fix build on older darwin kernels
A few adjustments for test cases will come in a following CL.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/176830043
2014-11-16 08:25:36 +09:00
Mikio Hara
724ab9af50 x/net/ipv4: fix build on older darwin kernels
A few adjustments for test cases will come in a following CL.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/179760044
2014-11-16 08:24:54 +09:00
Mikio Hara
40ad15caf3 x/net/ipv6: add support for source-specific multicast
This CL introduces methods for the manipulation of source-specifc
group into PacketConn 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#8752.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/169510043
2014-11-14 17:45:32 +09:00
David Symonds
53bb7518de context: Fix WithValue example code.
LGTM=adg
R=adg
CC=golang-codereviews, sameer
https://golang.org/cl/169540043
2014-11-14 14:29:31 +11:00
Nigel Tao
240cea5a06 x/net/webdav: add a Dir type, analogous to http.Dir.
LGTM=nmvc, dave
R=dave, nmvc
CC=bradfitz, dr.volker.dobler, golang-codereviews, robert.stepanek
https://golang.org/cl/173100044
2014-11-14 11:47:41 +11: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
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
Mikio Hara
d6d144d9db x/net/ipv6: add source-specific multicast types, constants
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/169500043
2014-11-13 17:19:48 +09:00
Mikio Hara
1d6af0dc02 x/net/ipv4: fix freebsd/{386,arm}, linux/{386,arm} build
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/172360043
2014-11-13 07:19:40 +09:00
Mikio Hara
0d3526158c x/net/ipv4: don't enable advanced features on OS X 10.7 and below
Looks like OS X 10.8 is the safe harbor.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/167630043
2014-11-13 07:19:05 +09:00
Mikio Hara
153a6a6152 x/net/ipv4: add sticky source-specific multicast socket options
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/173100043
2014-11-12 12:59:23 +09:00
Mikio Hara
15ecf1c984 x/net/ipv4: add source-specific multicast types, constants
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/173090043
2014-11-12 12:56:41 +09:00
Mikio Hara
383de39dfd x/net/ipv6: re-enable IPV6_PATHMTU for TCP on darwin
Now this option works fine on latest darwin kernels.

Please be informed that using mixed RFC 2292 and RFC 3542 options
on darwin easily becomes a root cause of various kernel crashes.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/166500043
2014-11-12 06:14:13 +09:00
Mikio Hara
f0ba5dcc7c x/net/ipv4: add concurrent read/write test
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/165490043
2014-11-11 21:19:19 +09:00
Nigel Tao
baf9fd4387 go.net/webdav: new Handler, FileSystem, LockSystem and lockInfo types.
LGTM=dave
R=nmvc, dave
CC=bradfitz, dr.volker.dobler, golang-codereviews
https://golang.org/cl/169240043
2014-11-11 17:46:57 +11:00
Mikio Hara
ef3d74d079 x/net/ipv4: add missing ancillary data socket options check
Fixes crashes on various platforms.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/167880044
2014-11-11 06:58:56 +09:00
Mikio Hara
586296a63e x/net/ipv6: skip ancillary data socket option tests on non-supported kernels
For old darwin kernels.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/166410043
2014-11-11 06:58:12 +09:00
Mikio Hara
3064e1c1ca x/net/ipv4: better wording for TODOs
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/167450043
2014-11-11 06:57:22 +09:00
Mikio Hara
5af45f3924 x/net/ipv6: update TODOs
TODOs for stub files are unnecessary because they are stubs.
Also adds TODOs that need to be treated for spurious word
boundary access on some CPU architecture such as ARM, Power.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/174720043
2014-11-11 06:56:41 +09:00
Mikio Hara
4b6fc9ef6a x/net/ipv6: add missing parentheses
Fixes a crash on platforms that don't support IPV6_PKTINFO.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/167460043
2014-11-10 21:42:06 +09:00
Mikio Hara
405a8afa2d x/net/ipv4: make use of nettest.ProtocolNotSupported
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/164640043
2014-11-10 09:49:06 +09:00
Mikio Hara
5f6a50123e x/net/ipv6: make use of go generate to create system adaptation files
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/171970043
2014-11-10 09:48:36 +09:00
Mikio Hara
b1772d9247 x/net/ipv6: disable full stack tests on nacl
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/172900043
2014-11-10 09:47:55 +09:00
Mikio Hara
89143d4521 x/net/internal/nettest: make routableIP not return the ipv6 loopback address
On some platform the IPv6 loopback address is not suitable to assign a name.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/165710043
2014-11-10 09:47:34 +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
66b3e5ee27 go.net/ipv6: make use of internal/iana package
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/166210043
2014-11-09 20:14:52 +09:00
Mikio Hara
77ebfc57e4 go.net/ipv6: make use of internal/{iana,icmp,nettest} packages
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/168210043
2014-11-09 20:14:20 +09:00
Mikio Hara
7db411a191 go.net/internal/nettest: add ProtocolNotSupported function
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
2014-11-09 20:13:42 +09:00
Mikio Hara
63ee83b038 go.net/ipv4: update TODOs
TODOs for stub files are unnecessary because they are stubs.
Also adds TODOs that need to be treated for spurious word
boundary access on some CPU architecture such as ARM, Power.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/171110043
2014-11-06 13:18:00 +09:00
Mikio Hara
75d3d53ceb go.net/ipv4: don't set ifindex to negative integers
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/171810043
2014-11-06 11:45:53 +09:00
Mikio Hara
3a0acf563f go.net/ipv6: don't set non-working parameters in test
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/172720043
2014-11-06 10:49:49 +09:00