mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-12 23:40:04 +00:00
Fix sofia build on non-ipv6 hosts
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12018 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0919f6c9cb
commit
60671872ef
@ -2526,9 +2526,9 @@ soa_init_sdp_connection_with_session(soa_session_t *ss,
|
||||
break;
|
||||
else if (!li6)
|
||||
li6 = li; /* Best IP6 address */
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
else if (li->li_family == AF_INET) {
|
||||
if (li->li_family == AF_INET) {
|
||||
if (ip4 >= ip6)
|
||||
break;
|
||||
else if (!li4)
|
||||
|
@ -1526,7 +1526,6 @@ sres_sip_process_numeric(sres_sip_t *srs)
|
||||
char const *target = srs->srs_target;
|
||||
su_addrinfo_t ai[1];
|
||||
su_sockaddr_t su[1];
|
||||
char buffer[64];
|
||||
int i;
|
||||
|
||||
memset(ai, 0, (sizeof ai));
|
||||
@ -1551,6 +1550,7 @@ sres_sip_process_numeric(sres_sip_t *srs)
|
||||
}
|
||||
}
|
||||
else if (host_is_ip6_reference(target)) {
|
||||
char buffer[64];
|
||||
size_t len = strlen(target) - 2;
|
||||
|
||||
ai->ai_addr = memset(su, 0, (sizeof su->su_sin6));
|
||||
|
@ -96,7 +96,10 @@ static int localinfo6(su_localinfo_t const *, su_localinfo_t **);
|
||||
#endif
|
||||
|
||||
static int li_scope4(uint32_t ip4);
|
||||
|
||||
#ifdef SU_HAVE_IN6
|
||||
static int li_scope6(struct in6_addr const *ip6);
|
||||
#endif
|
||||
|
||||
#if !SU_LOCALINFO_TEST
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user