• Home
  • Raw
  • Download

Lines Matching refs:af

512 gethostbyname2(const char *name, int af)  in gethostbyname2()  argument
514 return android_gethostbynameforiface(name, af, NULL); in gethostbyname2()
518 android_gethostbynameforiface(const char *name, int af, const char *iface) in android_gethostbynameforiface() argument
525 hp = gethostbyname_internal(name, af, res, iface); in android_gethostbynameforiface()
621 gethostbyname_internal_real(const char *name, int af, res_state res) in gethostbyname_internal_real() argument
637 switch (af) { in gethostbyname_internal_real()
650 rs->host.h_addrtype = af; in gethostbyname_internal_real()
675 if (inet_pton(af, name, in gethostbyname_internal_real()
709 if (inet_pton(af, name, in gethostbyname_internal_real()
734 default_dns_files, name, strlen(name), af) != NS_SUCCESS) { in gethostbyname_internal_real()
744 gethostbyname_internal(const char *name, int af, res_state res, const char *iface) in gethostbyname_internal() argument
752 return gethostbyname_internal_real(name, af, res); in gethostbyname_internal()
763 af) < 0) { in gethostbyname_internal()
783 socklen_t len, int af, const char* iface) in android_gethostbyaddrforiface_proxy() argument
791 const char * addrStr = inet_ntop(af, addr, buf, sizeof(buf)); in android_gethostbyaddrforiface_proxy()
795 addrStr, len, af, iface == NULL ? "^" : iface) < 0) { in android_gethostbyaddrforiface_proxy()
813 socklen_t len, int af, const char* iface) in android_gethostbyaddrforiface_real() argument
826 if (af == AF_INET6 && len == IN6ADDRSZ && in android_gethostbyaddrforiface_real()
832 if (af == AF_INET6 && len == IN6ADDRSZ && in android_gethostbyaddrforiface_real()
838 af = AF_INET; in android_gethostbyaddrforiface_real()
841 switch (af) { in android_gethostbyaddrforiface_real()
861 default_dns_files, uaddr, len, af, iface) != NS_SUCCESS) in android_gethostbyaddrforiface_real()
868 android_gethostbyaddrforiface(const void *addr, socklen_t len, int af, const char* iface) in android_gethostbyaddrforiface() argument
873 return android_gethostbyaddrforiface_proxy(addr, len, af, iface); in android_gethostbyaddrforiface()
875 return android_gethostbyaddrforiface_real(addr,len, af,iface); in android_gethostbyaddrforiface()
880 gethostbyaddr(const void *addr, socklen_t len, int af) in gethostbyaddr() argument
882 return android_gethostbyaddrforiface(addr, len, af, NULL); in gethostbyaddr()
915 int af, len; in _gethtent() local
936 af = AF_INET6; in _gethtent()
945 af = AF_INET6; in _gethtent()
948 af = AF_INET; in _gethtent()
956 if (rs->host.h_addrtype != 0 && rs->host.h_addrtype != af) in _gethtent()
964 rs->host.h_addrtype = af; in _gethtent()
992 int af; in _gethtbyname() local
998 af = va_arg(ap, int); in _gethtbyname()
1013 hp = _gethtbyname2(name, af); in _gethtbyname()
1024 _gethtbyname2(const char *name, int af) in _gethtbyname2() argument
1038 if (p->h_addrtype != af) in _gethtbyname2()
1119 int len, af; in _gethtbyaddr() local
1126 af = va_arg(ap, int); in _gethtbyaddr()
1129 rs->host.h_addrtype = af; in _gethtbyaddr()
1133 if (p->h_addrtype == af && !memcmp(p->h_addr, addr, in _gethtbyaddr()
1254 int af; in _dns_gethtbyname() local
1261 af = va_arg(ap, int); in _dns_gethtbyname()
1263 switch (af) { in _dns_gethtbyname()
1315 int len, af, advance; in _dns_gethtbyaddr() local
1324 af = va_arg(ap, int); in _dns_gethtbyaddr()
1327 switch (af) { in _dns_gethtbyaddr()
1388 hp->h_addrtype = af; in _dns_gethtbyaddr()
1393 if (af == AF_INET && (res->options & RES_USE_INET6)) { in _dns_gethtbyaddr()