Ignore:
Timestamp:
May 20, 2016 4:17:00 AM (8 years ago)
Author:
ming
Message:

Re #1922: Replace IPv4 specific APIs as per Apple's recommendations

https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/UnderstandingandPreparingfortheIPv6Transition/UnderstandingandPreparingfortheIPv6Transition.html#//apple_ref/doc/uid/TP40010220-CH213-SW27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/dns_dump.c

    r5228 r5311  
    9191    const pj_str_t *name = &rr->name; 
    9292    char ttl_words[32]; 
     93    char addr[PJ_INET6_ADDRSTRLEN]; 
    9394 
    9495    if (name->slen == 0) 
     
    118119    } else if (rr->type == PJ_DNS_TYPE_A) { 
    119120        PJ_LOG(3,(THIS_FILE, "    IP address: %s", 
    120                   pj_inet_ntoa(rr->rdata.a.ip_addr))); 
     121                  pj_inet_ntop2(pj_AF_INET(), &rr->rdata.a.ip_addr, 
     122                                addr, sizeof(addr)))); 
    121123    } else if (rr->type == PJ_DNS_TYPE_AAAA) { 
    122         char addr[PJ_INET6_ADDRSTRLEN]; 
    123124        PJ_LOG(3,(THIS_FILE, "    IPv6 address: %s", 
    124125                  pj_inet_ntop2(pj_AF_INET6(), &rr->rdata.aaaa.ip_addr, 
Note: See TracChangeset for help on using the changeset viewer.