summaryrefslogtreecommitdiff
path: root/mbone/sdr/patches/patch-ao
blob: 3a7c3ead9a115f7f495fc8aaf094832422c43656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-ao,v 1.2 1999/10/28 02:40:24 hubertf Exp $

--- common/net_udp.c.original	Mon Oct  4 15:10:55 1999
+++ common/net_udp.c	Mon Oct  4 15:12:16 1999
@@ -341,8 +341,8 @@
 		imr.ipv6mr_multiaddr = s->addr6;
 		imr.ipv6mr_interface = 0;
 
-		if (SETSOCKOPT(s->fd, IPPROTO_IPV6, IPV6_ADD_MEMBERSHIP, (char *) &imr, sizeof(struct ipv6_mreq)) != 0) {
-			socket_error("setsockopt IPV6_ADD_MEMBERSHIP");
+		if (SETSOCKOPT(s->fd, IPPROTO_IPV6, IPV6_JOIN_GROUP, (char *) &imr, sizeof(struct ipv6_mreq)) != 0) {
+			socket_error("setsockopt IPV6_JOIN_GROUP");
 			abort();
 		}
 		if (SETSOCKOPT(s->fd, IPPROTO_IPV6, IPV6_MULTICAST_LOOP, (char *) &loop, sizeof(loop)) != 0) {