1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build aix darwin dragonfly freebsd linux netbsd openbsd windows
11 // SetsockoptIPMreq wraps the setsockopt network call with an IPMreq argument.
12 func (fd
*FD
) SetsockoptIPMreq(level
, name
int, mreq
*syscall
.IPMreq
) error
{
13 if err
:= fd
.incref(); err
!= nil {
17 return syscall
.SetsockoptIPMreq(fd
.Sysfd
, level
, name
, mreq
)
20 // SetsockoptIPv6Mreq wraps the setsockopt network call with an IPv6Mreq argument.
21 func (fd
*FD
) SetsockoptIPv6Mreq(level
, name
int, mreq
*syscall
.IPv6Mreq
) error
{
22 if err
:= fd
.incref(); err
!= nil {
26 return syscall
.SetsockoptIPv6Mreq(fd
.Sysfd
, level
, name
, mreq
)