Changeset 1035
- Timestamp:
- Mar 3, 2007 2:13:55 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/test-pjsip/dns_test.c
r974 r1035 50 50 pj_dns_parsed_rr ans[4]; 51 51 pj_dns_parsed_rr ar[5]; 52 pj_str_t tmp; 52 53 unsigned i; 53 54 … … 123 124 ar[0].dnsclass = PJ_DNS_CLASS_IN; 124 125 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")); 126 127 127 128 ar[1].name = pj_str("sip02.example.com"); … … 129 130 ar[1].dnsclass = PJ_DNS_CLASS_IN; 130 131 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")); 132 133 133 134 ar[2].name = pj_str("sip03.example.com"); … … 135 136 ar[2].dnsclass = PJ_DNS_CLASS_IN; 136 137 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")); 138 139 139 140 ar[3].name = pj_str("sip04.example.com"); … … 141 142 ar[3].dnsclass = PJ_DNS_CLASS_IN; 142 143 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")); 144 145 145 146 ar[4].name = pj_str("example.com"); … … 147 148 ar[4].dnsclass = PJ_DNS_CLASS_IN; 148 149 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")); 150 151 151 152 /* … … 257 258 ans[0].dnsclass = PJ_DNS_CLASS_IN; 258 259 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")); 260 261 261 262 pj_dns_resolver_add_entry( resv, &pkt, PJ_FALSE); … … 266 267 ans[0].dnsclass = PJ_DNS_CLASS_IN; 267 268 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")); 269 270 270 271 pj_dns_resolver_add_entry( resv, &pkt, PJ_FALSE);
Note: See TracChangeset
for help on using the changeset viewer.