blob: c03c731342f17e4c97bfcd763d7111282351c4d0 [file] [log] [blame]
// 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.
package ipv6
import (
func setsockoptIPMreq(fd syscall.Handle, opt *sockOpt, ifi *net.Interface, grp net.IP) error {
var mreq sysIPv6Mreq
copy(mreq.Multiaddr[:], grp)
if ifi != nil {
return os.NewSyscallError("setsockopt", syscall.Setsockopt(fd, int32(opt.level), int32(, (*byte)(unsafe.Pointer(&mreq)), sysSizeofIPv6Mreq))