- Timestamp:
- Jan 8, 2010 5:12:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_resolve.c
r3049 r3053 232 232 /* Target is an IP address, no need to resolve */ 233 233 if (ip_addr_ver == 4) { 234 svr_addr.entry[0].addr.addr.sa_family = pj_AF_INET(); 234 pj_sockaddr_init(pj_AF_INET(), &svr_addr.entry[0].addr, 235 NULL, 0); 235 236 pj_inet_aton(&target->addr.host, 236 237 &svr_addr.entry[0].addr.ipv4.sin_addr); 237 238 } else { 238 svr_addr.entry[0].addr.addr.sa_family = pj_AF_INET6(); 239 pj_sockaddr_init(pj_AF_INET6(), &svr_addr.entry[0].addr, 240 NULL, 0); 239 241 pj_inet_pton(pj_AF_INET6(), &target->addr.host, 240 &svr_addr.entry[0].addr.ipv4.sin_addr);242 &svr_addr.entry[0].addr.ipv6.sin6_addr); 241 243 } 242 244 } else {
Note: See TracChangeset
for help on using the changeset viewer.