Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Mikio Hara 200fa7c741 ipv4: remove unnecessary double quotations from test messages
Change-Id: If1243dd2d79824933d896a8c4b31db8c247d0c21
Reviewed-on: https://go-review.googlesource.com/3561
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-01-30 07:58:29 +00:00
Mikio Hara 99928beb6b ipv4: make use of nettest.SupportsRawIPSocket
Change-Id: I12b41d16b49415081242e06b25a7106a4a0c0442
Reviewed-on: https://go-review.googlesource.com/3402
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2015-01-29 21:56:33 +00: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 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
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 d3b1e66114 go.net/ipv4: disable full stack tests on nacl, solaris
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/165150043
2014-10-30 14:15:42 +09:00
Mikio Hara 2c60c92f6b go.net/ipv4: make use of internal/nettest package
LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/155950043
2014-10-08 06:54:30 +09: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 8ecd624185 go.net/ipv4: fix flaky test cases
Fixes golang/go#5709.
Fixes golang/go#5811.

LGTM=dave
R=dave
CC=golang-codereviews
https://golang.org/cl/21360043
2014-04-27 19:26:58 +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 413497eef8 go.net/ipv4: use testing.Skip{,f}
R=bradfitz, dave
CC=bradfitz, gobot, golang-dev, rsc
https://golang.org/cl/7194047
2013-04-04 14:37:01 +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