Lines Matching refs:af
521 _gethostbydnsname(const char *name, int af) in _gethostbydnsname() argument
533 switch (af) { in _gethostbydnsname()
548 host.h_addrtype = af; in _gethostbydnsname()
573 if (inet_pton(af, name, host_addr) <= 0) { in _gethostbydnsname()
606 if (inet_pton(af, name, host_addr) <= 0) { in _gethostbydnsname()
635 _gethostbydnsaddr(const char *addr, int len, int af) in _gethostbydnsaddr() argument
655 if (af == AF_INET6 && len == IN6ADDRSZ && in _gethostbydnsaddr()
661 af = AF_INET; in _gethostbydnsaddr()
664 switch (af) { in _gethostbydnsaddr()
681 switch (af) { in _gethostbydnsaddr()
709 if (af == AF_INET) { in _gethostbydnsaddr()
744 hp->h_addrtype = af; in _gethostbydnsaddr()
749 if (af == AF_INET && (_res.options & RES_USE_INET6)) { in _gethostbydnsaddr()