sockopt_stub.go (1240B)
1 // Copyright 2012 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. 4 5 //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !solaris && !windows && !zos 6 // +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris,!windows,!zos 7 8 package ipv4 9 10 import ( 11 "net" 12 13 "golang.org/x/net/bpf" 14 "golang.org/x/net/internal/socket" 15 ) 16 17 func (so *sockOpt) getMulticastInterface(c *socket.Conn) (*net.Interface, error) { 18 return nil, errNotImplemented 19 } 20 21 func (so *sockOpt) setMulticastInterface(c *socket.Conn, ifi *net.Interface) error { 22 return errNotImplemented 23 } 24 25 func (so *sockOpt) getICMPFilter(c *socket.Conn) (*ICMPFilter, error) { 26 return nil, errNotImplemented 27 } 28 29 func (so *sockOpt) setICMPFilter(c *socket.Conn, f *ICMPFilter) error { 30 return errNotImplemented 31 } 32 33 func (so *sockOpt) setGroup(c *socket.Conn, ifi *net.Interface, grp net.IP) error { 34 return errNotImplemented 35 } 36 37 func (so *sockOpt) setSourceGroup(c *socket.Conn, ifi *net.Interface, grp, src net.IP) error { 38 return errNotImplemented 39 } 40 41 func (so *sockOpt) setBPF(c *socket.Conn, f []bpf.RawInstruction) error { 42 return errNotImplemented 43 }