Home
last modified time | relevance | path

Searched refs:requested_port (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_bind.c319 in_port_t requested_port = *requested_port_ptr; in tcp_bind_select_lport() local
344 mlp_port = requested_port; in tcp_bind_select_lport()
345 if (requested_port == 0) { in tcp_bind_select_lport()
346 requested_port = connp->conn_anon_priv_bind ? in tcp_bind_select_lport()
350 if (requested_port == 0) { in tcp_bind_select_lport()
386 if (requested_port < tcps->tcps_smallest_nonpriv_port) { in tcp_bind_select_lport()
390 if (requested_port == in tcp_bind_select_lport()
398 if (secpolicy_net_privaddr(cr, requested_port, in tcp_bind_select_lport()
404 requested_port); in tcp_bind_select_lport()
422 requested_port, addrtype); in tcp_bind_select_lport()
[all …]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_bind.c61 sctp_select_port(sctp_t *sctp, in_port_t *requested_port, int *user_specified) in sctp_select_port() argument
74 if (*requested_port == 0) { in sctp_select_port()
75 *requested_port = sctp_update_next_port( in sctp_select_port()
78 if (*requested_port == 0) in sctp_select_port()
94 if (*requested_port < sctps->sctps_smallest_nonpriv_port) { in sctp_select_port()
98 if (*requested_port == in sctp_select_port()
111 *requested_port, IPPROTO_SCTP) != 0) { in sctp_select_port()
114 *requested_port)); in sctp_select_port()
229 in_port_t requested_port; in sctp_bind() local
260 requested_port = ntohs(sin->sin_port); in sctp_bind()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drdsddi.c450 in_port_t requested_port; /* Host byte order */ in rds_bind() local
506 requested_port = port; in rds_bind()
514 if (requested_port == 0) { in rds_bind()
553 if (requested_port != 0) { in rds_bind()
590 if (requested_port == 0) { in rds_bind()
/illumos-gate/usr/src/uts/common/inet/udp/
H A Dudp.c4975 in_port_t requested_port; /* Host byte order */ in udp_do_bind() local
5052 requested_port = port; in udp_do_bind()
5054 if (requested_port == 0 || !bind_to_req_port_only) in udp_do_bind()
5059 if (requested_port == 0) { in udp_do_bind()
5251 if (count == 0 && requested_port != 0) in udp_do_bind()
5274 (connp->conn_reuseaddr && requested_port != 0)) { in udp_do_bind()
5304 if ((count == 0) && (requested_port != 0)) { in udp_do_bind()
5313 requested_port = 0; in udp_do_bind()
5371 if ((requested_port == 0) && (!connp->conn_anon_priv_bind)) { in udp_do_bind()
5402 connp->conn_anon_port = (is_system_labeled() && requested_port == 0); in udp_do_bind()
/illumos-gate/usr/src/stand/lib/tcp/
H A Dtcp.c1181 in_port_t requested_port, allocated_port; in tcp_bind() local
1196 requested_port = ntohs(sockets[sock_id].bind.sin_port); in tcp_bind()
1204 if (requested_port == 0) in tcp_bind()
1209 if (requested_port == 0) { in tcp_bind()
1210 requested_port = tcp_update_next_port(++tcp_next_port_to_try); in tcp_bind()
1213 allocated_port = tcp_bindi(requested_port, &(tcp->tcp_bound_source), in tcp_bind()