| // 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. |
| sysSockoptUnicastHopLimit = 0x4 |
| sysSockoptMulticastHopLimit = 0xa |
| sysSockoptMulticastInterface = 0x9 |
| sysSockoptMulticastLoopback = 0xb |
| sysSockoptJoinGroup = 0xc |
| sysSockoptLeaveGroup = 0xd |
| sysSockoptPacketInfo = 0x13 |
| func setSockaddr(sa *syscall.RawSockaddrInet6, ip net.IP, ifindex int) { |
| sa.Family = syscall.AF_INET6 |
| sa.Scope_id = uint32(ifindex) |