Lines Matching refs:af
124 lwres_uint32_t af)
145 if (af == LWRES_ADDRTYPE_V4) {
161 if (addr->family != af || addr->length != len ||
185 test_gnba(const char *target, lwres_uint32_t af, lwres_result_t expected,
193 if (af == LWRES_ADDRTYPE_V4) {
204 ret = lwres_getnamebyaddr(ctx, af, len, addrbuf, &res);
259 test_gethostbyname2(const char *name, const char *address, int af) {
264 hp = gethostbyname2(name, af);
280 if (af == AF_INET)
284 ret = inet_pton(af, address, addrbuf);
286 if (hp->h_addrtype != af) {
296 (void)inet_ntop(af, hp->h_addr_list[0],
307 test_getipnodebyname(const char *name, const char *address, int af,
321 hp = getipnodebyname(name, af, flags, &error_num);
337 if (af == AF_INET)
341 ret = inet_pton(af, address, addrbuf);
343 if (hp->h_addrtype != af) {
354 (void)inet_ntop(af, hp->h_addr_list[0],
367 test_gethostbyaddr(const char *address, int af, const char *name) {
372 if (af == AF_INET)
376 ret = inet_pton(af, address, addrbuf);
379 hp = gethostbyaddr(addrbuf, len, af);
406 test_getipnodebyaddr(const char *address, int af, const char *name) {
412 if (af == AF_INET)
416 ret = inet_pton(af, address, addrbuf);
419 hp = getipnodebyaddr(addrbuf, len, af, &error_num);
448 test_getaddrinfo(const char *name, int af, int v4ok, int v6ok,
482 if (af == AF_INET)
486 ret = inet_pton(af, address, addrbuf);
488 if (ai->ai_family != af) {
497 (void)inet_ntop(af, ai->ai_addr,
505 } else if (af == AF_INET) {
510 (void)inet_ntop(af, &sin->sin_addr.s_addr,
524 (void)inet_ntop(af, &sin6->sin6_addr.s6_addr,
538 test_getnameinfo(const char *address, int af, const char *name) {
546 if (af == AF_INET) {
567 sa->sa_family = af;