Searched refs:requested_port (Results 1 – 5 of 5) sorted by relevance
319 in_port_t requested_port = *requested_port_ptr; in tcp_bind_select_lport() local344 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 …]
61 sctp_select_port(sctp_t *sctp, in_port_t *requested_port, int *user_specified) in sctp_select_port() argument74 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() local260 requested_port = ntohs(sin->sin_port); in sctp_bind()[all …]
450 in_port_t requested_port; /* Host byte order */ in rds_bind() local506 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()
4975 in_port_t requested_port; /* Host byte order */ in udp_do_bind() local5052 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()
1181 in_port_t requested_port, allocated_port; in tcp_bind() local1196 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()