Searched refs:portp (Results 1 – 7 of 7) sorted by relevance
/openbsd/lib/libc/net/ |
H A D | rresvport.c | 63 u_int16_t *portp; in rresvport_af() local 72 portp = &((struct sockaddr_in *)sa)->sin_port; in rresvport_af() 76 portp = &((struct sockaddr_in6 *)sa)->sin6_port; in rresvport_af() 88 *portp = htons(*alport); in rresvport_af() 98 *portp = 0; in rresvport_af() 104 *alport = ntohs(*portp); in rresvport_af()
|
/openbsd/usr.bin/telnet/ |
H A D | commands.c | 1744 char *cmd, *hostp = 0, *portp = 0, *user = 0, *aliasp = 0; in tn() local 1797 if (portp == 0) { in tn() 1798 portp = *argv++; in tn() 1814 if (portp == NULL) { in tn() 1815 portp = "telnet"; in tn() 1817 } else if (*portp == '-') { in tn() 1818 portp++; in tn() 1822 error = getaddrinfo(hostp, portp, &hints, &res0); in tn() 1825 warnx("%s: bad port", portp); in tn()
|
/openbsd/sys/nfs/ |
H A D | krpc_subr.c | 144 krpc_portmap(struct sockaddr_in *sin, u_int prog, u_int vers, u_int16_t *portp) in krpc_portmap() argument 161 *portp = htons(PMAPPORT); in krpc_portmap() 187 *portp = rdata->port; in krpc_portmap()
|
/openbsd/usr.bin/ssh/ |
H A D | misc.c | 833 parse_user_host_port(const char *s, char **userp, char **hostp, int *portp) in parse_user_host_port() argument 843 if (portp != NULL) in parse_user_host_port() 844 *portp = -1; in parse_user_host_port() 875 if (portp != NULL) in parse_user_host_port() 876 *portp = port; in parse_user_host_port() 961 int *portp, char **pathp) in parse_uri() argument 977 if (portp != NULL) in parse_uri() 978 *portp = -1; in parse_uri() 1035 if (portp != NULL) in parse_uri() 1036 *portp = port; in parse_uri()
|
H A D | scp.c | 691 parse_scp_uri(const char *uri, char **userp, char **hostp, int *portp, in parse_scp_uri() argument 696 r = parse_uri("scp", uri, userp, hostp, portp, pathp); in parse_scp_uri()
|
H A D | readconf.c | 3284 parse_ssh_uri(const char *uri, char **userp, char **hostp, int *portp) in parse_ssh_uri() argument 3301 if (portp != NULL) in parse_ssh_uri() 3302 *portp = port; in parse_ssh_uri()
|
/openbsd/sys/net/ |
H A D | if_wg.c | 761 wg_bind(struct wg_softc *sc, in_port_t *portp, int *rtablep) in wg_bind() argument 764 in_port_t port = *portp; in wg_bind() 776 if (ret == EADDRINUSE && *portp == 0 && retries++ < 100) in wg_bind() 792 *portp = port; in wg_bind()
|