Changeset 1036


Ignore:
Timestamp:
Mar 3, 2007 2:15:41 AM (13 years ago)
Author:
bennylp
Message:

Fixed DNS test error because of recent changes in DNS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/test-pjsip/dns_test.c

    r974 r1036  
    5050    pj_dns_parsed_rr ans[4]; 
    5151    pj_dns_parsed_rr ar[5]; 
     52    pj_str_t tmp; 
    5253    unsigned i; 
    5354 
     
    123124    ar[0].dnsclass = PJ_DNS_CLASS_IN; 
    124125    ar[0].ttl = 3600; 
    125     ar[0].rdata.a.ip_addr = pj_str("1.1.1.1"); 
     126    ar[0].rdata.a.ip_addr = pj_inet_addr(pj_cstr(&tmp, "1.1.1.1")); 
    126127 
    127128    ar[1].name = pj_str("sip02.example.com"); 
     
    129130    ar[1].dnsclass = PJ_DNS_CLASS_IN; 
    130131    ar[1].ttl = 3600; 
    131     ar[1].rdata.a.ip_addr = pj_str("2.2.2.2"); 
     132    ar[1].rdata.a.ip_addr = pj_inet_addr(pj_cstr(&tmp, "2.2.2.2")); 
    132133 
    133134    ar[2].name = pj_str("sip03.example.com"); 
     
    135136    ar[2].dnsclass = PJ_DNS_CLASS_IN; 
    136137    ar[2].ttl = 3600; 
    137     ar[2].rdata.a.ip_addr = pj_str("3.3.3.3"); 
     138    ar[2].rdata.a.ip_addr = pj_inet_addr(pj_cstr(&tmp, "3.3.3.3")); 
    138139 
    139140    ar[3].name = pj_str("sip04.example.com"); 
     
    141142    ar[3].dnsclass = PJ_DNS_CLASS_IN; 
    142143    ar[3].ttl = 3600; 
    143     ar[3].rdata.a.ip_addr = pj_str("4.4.4.4"); 
     144    ar[3].rdata.a.ip_addr = pj_inet_addr(pj_cstr(&tmp, "4.4.4.4")); 
    144145 
    145146    ar[4].name = pj_str("example.com"); 
     
    147148    ar[4].dnsclass = PJ_DNS_CLASS_IN; 
    148149    ar[4].ttl = 3600; 
    149     ar[4].rdata.a.ip_addr = pj_str("5.5.5.5"); 
     150    ar[4].rdata.a.ip_addr = pj_inet_addr(pj_cstr(&tmp, "5.5.5.5")); 
    150151 
    151152    /*  
     
    257258    ans[0].dnsclass = PJ_DNS_CLASS_IN; 
    258259    ans[0].ttl = 3600; 
    259     ans[0].rdata.a.ip_addr = pj_str("6.6.6.6"); 
     260    ans[0].rdata.a.ip_addr = pj_inet_addr(pj_cstr(&tmp, "6.6.6.6")); 
    260261 
    261262    pj_dns_resolver_add_entry( resv, &pkt, PJ_FALSE); 
     
    266267    ans[0].dnsclass = PJ_DNS_CLASS_IN; 
    267268    ans[0].ttl = 3600; 
    268     ans[0].rdata.a.ip_addr = pj_str("7.7.7.7"); 
     269    ans[0].rdata.a.ip_addr = pj_inet_addr(pj_cstr(&tmp, "7.7.7.7")); 
    269270 
    270271    pj_dns_resolver_add_entry( resv, &pkt, PJ_FALSE); 
Note: See TracChangeset for help on using the changeset viewer.