Lines Matching defs:listener

136 	tcp_t *listener, *eager;
139 * KSSL can move a socket from one listener to another, in which
140 * case `lproto_handle' points to the new listener. To ensure that
141 * the original listener is used the information is obtained from
148 listener = eager->tcp_listener;
149 lconnp = (conn_t *)listener->tcp_connp;
150 ASSERT(listener->tcp_state == TCPS_LISTEN);
169 listener->tcp_connp->conn_netstack);
170 ASSERT(eager->tcp_tcps == listener->tcp_tcps);
184 mutex_enter(&listener->tcp_eager_lock);
189 ASSERT(!listener->tcp_eager_prev_q0->tcp_conn_def_q0);
191 mutex_exit(&listener->tcp_eager_lock);
192 CONN_DEC_REF(listener->tcp_connp);
259 * that can be queued on the listener.
919 tcp_t *listener = eager->tcp_listener;
922 ASSERT(listener != NULL);
959 connp->conn_rq = listener->tcp_connp->conn_rq;
960 connp->conn_wq = listener->tcp_connp->conn_wq;
982 * Sockfs guarantees that the listener will not be closed
983 * during fallback. So we can safely use the listener's queue.
985 putnext(listener->tcp_connp->conn_rq, mp);
1060 * Notifies a non-STREAMS based listener about a new connection. This
1063 * T_CONN_IND is sent up by tcp_send_conn_ind() while on the *listener*'s
1072 tcp_t *listener = tcp->tcp_listener;
1073 conn_t *lconnp = listener->tcp_connp;
1080 mutex_enter(&listener->tcp_eager_lock);
1091 ASSERT(listener->tcp_conn_req_cnt_q0 > 0);
1092 listener->tcp_conn_req_cnt_q0--;
1093 listener->tcp_conn_req_cnt_q++;
1106 tail = listener->tcp_eager_last_q;
1110 listener->tcp_eager_next_q = tcp;
1111 listener->tcp_eager_last_q = tcp;
1117 listener->tcp_syn_rcvd_timeout--;
1118 if (listener->tcp_syn_defense &&
1119 listener->tcp_syn_rcvd_timeout <=
1120 (listener->tcp_tcps->tcps_conn_req_max_q0 >> 5) &&
1122 listener->tcp_last_rcv_lbolt)) {
1127 listener->tcp_syn_defense = B_FALSE;
1128 if (listener->tcp_ip_addr_cache) {
1129 kmem_free((void *)listener->tcp_ip_addr_cache,
1131 listener->tcp_ip_addr_cache = NULL;
1135 addr_cache = (ipaddr_t *)(listener->tcp_ip_addr_cache);
1145 mutex_exit(&listener->tcp_eager_lock);