Home
last modified time | relevance | path

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

/titanic_41/usr/src/uts/common/inet/tcp/
H A Dtcp_bind.c317 in_port_t requested_port = *requested_port_ptr; in tcp_bind_select_lport() local
341 mlp_port = requested_port; in tcp_bind_select_lport()
342 if (requested_port == 0) { in tcp_bind_select_lport()
343 requested_port = connp->conn_anon_priv_bind ? in tcp_bind_select_lport()
347 if (requested_port == 0) { in tcp_bind_select_lport()
383 if (requested_port < tcps->tcps_smallest_nonpriv_port) { in tcp_bind_select_lport()
387 if (requested_port == in tcp_bind_select_lport()
395 if (secpolicy_net_privaddr(cr, requested_port, in tcp_bind_select_lport()
401 requested_port); in tcp_bind_select_lport()
419 requested_port, addrtype); in tcp_bind_select_lport()
[all …]
/titanic_41/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 …]
/titanic_41/usr/src/uts/common/io/ib/clients/rds/
H A Drdsddi.c445 in_port_t requested_port; /* Host byte order */ in rds_bind() local
501 requested_port = port; in rds_bind()
509 if (requested_port == 0) { in rds_bind()
548 if (requested_port != 0) { in rds_bind()
585 if (requested_port == 0) { in rds_bind()
/titanic_41/usr/src/uts/common/inet/udp/
H A Dudp.c4821 in_port_t requested_port; /* Host byte order */ in udp_do_bind() local
4896 requested_port = port; in udp_do_bind()
4898 if (requested_port == 0 || !bind_to_req_port_only) in udp_do_bind()
4903 if (requested_port == 0) { in udp_do_bind()
5095 if (count == 0 && requested_port != 0) in udp_do_bind()
5118 (connp->conn_reuseaddr && requested_port != 0)) { in udp_do_bind()
5148 if ((count == 0) && (requested_port != 0)) { in udp_do_bind()
5157 requested_port = 0; in udp_do_bind()
5215 if ((requested_port == 0) && (!connp->conn_anon_priv_bind)) { in udp_do_bind()
5246 connp->conn_anon_port = (is_system_labeled() && requested_port == 0); in udp_do_bind()
/titanic_41/usr/src/stand/lib/tcp/
H A Dtcp.c1182 in_port_t requested_port, allocated_port; in tcp_bind() local
1197 requested_port = ntohs(sockets[sock_id].bind.sin_port); in tcp_bind()
1205 if (requested_port == 0) in tcp_bind()
1210 if (requested_port == 0) { in tcp_bind()
1211 requested_port = tcp_update_next_port(++tcp_next_port_to_try); in tcp_bind()
1214 allocated_port = tcp_bindi(requested_port, &(tcp->tcp_bound_source), in tcp_bind()