|
|
@@ -2,53 +2,52 @@
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
+// +build dragonfly plan9 solaris
|
|
|
+
|
|
|
package ipv6
|
|
|
|
|
|
-import (
|
|
|
- "net"
|
|
|
- "syscall"
|
|
|
-)
|
|
|
+import "net"
|
|
|
|
|
|
// MulticastHopLimit returns the hop limit field value for outgoing
|
|
|
// multicast packets.
|
|
|
func (c *dgramOpt) MulticastHopLimit() (int, error) {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return 0, syscall.EPLAN9
|
|
|
+ return 0, errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// SetMulticastHopLimit sets the hop limit field value for future
|
|
|
// outgoing multicast packets.
|
|
|
func (c *dgramOpt) SetMulticastHopLimit(hoplim int) error {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return syscall.EPLAN9
|
|
|
+ return errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// MulticastInterface returns the default interface for multicast
|
|
|
// packet transmissions.
|
|
|
func (c *dgramOpt) MulticastInterface() (*net.Interface, error) {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return nil, syscall.EPLAN9
|
|
|
+ return nil, errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// SetMulticastInterface sets the default interface for future
|
|
|
// multicast packet transmissions.
|
|
|
func (c *dgramOpt) SetMulticastInterface(ifi *net.Interface) error {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return syscall.EPLAN9
|
|
|
+ return errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// MulticastLoopback reports whether transmitted multicast packets
|
|
|
// should be copied and send back to the originator.
|
|
|
func (c *dgramOpt) MulticastLoopback() (bool, error) {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return false, syscall.EPLAN9
|
|
|
+ return false, errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// SetMulticastLoopback sets whether transmitted multicast packets
|
|
|
// should be copied and send back to the originator.
|
|
|
func (c *dgramOpt) SetMulticastLoopback(on bool) error {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return syscall.EPLAN9
|
|
|
+ return errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// JoinGroup joins the group address group on the interface ifi.
|
|
|
@@ -57,13 +56,13 @@ func (c *dgramOpt) SetMulticastLoopback(on bool) error {
|
|
|
// platforms and sometimes it might require routing configuration.
|
|
|
func (c *dgramOpt) JoinGroup(ifi *net.Interface, group net.Addr) error {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return syscall.EPLAN9
|
|
|
+ return errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// LeaveGroup leaves the group address group on the interface ifi.
|
|
|
func (c *dgramOpt) LeaveGroup(ifi *net.Interface, group net.Addr) error {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return syscall.EPLAN9
|
|
|
+ return errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// Checksum reports whether the kernel will compute, store or verify a
|
|
|
@@ -72,7 +71,7 @@ func (c *dgramOpt) LeaveGroup(ifi *net.Interface, group net.Addr) error {
|
|
|
// field is located.
|
|
|
func (c *dgramOpt) Checksum() (on bool, offset int, err error) {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return false, 0, syscall.EPLAN9
|
|
|
+ return false, 0, errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// SetChecksum enables the kernel checksum processing. If on is ture,
|
|
|
@@ -80,17 +79,17 @@ func (c *dgramOpt) Checksum() (on bool, offset int, err error) {
|
|
|
// checksum field is located.
|
|
|
func (c *dgramOpt) SetChecksum(on bool, offset int) error {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return syscall.EPLAN9
|
|
|
+ return errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// ICMPFilter returns an ICMP filter.
|
|
|
func (c *dgramOpt) ICMPFilter() (*ICMPFilter, error) {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return nil, syscall.EPLAN9
|
|
|
+ return nil, errOpNoSupport
|
|
|
}
|
|
|
|
|
|
// SetICMPFilter deploys the ICMP filter.
|
|
|
func (c *dgramOpt) SetICMPFilter(f *ICMPFilter) error {
|
|
|
// TODO(mikio): Implement this
|
|
|
- return syscall.EPLAN9
|
|
|
+ return errOpNoSupport
|
|
|
}
|