Ignore:
Timestamp:
Jun 21, 2016 6:55:10 AM (8 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_server.c

    r4537 r5350  
    312312        size -= 6; 
    313313 
     314    } else if (rr->type == PJ_DNS_TYPE_AAAA) { 
     315 
     316        if (size < 18) 
     317            return -1; 
     318 
     319        /* RDLEN is 16 */ 
     320        write16(p, 16); 
     321 
     322        /* Address */ 
     323        pj_memcpy(p+2, &rr->rdata.aaaa.ip_addr, 16); 
     324 
     325        p += 18; 
     326        size -= 18; 
     327     
    314328    } else if (rr->type == PJ_DNS_TYPE_CNAME || 
    315329               rr->type == PJ_DNS_TYPE_NS || 
Note: See TracChangeset for help on using the changeset viewer.