Commit 39a5ed99 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

belle_sip_ip_address_to_addrinfo() is now bctbx_ip_address_to_addrinfo().

parent db76eba4
...@@ -436,7 +436,7 @@ void linphone_core_manager_destroy(LinphoneCoreManager* mgr) { ...@@ -436,7 +436,7 @@ void linphone_core_manager_destroy(LinphoneCoreManager* mgr) {
} }
int liblinphone_tester_ipv6_available(void){ int liblinphone_tester_ipv6_available(void){
struct addrinfo *ai=belle_sip_ip_address_to_addrinfo(AF_INET6,"2a01:e00::2",53); struct addrinfo *ai=bctbx_ip_address_to_addrinfo(AF_INET6,"2a01:e00::2",53);
if (ai){ if (ai){
struct sockaddr_storage ss; struct sockaddr_storage ss;
struct addrinfo src; struct addrinfo src;
...@@ -446,7 +446,7 @@ int liblinphone_tester_ipv6_available(void){ ...@@ -446,7 +446,7 @@ int liblinphone_tester_ipv6_available(void){
belle_sip_get_src_addr_for(ai->ai_addr,(socklen_t)ai->ai_addrlen,(struct sockaddr*) &ss,&slen,4444); belle_sip_get_src_addr_for(ai->ai_addr,(socklen_t)ai->ai_addrlen,(struct sockaddr*) &ss,&slen,4444);
src.ai_addr=(struct sockaddr*) &ss; src.ai_addr=(struct sockaddr*) &ss;
src.ai_addrlen=slen; src.ai_addrlen=slen;
belle_sip_addrinfo_to_ip(&src,localip, sizeof(localip),&port); bctbx_addrinfo_to_ip_address(&src,localip, sizeof(localip),&port);
freeaddrinfo(ai); freeaddrinfo(ai);
return strcmp(localip,"::1")!=0; return strcmp(localip,"::1")!=0;
} }
......
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