Lines Matching refs:portp
2196 char *cmd, *hostp = 0, *portp = 0, *user = 0;
2245 if (portp == 0) {
2246 portp = *argv++;
2320 if (!portp) {
2322 portp = strdup("telnet");
2323 } else if (*portp == '-') {
2324 portp++;
2326 } else if (*portp == '+') {
2327 portp++;
2338 struct servent *srv = getservbyname(portp, NULL);
2340 asprintf(&portp, "%d", ntohs(srv->s_port));
2349 error = getaddrinfo(hostname, portp, &hints, &res);
2352 error = getaddrinfo(hostname, portp, &hints, &res);