Lines Matching refs:acceptor

1432 tcp_accept_comm(tcp_t *listener, tcp_t *acceptor, mblk_t *cr_pkt,  in tcp_accept_comm()  argument
1449 acceptor->tcp_lport = listener->tcp_lport; in tcp_accept_comm()
1451 if (listener->tcp_ipversion == acceptor->tcp_ipversion) { in tcp_accept_comm()
1452 if (acceptor->tcp_iphc_len != listener->tcp_iphc_len) { in tcp_accept_comm()
1458 bkmem_free(acceptor->tcp_iphc, acceptor->tcp_iphc_len); in tcp_accept_comm()
1459 acceptor->tcp_iphc = bkmem_zalloc( in tcp_accept_comm()
1461 if (acceptor->tcp_iphc == NULL) { in tcp_accept_comm()
1462 acceptor->tcp_iphc_len = 0; in tcp_accept_comm()
1465 acceptor->tcp_iphc_len = listener->tcp_iphc_len; in tcp_accept_comm()
1467 acceptor->tcp_hdr_len = listener->tcp_hdr_len; in tcp_accept_comm()
1468 acceptor->tcp_ip_hdr_len = listener->tcp_ip_hdr_len; in tcp_accept_comm()
1469 acceptor->tcp_tcp_hdr_len = listener->tcp_tcp_hdr_len; in tcp_accept_comm()
1474 bcopy(listener->tcp_iphc, acceptor->tcp_iphc, in tcp_accept_comm()
1476 acceptor->tcp_ipha = (struct ip *)acceptor->tcp_iphc; in tcp_accept_comm()
1477 acceptor->tcp_tcph = (tcph_t *)(acceptor->tcp_iphc + in tcp_accept_comm()
1478 acceptor->tcp_ip_hdr_len); in tcp_accept_comm()
1484 if (acceptor->tcp_ipversion == IPV4_VERSION) { in tcp_accept_comm()
1488 acceptor->tcp_ipha->ip_dst = ipha->ip_src; in tcp_accept_comm()
1489 acceptor->tcp_remote = ipha->ip_src.s_addr; in tcp_accept_comm()
1490 acceptor->tcp_ipha->ip_src = ipha->ip_dst; in tcp_accept_comm()
1491 acceptor->tcp_bound_source = ipha->ip_dst.s_addr; in tcp_accept_comm()
1496 bcopy(tcph->th_lport, acceptor->tcp_tcph->th_fport, sizeof (in_port_t)); in tcp_accept_comm()
1497 bcopy(acceptor->tcp_tcph->th_fport, &acceptor->tcp_fport, in tcp_accept_comm()
1504 acceptor->tcp_lport = *(in_port_t *)tcph->th_fport; in tcp_accept_comm()
1505 bcopy(tcph->th_fport, acceptor->tcp_tcph->th_lport, in tcp_accept_comm()
1509 acceptor->tcp_naglim = listener->tcp_naglim; in tcp_accept_comm()
1510 acceptor->tcp_first_timer_threshold = in tcp_accept_comm()
1512 acceptor->tcp_second_timer_threshold = in tcp_accept_comm()
1515 acceptor->tcp_first_ctimer_threshold = in tcp_accept_comm()
1517 acceptor->tcp_second_ctimer_threshold = in tcp_accept_comm()
1520 acceptor->tcp_xmit_hiwater = listener->tcp_xmit_hiwater; in tcp_accept_comm()
1522 acceptor->tcp_state = TCPS_LISTEN; in tcp_accept_comm()
1523 tcp_iss_init(acceptor); in tcp_accept_comm()
1526 tcp_process_options(acceptor, tcph); in tcp_accept_comm()
1531 acceptor->tcp_ecn_ok = B_TRUE; in tcp_accept_comm()
1544 acceptor->tcp_rwnd = MSS_ROUNDUP( in tcp_accept_comm()
1545 (acceptor->tcp_rwnd == 0 ? listener->tcp_rwnd_max : in tcp_accept_comm()
1546 acceptor->tcp_rwnd), acceptor->tcp_mss); in tcp_accept_comm()
1547 if (acceptor->tcp_snd_ws_ok) in tcp_accept_comm()
1548 SET_WS_VALUE(acceptor); in tcp_accept_comm()
1555 (void) tcp_rwnd_set(acceptor, acceptor->tcp_rwnd); in tcp_accept_comm()