aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/net/udpsock.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/udpsock.go')
-rw-r--r--libgo/go/net/udpsock.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/net/udpsock.go b/libgo/go/net/udpsock.go
index ec2bcfa..571e099 100644
--- a/libgo/go/net/udpsock.go
+++ b/libgo/go/net/udpsock.go
@@ -259,6 +259,9 @@ func ListenUDP(network string, laddr *UDPAddr) (*UDPConn, error) {
// ListenMulticastUDP is just for convenience of simple, small
// applications. There are golang.org/x/net/ipv4 and
// golang.org/x/net/ipv6 packages for general purpose uses.
+//
+// Note that ListenMulticastUDP will set the IP_MULTICAST_LOOP socket option
+// to 0 under IPPROTO_IP, to disable loopback of multicast packets.
func ListenMulticastUDP(network string, ifi *Interface, gaddr *UDPAddr) (*UDPConn, error) {
switch network {
case "udp", "udp4", "udp6":