• Mikio Hara's avatar
    ipv6: add {Read,Write}Batch methods to PacketConn · 48359f4f
    Mikio Hara authored
    This change provides message IO functionality that may support the
    construction of modern datagram transport protocols.
    
    The modern datagram transport protocols on a multihomed node basically
    need to control each packet path for traffic engineering by using
    information belongs to network- or link-layer implementation. In
    addtion, it's desirable to be able to do simultaneous transmission
    across multiple network- or link-layer adjacencies wihtout any
    additional cost.
    
    The ReadBatch and WriteBatch methods of PacketConn can be used to read
    and write an IO message that contains the information of network- or
    link-layer implementation, and read and write a batch of IO messages
    on Linux. The Marshal and Parse methods of ControlMessage can help to
    marshal and parse information contained in IO messages.
    
    Updates golang/go#3661.
    
    Change-Id: I94484e2e135f4969ddf5c2548bf6be0cc16888bf
    Reviewed-on: https://go-review.googlesource.com/38276
    Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    48359f4f
Name
Last commit
Last update
..
batch.go Loading commit data...
bpf_test.go Loading commit data...
control.go Loading commit data...
control_rfc2292_unix.go Loading commit data...
control_rfc3542_unix.go Loading commit data...
control_stub.go Loading commit data...
control_unix.go Loading commit data...
control_windows.go Loading commit data...
defs_darwin.go Loading commit data...
defs_dragonfly.go Loading commit data...
defs_freebsd.go Loading commit data...
defs_linux.go Loading commit data...
defs_netbsd.go Loading commit data...
defs_openbsd.go Loading commit data...
defs_solaris.go Loading commit data...
dgramopt.go Loading commit data...
doc.go Loading commit data...
endpoint.go Loading commit data...
example_test.go Loading commit data...
gen.go Loading commit data...
genericopt.go Loading commit data...
header.go Loading commit data...
header_test.go Loading commit data...
helper.go Loading commit data...
iana.go Loading commit data...
icmp.go Loading commit data...
icmp_bsd.go Loading commit data...
icmp_linux.go Loading commit data...
icmp_solaris.go Loading commit data...
icmp_stub.go Loading commit data...
icmp_test.go Loading commit data...
icmp_windows.go Loading commit data...
mocktransponder_test.go Loading commit data...
multicast_test.go Loading commit data...
multicastlistener_test.go Loading commit data...
multicastsockopt_test.go Loading commit data...
payload.go Loading commit data...
payload_cmsg.go Loading commit data...
payload_cmsg_go1_8.go Loading commit data...
payload_cmsg_go1_9.go Loading commit data...
payload_nocmsg.go Loading commit data...
readwrite_go1_8_test.go Loading commit data...
readwrite_go1_9_test.go Loading commit data...
readwrite_test.go Loading commit data...
sockopt.go Loading commit data...
sockopt_posix.go Loading commit data...
sockopt_stub.go Loading commit data...
sockopt_test.go Loading commit data...
sys_asmreq.go Loading commit data...
sys_asmreq_stub.go Loading commit data...
sys_bpf.go Loading commit data...
sys_bpf_stub.go Loading commit data...
sys_bsd.go Loading commit data...
sys_darwin.go Loading commit data...
sys_freebsd.go Loading commit data...
sys_linux.go Loading commit data...
sys_solaris.go Loading commit data...
sys_ssmreq.go Loading commit data...
sys_ssmreq_stub.go Loading commit data...
sys_stub.go Loading commit data...
sys_windows.go Loading commit data...
unicast_test.go Loading commit data...
unicastsockopt_test.go Loading commit data...
zsys_darwin.go Loading commit data...
zsys_dragonfly.go Loading commit data...
zsys_freebsd_386.go Loading commit data...
zsys_freebsd_amd64.go Loading commit data...
zsys_freebsd_arm.go Loading commit data...
zsys_linux_386.go Loading commit data...
zsys_linux_amd64.go Loading commit data...
zsys_linux_arm.go Loading commit data...
zsys_linux_arm64.go Loading commit data...
zsys_linux_mips.go Loading commit data...
zsys_linux_mips64.go Loading commit data...
zsys_linux_mips64le.go Loading commit data...
zsys_linux_mipsle.go Loading commit data...
zsys_linux_ppc.go Loading commit data...
zsys_linux_ppc64.go Loading commit data...
zsys_linux_ppc64le.go Loading commit data...
zsys_linux_s390x.go Loading commit data...
zsys_netbsd.go Loading commit data...
zsys_openbsd.go Loading commit data...
zsys_solaris.go Loading commit data...