IPv6 Multicast Bug Fix #128

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

nischu7 commented Feb 10, 2013

No description provided.

@dvor dvor commented on the diff Dec 17, 2013

GCD/GCDAsyncUdpSocket.m
@@ -3417,7 +3417,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));
@dvor

dvor Dec 17, 2013

Collaborator

@nischu7 It isn't bug. IPPROTO_IP is dummy for IP and it (and only it) should be used for multicast. You can see man page for more info.

dvor closed this Dec 17, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment