Home
last modified time | relevance | path

Searched refs:portp (Results 1 – 7 of 7) sorted by relevance

/openbsd/lib/libc/net/
H A Drresvport.c63 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 Dcommands.c1735 char *cmd, *hostp = 0, *portp = 0, *user = 0, *aliasp = 0; in tn() local
1788 if (portp == 0) { in tn()
1789 portp = *argv++; in tn()
1805 if (portp == NULL) { in tn()
1806 portp = "telnet"; in tn()
1808 } else if (*portp == '-') { in tn()
1809 portp++; in tn()
1813 error = getaddrinfo(hostp, portp, &hints, &res0); in tn()
1816 warnx("%s: bad port", portp); in tn()
/openbsd/sys/nfs/
H A Dkrpc_subr.c144 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 Dmisc.c854 parse_user_host_port(const char *s, char **userp, char **hostp, int *portp) in parse_user_host_port() argument
864 if (portp != NULL) in parse_user_host_port()
865 *portp = -1; in parse_user_host_port()
896 if (portp != NULL) in parse_user_host_port()
897 *portp = port; in parse_user_host_port()
982 int *portp, char **pathp) in parse_uri() argument
998 if (portp != NULL) in parse_uri()
999 *portp = -1; in parse_uri()
1056 if (portp != NULL) in parse_uri()
1057 *portp = port; in parse_uri()
H A Dscp.c693 parse_scp_uri(const char *uri, char **userp, char **hostp, int *portp, in parse_scp_uri() argument
698 r = parse_uri("scp", uri, userp, hostp, portp, pathp); in parse_scp_uri()
H A Dreadconf.c3361 parse_ssh_uri(const char *uri, char **userp, char **hostp, int *portp) in parse_ssh_uri() argument
3378 if (portp != NULL) in parse_ssh_uri()
3379 *portp = port; in parse_ssh_uri()
/openbsd/sys/net/
H A Dif_wg.c770 wg_bind(struct wg_softc *sc, in_port_t *portp, int *rtablep) in wg_bind() argument
773 in_port_t port = *portp; in wg_bind()
785 if (ret == EADDRINUSE && *portp == 0 && retries++ < 100) in wg_bind()
801 *portp = port; in wg_bind()