Commit 0afbc3c3 authored by Marian Durkovic's avatar Marian Durkovic

Sync IPv4 and IPv6 multicast debugs

parent 39401d06
...@@ -266,7 +266,7 @@ static int OpenUDP( vlc_object_t * p_this ) ...@@ -266,7 +266,7 @@ static int OpenUDP( vlc_object_t * p_this )
p_sin6 = (struct sockaddr_in6 *)&imr.gsr_source; p_sin6 = (struct sockaddr_in6 *)&imr.gsr_source;
p_sin6->sin6_addr = sock.sin6_addr; p_sin6->sin6_addr = sock.sin6_addr;
msg_Dbg( p_this, "IPV6_ADD_SOURCE_MEMBERSHIP multicast request" ); msg_Dbg( p_this, "MCAST_JOIN_SOURCE_GROUP multicast request" );
if( setsockopt( i_handle, IPPROTO_IPV6, MCAST_JOIN_SOURCE_GROUP, if( setsockopt( i_handle, IPPROTO_IPV6, MCAST_JOIN_SOURCE_GROUP,
(char *)&imr, sizeof(struct group_source_req) ) == -1 ) (char *)&imr, sizeof(struct group_source_req) ) == -1 )
{ {
...@@ -282,6 +282,7 @@ static int OpenUDP( vlc_object_t * p_this ) ...@@ -282,6 +282,7 @@ static int OpenUDP( vlc_object_t * p_this )
imr.ipv6mr_interface = sock.sin6_scope_id; imr.ipv6mr_interface = sock.sin6_scope_id;
imr.ipv6mr_multiaddr = sock.sin6_addr; imr.ipv6mr_multiaddr = sock.sin6_addr;
msg_Dbg( p_this, "IPV6_JOIN_GROUP multicast request" );
res = setsockopt(i_handle, IPPROTO_IPV6, IPV6_JOIN_GROUP, (void*) &imr, res = setsockopt(i_handle, IPPROTO_IPV6, IPV6_JOIN_GROUP, (void*) &imr,
#if defined(WIN32) #if defined(WIN32)
sizeof(imr) + 4); /* Doesn't work without this */ sizeof(imr) + 4); /* Doesn't work without this */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment