blob: cd36739df3ab26cced921151da236988c41de331 [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.
// +build darwin dragonfly freebsd linux netbsd openbsd solaris windows
package ipv6
import (
func setsockoptIPMreq(s uintptr, opt *sockOpt, ifi *net.Interface, grp net.IP) error {
var mreq ipv6Mreq
copy(mreq.Multiaddr[:], grp)
if ifi != nil {
return os.NewSyscallError("setsockopt", setsockopt(s, opt.level,, unsafe.Pointer(&mreq), sizeofIPv6Mreq))