Lines Matching full:servname
259 "hostname nor servname provided, or not known", /* EAI_NONAME */
260 "servname not supported for ai_socktype", /* EAI_SERVICE */
409 const char *hostname, const char *servname,
426 (servname != NULL &&
427 strcspn(servname, " \n\r\t^'\"") != strlen(servname))) {
452 servname == NULL ? "^" : servname,
578 getaddrinfo(const char *hostname, const char *servname,
581 return android_getaddrinfoforiface(hostname, servname, hints, NULL, 0, res);
585 android_getaddrinfoforiface(const char *hostname, const char *servname,
598 /* servname is allowed to be NULL */
613 if (hostname == NULL && servname == NULL)
655 * check for special cases. (1) numeric servname is disallowed if
656 * socktype/protocol are left unspecified. (2) servname is disallowed
673 error = get_portmatch(pai, servname);
705 error = explore_null(pai, servname, &cur->ai_next);
707 error = explore_numeric_scope(pai, hostname, servname,
735 return android_getaddrinfo_proxy(hostname, servname, hints, res, iface);
764 error = explore_fqdn(pai, hostname, servname,
798 const char *servname, struct addrinfo **res, const char *iface, int mark)
812 /* servname may be NULL */
818 * if the servname does not match socktype/protocol, ignore it.
820 if (get_portmatch(pai, servname) != 0)
837 GET_PORT(cur, servname);
859 explore_null(const struct addrinfo *pai, const char *servname,
869 /* servname may be NULL */
888 * if the servname does not match socktype/protocol, ignore it.
890 if (get_portmatch(pai, servname) != 0)
902 GET_PORT(cur->ai_next, servname);
908 GET_PORT(cur->ai_next, servname);
926 const char *servname, struct addrinfo **res, const char *canonname)
936 /* servname may be NULL */
944 * if the servname does not match socktype/protocol, ignore it.
946 if (get_portmatch(pai, servname) != 0)
960 GET_PORT(cur->ai_next, servname);
981 GET_PORT(cur->ai_next, servname);
1013 const char *servname, struct addrinfo **res)
1016 return explore_numeric(pai, hostname, servname, res, hostname);
1026 /* servname may be NULL */
1030 * if the servname does not match socktype/protocol, ignore it.
1032 if (get_portmatch(pai, servname) != 0)
1040 return explore_numeric(pai, hostname, servname, res, hostname);
1044 return explore_numeric(pai, hostname, servname, res, hostname);
1057 error = explore_numeric(pai, addr, servname, res, hostname);
1129 get_portmatch(const struct addrinfo *ai, const char *servname)
1133 /* servname may be NULL */
1135 return get_port(ai, servname, 1);
1139 get_port(const struct addrinfo *ai, const char *servname, int matchonly)
1147 /* servname may be NULL */
1149 if (servname == NULL)
1179 port = str2number(servname);
1202 if ((sp = getservbyname(servname, proto)) == NULL)