Lines Matching refs:address
123 test_gabn(const char *target, lwres_result_t expected, const char *address,
147 ret = inet_pton(AF_INET, address, addrbuf);
151 ret = inet_pton(AF_INET6, address, addrbuf);
162 memcmp(addr->address, addrbuf, len) == 0)
169 (void)inet_ntop(AF_INET, addr->address,
172 (void)inet_ntop(AF_INET6, addr->address,
175 target, outbuf, address);
223 test_gethostbyname(const char *name, const char *address) {
230 if (address == NULL && h_errno == HOST_NOT_FOUND)
244 ret = inet_pton(AF_INET, address, addrbuf);
251 "expected %s\n", name, outbuf, address);
259 test_gethostbyname2(const char *name, const char *address, int af) {
266 if (address == NULL && h_errno == HOST_NOT_FOUND)
284 ret = inet_pton(af, address, addrbuf);
299 "expected %s\n", name, outbuf, address);
307 test_getipnodebyname(const char *name, const char *address, int af,
323 if (address == NULL && error_num == HOST_NOT_FOUND)
341 ret = inet_pton(af, address, addrbuf);
357 "expected %s\n", name, outbuf, address);
367 test_gethostbyaddr(const char *address, int af, const char *name) {
376 ret = inet_pton(af, address, addrbuf);
386 address, hstrerror(h_errno));
391 address);
398 "expected %s\n", address, hp->h_name, name);
406 test_getipnodebyaddr(const char *address, int af, const char *name) {
416 ret = inet_pton(af, address, addrbuf);
426 address, error_num);
431 address);
438 "expected %s\n", address, hp->h_name, name);
449 const char *address)
468 if (address == NULL && ret == EAI_NODATA)
486 ret = inet_pton(af, address, addrbuf);
513 "expected %s\n", name, outbuf, address);
527 "expected %s\n", name, outbuf, address);
538 test_getnameinfo(const char *address, int af, const char *name) {
548 ret = inet_pton(AF_INET, address, &sin.sin_addr.s_addr);
558 ret = inet_pton(AF_INET6, address, sin6.sin6_addr.s6_addr);
576 address, ret);
581 address);
588 "expected NULL\n", address, host);
593 address, host, name);