Skip to content

Commit

Permalink
Merge pull request #214 from MeckiCologne/master
Browse files Browse the repository at this point in the history
fixed multicast operations for IPv6
  • Loading branch information
dvor committed Jan 26, 2014
2 parents 60a9d5b + 7840d32 commit 3b333dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GCD/GCDAsyncUdpSocket.m
Original file line number Diff line number Diff line change
Expand Up @@ -3419,7 +3419,7 @@ - (BOOL)performMulticastRequest:(int)requestType
imreq.ipv6mr_multiaddr = nativeGroup->sin6_addr;
imreq.ipv6mr_interface = [self indexOfInterfaceAddr6:interfaceAddr6];

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

0 comments on commit 3b333dd

Please sign in to comment.