vendor: Update golang.org/x/net/ipv6

This commit is contained in:
Jakob Borg
2017-03-04 07:28:11 +01:00
parent 566c348b00
commit 7260629bc0
81 changed files with 1296 additions and 820 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2013 The Go Authors. All rights reserved.
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -21,14 +21,14 @@ const (
sysIPV6_LEAVE_GROUP = 0xd
sysIPV6_PKTINFO = 0x13
sysSizeofSockaddrInet6 = 0x1c
sizeofSockaddrInet6 = 0x1c
sysSizeofIPv6Mreq = 0x14
sysSizeofIPv6Mtuinfo = 0x20
sysSizeofICMPv6Filter = 0
sizeofIPv6Mreq = 0x14
sizeofIPv6Mtuinfo = 0x20
sizeofICMPv6Filter = 0
)
type sysSockaddrInet6 struct {
type sockaddrInet6 struct {
Family uint16
Port uint16
Flowinfo uint32
@@ -36,17 +36,17 @@ type sysSockaddrInet6 struct {
Scope_id uint32
}
type sysIPv6Mreq struct {
type ipv6Mreq struct {
Multiaddr [16]byte /* in6_addr */
Interface uint32
}
type sysIPv6Mtuinfo struct {
Addr sysSockaddrInet6
type ipv6Mtuinfo struct {
Addr sockaddrInet6
Mtu uint32
}
type sysICMPv6Filter struct {
type icmpv6Filter struct {
// TODO(mikio): implement this
}
@@ -63,12 +63,12 @@ var (
}
)
func (sa *sysSockaddrInet6) setSockaddr(ip net.IP, i int) {
func (sa *sockaddrInet6) setSockaddr(ip net.IP, i int) {
sa.Family = syscall.AF_INET6
copy(sa.Addr[:], ip)
sa.Scope_id = uint32(i)
}
func (mreq *sysIPv6Mreq) setIfindex(i int) {
func (mreq *ipv6Mreq) setIfindex(i int) {
mreq.Interface = uint32(i)
}