Skip to content
Snippets Groups Projects
Commit a2381830 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

peerdiscovery: don't assign IPv6 multicast interface

parent 73827cd3
Branches
Tags
No related merge requests found
......@@ -121,10 +121,10 @@ PeerDiscovery::socketJoinMulticast(int sockfd, sa_family_t family)
case AF_INET6: {
ipv6_mreq config_ipv6;
unsigned int outif = 0;
/* unsigned int outif = 0;
if (setsockopt(sockfd, IPPROTO_IPV6, IPV6_MULTICAST_IF, &outif, sizeof(outif)) < 0) {
//std::cerr << "Can't assign multicast interface: " << strerror(errno) << std::endl;
}
std::cerr << "Can't assign multicast interface: " << strerror(errno) << std::endl;
} */
unsigned int ttl6 = 20;
if( setsockopt(sockfd, IPPROTO_IPV6, IPV6_MULTICAST_HOPS, &ttl6, sizeof( ttl6 )) < 0 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment