Home
last modified time | relevance | path

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

/freebsd/crypto/openssh/openbsd-compat/
H A Drresvport.c62 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()
H A Dbindresvport.c60 u_int16_t *portp; in bindresvport_sa() local
81 portp = &in->sin_port; in bindresvport_sa()
85 portp = &in6->sin6_port; in bindresvport_sa()
92 port = ntohs(*portp); in bindresvport_sa()
100 *portp = htons(port); in bindresvport_sa()
/freebsd/lib/libc/rpc/
H A Dbindresvport.c77 u_int16_t *portp; in bindresvport_sa() local
99 portp = &sin->sin_port; in bindresvport_sa()
108 portp = &sin6->sin6_port; in bindresvport_sa()
118 if (*portp == 0) { in bindresvport_sa()
133 if (*portp == 0) { in bindresvport_sa()
/freebsd/sys/nfs/
H A Dkrpc_subr.c133 krpc_portmap(struct sockaddr_in *sin, u_int prog, u_int vers, u_int16_t *portp, in krpc_portmap() argument
151 *portp = htons(PMAPPORT); in krpc_portmap()
177 *portp = rdata->port; in krpc_portmap()
H A Dkrpc.h15 u_int prog, u_int vers, u_int16_t *portp, struct thread *td);
/freebsd/sys/rpc/
H A Drpc_generic.c783 uint16_t *portp; in bindresvport() local
805 portp = &sin->sin_port; in bindresvport()
813 portp = &sin6->sin6_port; in bindresvport()
823 if (*portp == 0) { in bindresvport()
843 if (*portp == 0) { in bindresvport()
H A Dxdr.h237 #define xdr_rpcport(xdrs, portp) xdr_uint32_t(xdrs, portp) argument
/freebsd/contrib/telnet/telnet/
H A Dcommands.c2175 char *cmd, *hostp = 0, *portp = 0, *user = 0; in tn() local
2224 if (portp == 0) { in tn()
2225 portp = *argv++; in tn()
2295 if (!portp) { in tn()
2297 portp = strdup("telnet"); in tn()
2298 } else if (*portp == '-') { in tn()
2299 portp++; in tn()
2301 } else if (*portp == '+') { in tn()
2302 portp++; in tn()
2311 error = getaddrinfo(hostname, portp, &hints, &res); in tn()
[all …]
/freebsd/crypto/heimdal/appl/telnet/telnet/
H A Dcommands.c2056 char *cmd, *hostp = 0, *portp = 0; in tn() local
2097 if (portp == 0) { in tn()
2098 portp = *argv++; in tn()
2126 if (portp) { in tn()
2127 if (*portp == '-') { in tn()
2128 portp++; in tn()
2132 port = atoi(portp); in tn()
2134 sp = roken_getservbyname(portp, "tcp"); in tn()
2138 printf("%s: bad port number\r\n", portp); in tn()
/freebsd/share/examples/ipfilter/l4check/
H A Dl4check.c403 gethostport(char *str, int lnum, u_32_t *ipp, u_short *portp) in gethostport() argument
433 *portp = htons(atoi(port)); in gethostport()
437 *portp = sp->s_port; in gethostport()
445 *portp = 0; in gethostport()
/freebsd/include/rpc/
H A Dxdr.h224 #define xdr_rpcport(xdrs, portp) xdr_u_int32_t(xdrs, portp) argument
/freebsd/crypto/openssh/
H A Dmisc.c906 parse_user_host_port(const char *s, char **userp, char **hostp, int *portp) in parse_user_host_port() argument
916 if (portp != NULL) in parse_user_host_port()
917 *portp = -1; in parse_user_host_port()
948 if (portp != NULL) in parse_user_host_port()
949 *portp = port; in parse_user_host_port()
1034 int *portp, char **pathp) in parse_uri() argument
1050 if (portp != NULL) in parse_uri()
1051 *portp = -1; in parse_uri()
1108 if (portp != NULL) in parse_uri()
1109 *portp = port; in parse_uri()
H A Dscp.c754 parse_scp_uri(const char *uri, char **userp, char **hostp, int *portp, in parse_scp_uri() argument
759 r = parse_uri("scp", uri, userp, hostp, portp, pathp); in parse_scp_uri()
H A Dreadconf.c3366 parse_ssh_uri(const char *uri, char **userp, char **hostp, int *portp) in parse_ssh_uri() argument
3383 if (portp != NULL) in parse_ssh_uri()
3384 *portp = port; in parse_ssh_uri()
/freebsd/contrib/libpcap/
H A Dpcap.c1773 char **hostp, char **portp, char **pathp, char *ebuf) argument
1790 *portp = NULL;
2102 *portp = port;
/freebsd/sys/dev/sfxge/common/
H A Def10_nic.c45 __out uint32_t *portp) in efx_mcdi_get_port_assignment() argument
74 *portp = MCDI_OUT_DWORD(req, GET_PORT_ASSIGNMENT_OUT_PORT); in efx_mcdi_get_port_assignment()
H A Def10_impl.h1175 __out uint32_t *portp);
/freebsd/lib/libc/net/
H A Dgetaddrinfo.c371 str2number(const char *p, int *portp) in str2number() argument
382 *portp = v; in str2number()