Lines Matching full:servname
202 "hostname nor servname provided, or not known", /* EAI_NONAME */
203 "servname not supported for ai_socktype", /* EAI_SERVICE */
289 getaddrinfo(hostname, servname, hints, res)
290 const char *hostname, *servname;
327 if (hostname == NULL && servname == NULL)
369 * check for special cases. (1) numeric servname is disallowed if
370 * socktype/protocol are left unspecified. (2) servname is disallowed
387 error = get_portmatch(pai, servname);
415 error = explore_null(pai, hostname, servname, &cur->ai_next);
417 error = explore_numeric_scope(pai, hostname, servname, &cur->ai_next);
474 error = explore_fqdn(pai, hostname, servname,
508 explore_fqdn(pai, hostname, servname, res)
511 const char *servname;
538 * if the servname does not match socktype/protocol, ignore it.
540 if (get_portmatch(pai, servname) != 0)
639 GET_PORT(cur->ai_next, servname);
652 ap, pai, servname);
682 explore_null(pai, hostname, servname, res)
685 const char *servname;
710 * if the servname does not match socktype/protocol, ignore it.
712 if (get_portmatch(pai, servname) != 0)
722 GET_PORT(cur->ai_next, servname);
728 GET_PORT(cur->ai_next, servname);
745 explore_numeric(pai, hostname, servname, res)
748 const char *servname;
763 * if the servname does not match socktype/protocol, ignore it.
765 if (get_portmatch(pai, servname) != 0)
799 GET_PORT(cur->ai_next, servname);
812 pton, pai, servname);
834 explore_numeric_scope(pai, hostname, servname, res)
837 const char *servname;
841 return explore_numeric(pai, hostname, servname, res);
851 * if the servname does not match socktype/protocol, ignore it.
853 if (get_portmatch(pai, servname) != 0)
858 return explore_numeric(pai, hostname, servname, res);
862 return explore_numeric(pai, hostname, servname, res);
886 error = explore_numeric(pai, hostname2, servname, res);
905 get_name(addr, afd, res, numaddr, pai, servname)
911 const char *servname;
927 GET_PORT(cur, servname);
942 GET_PORT(cur, servname);
949 GET_PORT(cur, servname);
1016 get_portmatch(ai, servname)
1018 const char *servname;
1022 return get_port((struct addrinfo *)ai, servname, 1);
1026 get_port(ai, servname, matchonly)
1028 const char *servname;
1036 if (servname == NULL)
1062 if (str_isnumber(servname)) {
1065 port = htons(atoi(servname));
1081 if ((sp = getservbyname(servname, proto)) == NULL)