Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscall, net: clean up socket stub for solaris
Solaris doesn't have struct ip_mreqn, instead it uses struct ip_mreq and struct group_req with struct sockaddr_storage. Also fixes incorrect SockaddrDatalink. Update #7399 LGTM=aram, iant R=golang-codereviews, aram, gobot, iant CC=golang-codereviews https://golang.org/cl/73920043
- Loading branch information
Showing
4 changed files
with
43 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright 2011 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 solaris | ||
|
||
package net | ||
|
||
import "syscall" | ||
|
||
func setIPv4MulticastInterface(fd *netFD, ifi *Interface) error { | ||
// See golang.org/issue/7399. | ||
return syscall.EINVAL | ||
} | ||
|
||
func setIPv4MulticastLoopback(fd *netFD, v bool) error { | ||
// See golang.org/issue/7399. | ||
return syscall.EINVAL | ||
} | ||
|
||
func joinIPv4Group(fd *netFD, ifi *Interface, ip IP) error { | ||
// See golang.org/issue/7399. | ||
return syscall.EINVAL | ||
} | ||
|
||
func setIPv6MulticastInterface(fd *netFD, ifi *Interface) error { | ||
// See golang.org/issue/7399. | ||
return syscall.EINVAL | ||
} | ||
|
||
func setIPv6MulticastLoopback(fd *netFD, v bool) error { | ||
// See golang.org/issue/7399. | ||
return syscall.EINVAL | ||
} | ||
|
||
func joinIPv6Group(fd *netFD, ifi *Interface, ip IP) error { | ||
// See golang.org/issue/7399. | ||
return syscall.EINVAL | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters