This change uses the internal/socket package to ensure that the ipv4
package works with all supported versions of the Go standard library.
Fixesgolang/go#19051.
Change-Id: If0256007c749c319970533823a10afdc1ffbce31
Reviewed-on: https://go-review.googlesource.com/37036
Reviewed-by: Ian Lance Taylor <iant@golang.org>
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
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