Lines Matching refs:servname

213 	"hostname nor servname provided, or not known",	/*%< EAI_NONAME */
214 "servname not supported for ai_socktype", /*%< EAI_SERVICE */
320 getaddrinfo(hostname, servname, hints, res)
321 const char *hostname, *servname;
353 if (hostname == NULL && servname == NULL)
421 * check for special cases. (1) numeric servname is disallowed if
422 * socktype/protocol are left unspecified. (2) servname is disallowed
439 error = get_portmatch(pai, servname);
467 * if the servname does not match socktype/protocol, ignore it.
469 if (get_portmatch(pai, servname) != 0)
479 error = explore_null(pai, servname, &cur->ai_next);
481 error = explore_numeric_scope(pai, hostname, servname,
517 error = explore_fqdn(pai, hostname, servname, &afai);
567 * if the servname does not match socktype/protocol, ignore it.
569 if (get_portmatch(pai, servname) != 0)
608 explore_fqdn(pai, hostname, servname, res)
611 const char *servname;
625 * if the servname does not match socktype/protocol, ignore it.
627 if (get_portmatch(pai, servname) != 0)
676 GET_PORT(cur, servname); /*%< XXX: redundant lookups... */
733 explore_null(pai, servname, res)
735 const char *servname;
756 GET_PORT(cur->ai_next, servname);
762 GET_PORT(cur->ai_next, servname);
779 explore_numeric(pai, hostname, servname, res)
782 const char *servname;
806 GET_PORT(cur->ai_next, servname);
819 GET_PORT(cur->ai_next, servname);
842 explore_numeric_scope(pai, hostname, servname, res)
845 const char *servname;
849 return explore_numeric(pai, hostname, servname, res);
862 return explore_numeric(pai, hostname, servname, res);
866 return explore_numeric(pai, hostname, servname, res);
879 error = explore_numeric(pai, addr, servname, res);
979 get_portmatch(const struct addrinfo *ai, const char *servname) {
983 return get_port((const struct addrinfo *)ai, servname, 1);
987 get_port(const struct addrinfo *ai, const char *servname, int matchonly) {
993 if (servname == NULL)
1029 if (str_isnumber(servname)) {
1032 port = atoi(servname);
1049 if ((sp = getservbyname(servname, proto)) == NULL)
1195 /* GET_PORT(cur->ai_next, servname); */