5 Commits

Author SHA1 Message Date
Mikio Hara
c4fa6e0d08 ipv4: 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 ipv4
package works with all supported versions of the Go standard library.

Fixes golang/go#19051.

Change-Id: If0256007c749c319970533823a10afdc1ffbce31
Reviewed-on: https://go-review.googlesource.com/37036
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2017-05-24 08:42:31 +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
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
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
353547e1a2 go.net/ipv4: restructure sticky socket option handling
This CL chops existing sticky socket option handlers and puts them
into platform dependent sticky socket option binding table for
supporting multicast features such as source filtering for any-source
multicast, source-specific multicast.

Also adds tiny syscall shims to help to support solaris, to improve
existing platform support.

LGTM=iant
R=iant
CC=golang-codereviews
https://golang.org/cl/140640045
2014-10-04 08:12:41 +09:00