Lines Matching defs:address

130 test_gabn(const char *target, lwres_result_t expected, const char *address,
154 ret = inet_pton(AF_INET, address, addrbuf);
158 ret = inet_pton(AF_INET6, address, addrbuf);
169 memcmp(addr->address, addrbuf, len) == 0)
176 (void)inet_ntop(AF_INET, addr->address,
179 (void)inet_ntop(AF_INET6, addr->address,
182 target, outbuf, address);
230 test_gethostbyname(const char *name, const char *address) {
237 if (address == NULL && h_errno == HOST_NOT_FOUND)
251 ret = inet_pton(AF_INET, address, addrbuf);
258 "expected %s\n", name, outbuf, address);
266 test_gethostbyname2(const char *name, const char *address, int af) {
273 if (address == NULL && h_errno == HOST_NOT_FOUND)
291 ret = inet_pton(af, address, addrbuf);
306 "expected %s\n", name, outbuf, address);
314 test_getipnodebyname(const char *name, const char *address, int af,
330 if (address == NULL && error_num == HOST_NOT_FOUND)
348 ret = inet_pton(af, address, addrbuf);
364 "expected %s\n", name, outbuf, address);
374 test_gethostbyaddr(const char *address, int af, const char *name) {
383 ret = inet_pton(af, address, addrbuf);
393 address, hstrerror(h_errno));
398 address);
405 "expected %s\n", address, hp->h_name, name);
413 test_getipnodebyaddr(const char *address, int af, const char *name) {
423 ret = inet_pton(af, address, addrbuf);
433 address, error_num);
438 address);
445 "expected %s\n", address, hp->h_name, name);
456 const char *address)
475 if (address == NULL && ret == EAI_NODATA)
493 ret = inet_pton(af, address, addrbuf);
520 "expected %s\n", name, outbuf, address);
534 "expected %s\n", name, outbuf, address);
545 test_getnameinfo(const char *address, int af, const char *name) {
555 ret = inet_pton(AF_INET, address, &sin.sin_addr.s_addr);
565 ret = inet_pton(AF_INET6, address, sin6.sin6_addr.s6_addr);
583 address, ret);
588 address);
595 "expected NULL\n", address, host);
600 address, host, name);