[SR-Users] listening at link local IPv6 address

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 30 10:04:31 CEST 2019


Hello,

can you try with latest master and set the next global parameter?

bind_ipv6_link_local=1

Along with the usual listen on a link local ipv6 address.

Let me know if it works.

Cheers,
Daniel

On 24.04.19 16:38, Juha Heinanen wrote:
> Daniel-Constantin Mierla writes:
>
>> OK, thanks for testing and feedback! Have you also tried for tcp/tls?
> Yes, with this kind of code in tcp_main.c:
>
> 	} else if(sock_info->address.af==AF_INET6){
> 		if (setsockopt(sock_info->socket, IPPROTO_IPV6, IPV6_TCLASS,
> 					(void*)&optval, sizeof(optval)) ==-1) {
> 			LM_WARN("setsockopt v6 tos: %s (%d)\n", strerror(errno), tos);
> 			/* continue since this is not critical */
> 		}
> 		LM_INFO("Setting scope of %s\n", sock_info->address_str.s);
> 		addr->sin6.sin6_scope_id =
> 			ipv6_get_netif_scope(sock_info->address_str.s);
> 	}
>
> -- Juha

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com




More information about the sr-users mailing list