Lines Matching refs:port
198 int port, end;
206 errx(1, "syntax error in port range");
209 for (port = 0; p < q; ++p)
210 port = port * 10 + digittoint(*p);
211 if (port < 0 || port > 65535)
212 errx(1, "invalid port number");
213 SET_PORT(port);
229 if (end < port || end > 65535)
230 errx(1, "invalid port number");
231 while (port++ < end)
232 SET_PORT(port);
239 sockaddr(struct sockaddr_storage *ss, int af, void *addr, int port)
250 sin4->sin_port = port;
257 sin6->sin6_port = port;
813 int error, off, port = 0;
819 port = ntohs(sstosin(ss)->sin_port);
824 port = ntohs(sstosin6(ss)->sin6_port);
837 if (port == 0)
840 return xprintf("%s:%d", addrstr, port);
888 int port;
897 port = ntohs(sstosin(&addr->address)->sin_port);
899 port = ntohs(sstosin6(&addr->address)->sin6_port);
900 if (CHK_PORT(port))
905 port = ntohs(sstosin(&addr->address)->sin_port);
907 port = ntohs(sstosin6(&addr->address)->sin6_port);
908 if (CHK_PORT(port))