]> Cypherpunks repositories - gostls13.git/commit
net, syscall: remove BindToDevice API from UDPConn, IPConn
authorMikio Hara <mikioh.mikioh@gmail.com>
Fri, 2 Dec 2011 14:18:16 +0000 (23:18 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 2 Dec 2011 14:18:16 +0000 (23:18 +0900)
commitcf4acf80b4abecf5113bbeafb4e6780f5a0b607d
tree60d74425ae519e70be0662b457105fff9bfdc43a
parent30775f67e7d5e897d4d9aafe8ab84a5f65550ce4
net, syscall: remove BindToDevice API from UDPConn, IPConn

For now a pair of socket options SOL_SOCKET and SO_BINDTODEVICE
is supported on Linux only. I'd like to demote BindToDevice API
to syscall level because it's Linux dependent one.

In the near future, probably we may have a bit more portable
API that using IPROTO_IP/IPV6 level socket options to specify,
identify an inbound, outbound IP interface on incoming, outgoing
UDP and raw IP packets.

R=cw, golang-dev
CC=golang-dev
https://golang.org/cl/5447071
src/pkg/net/iprawsock_posix.go
src/pkg/net/sock.go
src/pkg/net/udpsock_posix.go
src/pkg/syscall/syscall_bsd.go
src/pkg/syscall/syscall_windows.go