Home
last modified time | relevance | path

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

/freebsd-13.1/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.c59 u_int16_t *portp; in bindresvport_sa() local
80 portp = &in->sin_port; in bindresvport_sa()
84 portp = &in6->sin6_port; in bindresvport_sa()
91 port = ntohs(*portp); in bindresvport_sa()
99 *portp = htons(port); in bindresvport_sa()
/freebsd-13.1/lib/libc/rpc/
H A Dbindresvport.c84 u_int16_t *portp; in bindresvport_sa() local
106 portp = &sin->sin_port; in bindresvport_sa()
115 portp = &sin6->sin6_port; in bindresvport_sa()
125 if (*portp == 0) { in bindresvport_sa()
140 if (*portp == 0) { in bindresvport_sa()
/freebsd-13.1/sys/mips/nlm/
H A Dboard.c380 struct xlp_port_ivars *portp; in nlm_setup_xlp_board() local
508 portp = &blockp->port_ivars[port]; in nlm_setup_xlp_board()
510 &portp->phy_addr); in nlm_setup_xlp_board()
512 portp->mdio_bus = 0; in nlm_setup_xlp_board()
514 portp->mdio_bus = 1; in nlm_setup_xlp_board()
515 portp->port = port; in nlm_setup_xlp_board()
516 portp->block = block; in nlm_setup_xlp_board()
517 portp->node = node; in nlm_setup_xlp_board()
518 portp->type = blockp->type; in nlm_setup_xlp_board()
519 nlm_setup_port_defaults(portp); in nlm_setup_xlp_board()
/freebsd-13.1/sys/nfs/
H A Dkrpc_subr.c137 krpc_portmap(struct sockaddr_in *sin, u_int prog, u_int vers, u_int16_t *portp, in krpc_portmap() argument
155 *portp = htons(PMAPPORT); in krpc_portmap()
181 *portp = rdata->port; in krpc_portmap()
H A Dkrpc.h16 u_int prog, u_int vers, u_int16_t *portp, struct thread *td);
/freebsd-13.1/sys/rpc/
H A Drpc_generic.c796 u_int16_t *portp; in bindresvport() local
820 portp = &sin->sin_port; in bindresvport()
828 portp = &sin6->sin6_port; in bindresvport()
838 if (*portp == 0) { in bindresvport()
859 if (*portp == 0) { in bindresvport()
H A Dxdr.h232 #define xdr_rpcport(xdrs, portp) xdr_uint32_t(xdrs, portp) argument
/freebsd-13.1/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()
2294 if (!portp) { in tn()
2296 portp = strdup("telnet"); in tn()
2297 } else if (*portp == '-') { in tn()
2298 portp++; in tn()
2300 } else if (*portp == '+') { in tn()
2301 portp++; in tn()
2310 error = getaddrinfo(hostname, portp, &hints, &res); in tn()
[all …]
/freebsd-13.1/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-13.1/share/examples/ipfilter/l4check/
H A Dl4check.c404 gethostport(char *str, int lnum, u_32_t *ipp, u_short *portp) in gethostport() argument
434 *portp = htons(atoi(port)); in gethostport()
438 *portp = sp->s_port; in gethostport()
446 *portp = 0; in gethostport()
/freebsd-13.1/crypto/openssh/
H A Dmisc.c839 parse_user_host_port(const char *s, char **userp, char **hostp, int *portp) in parse_user_host_port() argument
849 if (portp != NULL) in parse_user_host_port()
850 *portp = -1; in parse_user_host_port()
881 if (portp != NULL) in parse_user_host_port()
882 *portp = port; in parse_user_host_port()
964 int *portp, char **pathp) in parse_uri() argument
980 if (portp != NULL) in parse_uri()
981 *portp = -1; in parse_uri()
1038 if (portp != NULL) in parse_uri()
1039 *portp = port; in parse_uri()
H A Dscp.c702 parse_scp_uri(const char *uri, char **userp, char **hostp, int *portp, in parse_scp_uri() argument
707 r = parse_uri("scp", uri, userp, hostp, portp, pathp); in parse_scp_uri()
H A Dreadconf.c3112 parse_ssh_uri(const char *uri, char **userp, char **hostp, int *portp) in parse_ssh_uri() argument
3129 if (portp != NULL) in parse_ssh_uri()
3130 *portp = port; in parse_ssh_uri()
/freebsd-13.1/include/rpc/
H A Dxdr.h228 #define xdr_rpcport(xdrs, portp) xdr_u_int32_t(xdrs, portp) argument
/freebsd-13.1/contrib/libpcap/
H A Dpcap.c1565 char **hostp, char **portp, char **pathp, char *ebuf)
1582 *portp = NULL;
1893 *portp = port;
/freebsd-13.1/sys/dev/sfxge/common/
H A Def10_nic.c47 __out uint32_t *portp) in efx_mcdi_get_port_assignment() argument
76 *portp = MCDI_OUT_DWORD(req, GET_PORT_ASSIGNMENT_OUT_PORT); in efx_mcdi_get_port_assignment()
H A Def10_impl.h1177 __out uint32_t *portp);
/freebsd-13.1/lib/libc/net/
H A Dgetaddrinfo.c374 str2number(const char *p, int *portp) in str2number() argument
385 *portp = v; in str2number()