Home | History | Annotate | Download | only in net

Lines Matching refs:servname

262 	"hostname nor servname provided, or not known",	/* EAI_NONAME     */
263 "servname not supported for ai_socktype", /* EAI_SERVICE */
407 const char *hostname, const char *servname,
420 (servname != NULL &&
421 strcspn(servname, " \n\r\t^'\"") != strlen(servname))) {
435 servname == NULL ? "^" : servname,
564 getaddrinfo(const char *hostname, const char *servname,
567 return android_getaddrinfofornet(hostname, servname, hints, NETID_UNSET, MARK_UNSET, res);
572 android_getaddrinfofornet(const char *hostname, const char *servname,
582 return android_getaddrinfofornetcontext(hostname, servname, hints, &netcontext, res);
587 android_getaddrinfofornetcontext(const char *hostname, const char *servname,
600 /* servname is allowed to be NULL */
616 if (hostname == NULL && servname == NULL)
658 * check for special cases. (1) numeric servname is disallowed if
659 * socktype/protocol are left unspecified. (2) servname is disallowed
676 error = get_portmatch(pai, servname);
708 error = explore_null(pai, servname, &cur->ai_next);
710 error = explore_numeric_scope(pai, hostname, servname,
735 hostname, servname, hints, res, netcontext->app_netid);
768 pai, hostname, servname, &cur->ai_next, netcontext);
801 const char *servname, struct addrinfo **res,
816 /* servname may be NULL */
822 * if the servname does not match socktype/protocol, ignore it.
824 if (get_portmatch(pai, servname) != 0)
841 GET_PORT(cur, servname);
863 explore_null(const struct addrinfo *pai, const char *servname,
873 /* servname may be NULL */
892 * if the servname does not match socktype/protocol, ignore it.
894 if (get_portmatch(pai, servname) != 0)
906 GET_PORT(cur->ai_next, servname);
912 GET_PORT(cur->ai_next, servname);
930 const char *servname, struct addrinfo **res, const char *canonname)
940 /* servname may be NULL */
948 * if the servname does not match socktype/protocol, ignore it.
950 if (get_portmatch(pai, servname) != 0)
964 GET_PORT(cur->ai_next, servname);
985 GET_PORT(cur->ai_next, servname);
1017 const char *servname, struct addrinfo **res)
1020 return explore_numeric(pai, hostname, servname, res, hostname);
1030 /* servname may be NULL */
1034 * if the servname does not match socktype/protocol, ignore it.
1036 if (get_portmatch(pai, servname) != 0)
1044 return explore_numeric(pai, hostname, servname, res, hostname);
1048 return explore_numeric(pai, hostname, servname, res, hostname);
1061 error = explore_numeric(pai, addr, servname, res, hostname);
1133 get_portmatch(const struct addrinfo *ai, const char *servname)
1137 /* servname may be NULL */
1139 return get_port(ai, servname, 1);
1143 get_port(const struct addrinfo *ai, const char *servname, int matchonly)
1151 /* servname may be NULL */
1153 if (servname == NULL)
1183 port = str2number(servname);
1206 if ((sp = getservbyname(servname, proto)) == NULL)