Lines Matching defs:addr_list

112     rhostent->addr_list = talloc_array(rhostent, struct resolv_addr *, 2);
114 !rhostent->addr_list) {
118 rhostent->addr_list[0] = talloc_zero(rhostent->addr_list,
120 if (!rhostent->addr_list[0]) {
123 rhostent->addr_list[0]->ipaddr = talloc_array(rhostent->addr_list[0],
126 if (!rhostent->addr_list[0]->ipaddr) {
132 rhostent->addr_list[0]->ipaddr);
136 rhostent->addr_list[0]->ipaddr);
142 rhostent->addr_list[0]->ttl = RESOLV_DEFAULT_TTL;
143 rhostent->addr_list[1] = NULL;
167 char *addr_list[] = { (char *) &addr_2, (char *) &addr_1, NULL };
170 sizeof(addr_1), addr_list
187 fail_if(memcmp(rhe->addr_list[0]->ipaddr, &addr_1, sizeof(addr_1)));
188 fail_if(rhe->addr_list[0]->ttl != ttl_1);
189 fail_if(memcmp(rhe->addr_list[1]->ipaddr, &addr_2, sizeof(addr_2)));
190 fail_if(rhe->addr_list[1]->ttl != ttl_2);
191 fail_if(rhe->addr_list[2] != NULL);
202 fail_if(memcmp(rhe->addr_list[0]->ipaddr, &addr_2, sizeof(addr_1)));
203 fail_if(rhe->addr_list[0]->ttl != RESOLV_DEFAULT_TTL);
204 fail_if(memcmp(rhe->addr_list[1]->ipaddr, &addr_1, sizeof(addr_2)));
205 fail_if(rhe->addr_list[1]->ttl != RESOLV_DEFAULT_TTL);
206 fail_if(rhe->addr_list[2] != NULL);
234 rhe->addr_list[0]->ipaddr);
250 rhe->addr_list[0]->ipaddr);
284 for (i = 0; rhostent->addr_list[i]; i++) {
287 rhostent->addr_list[i]->ipaddr,
354 for (i = 0; rhostent->addr_list[i]; i++) {
356 inet_ntop(rhostent->family, rhostent->addr_list[i]->ipaddr,
485 for (i=0; rhostent->addr_list[i]; i++) {
487 rhostent->addr_list[i]->ipaddr,
490 addr_buf, rhostent->addr_list[i]->ttl);