Searched refs:requested_port (Results 1 – 5 of 5) sorted by relevance
317 in_port_t requested_port = *requested_port_ptr; in tcp_bind_select_lport() local341 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 …]
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 …]
445 in_port_t requested_port; /* Host byte order */ in rds_bind() local501 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()
4915 in_port_t requested_port; /* Host byte order */ in udp_do_bind() local4991 requested_port = port; in udp_do_bind()4993 if (requested_port == 0 || !bind_to_req_port_only) in udp_do_bind()4998 if (requested_port == 0) { in udp_do_bind()5208 if (count == 0 && requested_port != 0) in udp_do_bind()5249 (connp->conn_reuseaddr && requested_port != 0)) { in udp_do_bind()5335 if ((count == 0) && (requested_port != 0)) { in udp_do_bind()5344 requested_port = 0; in udp_do_bind()5402 if ((requested_port == 0) && (!connp->conn_anon_priv_bind)) { in udp_do_bind()5433 connp->conn_anon_port = (is_system_labeled() && requested_port == 0); in udp_do_bind()
1182 in_port_t requested_port, allocated_port; in tcp_bind() local1197 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()