Ignore:
Timestamp:
Jun 21, 2016 6:55:10 AM (6 years ago)
Author:
riza
Message:

Re #1933: Update pjnath-test for IPv6 support.

File:
1 edited

Legend:

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

    r5183 r5350  
    750750} 
    751751 
     752 
     753PJ_DEF(void) pj_dns_init_aaaa_rr(pj_dns_parsed_rr *rec, 
     754                                 const pj_str_t *res_name, 
     755                                 unsigned dnsclass, 
     756                                 unsigned ttl, 
     757                                 const pj_in6_addr *ip_addr) 
     758{ 
     759    pj_bzero(rec, sizeof(*rec)); 
     760    rec->name = *res_name; 
     761    rec->type = PJ_DNS_TYPE_AAAA; 
     762    rec->dnsclass = (pj_uint16_t) dnsclass; 
     763    rec->ttl = ttl; 
     764    rec->rdata.aaaa.ip_addr = *ip_addr; 
     765} 
     766 
Note: See TracChangeset for help on using the changeset viewer.