Skip to content

Commit 7840d32

Browse files
author
Arno Gramatke
committed
fixed multicast operations for IPv6
1 parent 60a9d5b commit 7840d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GCD/GCDAsyncUdpSocket.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3419,7 +3419,7 @@ - (BOOL)performMulticastRequest:(int)requestType
34193419
imreq.ipv6mr_multiaddr = nativeGroup->sin6_addr;
34203420
imreq.ipv6mr_interface = [self indexOfInterfaceAddr6:interfaceAddr6];
34213421

3422-
int status = setsockopt(socket6FD, IPPROTO_IP, requestType, (const void *)&imreq, sizeof(imreq));
3422+
int status = setsockopt(socket6FD, IPPROTO_IPV6, requestType, (const void *)&imreq, sizeof(imreq));
34233423
if (status != 0)
34243424
{
34253425
err = [self errnoErrorWithReason:@"Error in setsockopt() function"];

0 commit comments

Comments
 (0)