Home
last modified time | relevance | path

Searched refs:tcp (Results 1 – 25 of 182) sorted by relevance

12345678

/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_timers.c464 if (tcp->tcp_snxt == tcp->tcp_suna && in tcp_keepalive_timer()
498 tcp->tcp_ka_tid = TCP_TIMER(tcp, in tcp_keepalive_timer()
551 tcp_xmit_ctl(NULL, tcp, tcp->tcp_snxt, tcp->tcp_rnxt, TH_ACK); in tcp_push_timer()
575 if (tcp->tcp_rnxt == tcp->tcp_rack) { in tcp_ack_timer()
579 if ((tcp->tcp_rnxt - tcp->tcp_rack) > tcp->tcp_mss) { in tcp_ack_timer()
820 tcp->tcp_cwnd = tcp->tcp_mss; in tcp_timer()
933 tcp, tcp->tcp_snxt, in tcp_timer()
1017 mss = tcp->tcp_snxt - tcp->tcp_suna; in tcp_timer()
1034 tcp->tcp_rexmit_nxt = tcp->tcp_suna; in tcp_timer()
1037 tcp->tcp_rexmit_max = tcp->tcp_fss; in tcp_timer()
[all …]
H A Dtcp.c2023 tcp->tcp_eager_next_q0 = tcp->tcp_eager_prev_q0 = tcp; in tcp_reinit()
2024 tcp->tcp_eager_next_drop_q0 = tcp; in tcp_reinit()
2025 tcp->tcp_eager_prev_drop_q0 = tcp; in tcp_reinit()
2358 tcp->tcp_ccv.ccvc.tcp = tcp; in tcp_init_values()
3460 for (tcp = tf->tf_tcp; tcp != NULL; in tcp_acceptor_hash_lookup()
3992 tcp->tcp_fss = tcp->tcp_iss - 1; in tcp_iss_init()
3993 tcp->tcp_suna = tcp->tcp_iss; in tcp_iss_init()
3994 tcp->tcp_snxt = tcp->tcp_iss + 1; in tcp_iss_init()
3996 tcp->tcp_csuna = tcp->tcp_snxt; in tcp_iss_init()
4258 tcp->tcp_tcpha->tha_win = htons(tcp->tcp_rwnd >> tcp->tcp_rcv_ws); in tcp_do_connect()
[all …]
H A Dtcp_input.c183 if (tcp->tcp_cwnd <= tcp->tcp_swnd) in cc_ack_received()
262 (tcp->tcp_snxt - tcp->tcp_suna) / 2 / tcp->tcp_mss, in cc_cong_signal()
264 tcp->tcp_cwnd = tcp->tcp_mss; in cc_cong_signal()
328 if (mss < tcp->tcp_naglim || tcp->tcp_mss == tcp->tcp_naglim) in tcp_mss_set()
347 tcp->tcp_cwnd = (tcp->tcp_cwnd / tcp->tcp_mss) * mss; in tcp_mss_set()
460 tcp->tcp_fack = tcp->tcp_suna; in tcp_parse_options()
2189 (tcp->tcp_suna + tcp->tcp_swnd) : tcp->tcp_snxt; in tcp_ack_mp()
2249 tcp->tcp_rack = tcp->tcp_rnxt; in tcp_ack_mp()
2737 tcp->tcp_cwnd = tcp->tcp_mss; in tcp_input_data()
2865 mp1 = tcp_xmit_mp(tcp, tcp->tcp_xmit_head, tcp->tcp_mss, in tcp_input_data()
[all …]
H A Dtcp_output.c453 if (tcp->tcp_swnd > tcp->tcp_cwnd) in tcp_wput_data()
515 tcp->tcp_tcpha->tha_win = htons(tcp->tcp_rwnd >> tcp->tcp_rcv_ws); in tcp_wput_data()
553 tcp->tcp_rack = tcp->tcp_rnxt; in tcp_wput_data()
1268 tcp->tcp_rack = tcp->tcp_rnxt; in tcp_output()
2267 tcp->tcp_fss = tcp->tcp_snxt + tcp->tcp_unsent; in tcp_xmit_end()
2292 if (tcp->tcp_rexmit && tcp->tcp_rexmit_nxt == tcp->tcp_fss) { in tcp_xmit_end()
3210 tcp->tcp_rack = tcp->tcp_rnxt; in tcp_xmit_mp()
3355 tcp->tcp_csuna = tcp->tcp_snxt; in tcp_sack_rexmit()
3383 tcp->tcp_cwnd = tcp->tcp_snxt - tcp->tcp_suna; in tcp_sack_rexmit()
3388 tcp->tcp_cwnd = tcp->tcp_snxt - tcp->tcp_suna + in tcp_sack_rexmit()
[all …]
H A Dtcp_fusion.c288 (void) TCP_TIMER_CANCEL(tcp, tcp->tcp_push_tid); in tcp_unfuse()
306 (void) tcp_fuse_rcv_drain(tcp->tcp_connp->conn_rq, tcp, in tcp_unfuse()
332 tcp->tcp_tcpha->tha_seq = htonl(tcp->tcp_snxt); in tcp_unfuse()
333 tcp->tcp_tcpha->tha_ack = htonl(tcp->tcp_rnxt); in tcp_unfuse()
570 (tcp->tcp_urg == tcp->tcp_snxt)) { in tcp_fuse_output()
585 (tcp->tcp_urg == tcp->tcp_snxt)) { in tcp_fuse_output()
643 tcp->tcp_suna = tcp->tcp_snxt; in tcp_fuse_output()
714 ASSERT(tcp->tcp_fused || tcp->tcp_fused_sigurg); in tcp_fuse_rcv_drain()
720 (void) TCP_TIMER_CANCEL(tcp, tcp->tcp_push_tid); in tcp_fuse_rcv_drain()
742 tcp->tcp_push_tid = TCP_TIMER(tcp, in tcp_fuse_rcv_drain()
[all …]
H A Dtcp_time_wait.c139 tcp_timers_stop(tcp); in tcp_time_wait_append()
211 tcp->tcp_time_wait_next->tcp_time_wait_prev = tcp; in tcp_time_wait_append()
274 ASSERT(tcp != NULL); in tcp_timewait_close()
338 tcp_cleanup(tcp); in tcp_time_wait_purge()
403 tcp_t *tcp; in tcp_time_wait_collector() local
474 while (tcp != NULL) { in tcp_time_wait_collector()
623 tcpopt.tcp = tcp; in tcp_time_wait_processing()
625 tcpopt.tcp = NULL; in tcp_time_wait_processing()
631 tcp_xmit_ctl(NULL, tcp, tcp->tcp_snxt, tcp->tcp_rnxt, in tcp_time_wait_processing()
667 tcp_xmit_ctl(NULL, tcp, tcp->tcp_snxt, in tcp_time_wait_processing()
[all …]
H A Dtcp_opt_data.c610 tcp->tcp_ka_tid = TCP_TIMER(tcp, in tcp_opt_set()
677 tcp->tcp_naglim = *i1 ? 1 : tcp->tcp_mss; in tcp_opt_set()
730 tcp->tcp_iss == tcp->tcp_snxt - 1) { in tcp_opt_set()
732 MIN(tcp->tcp_rwnd, val * tcp->tcp_mss); in tcp_opt_set()
767 tcp->tcp_ka_tid = TCP_TIMER(tcp, in tcp_opt_set()
893 CC_ALGO(tcp)->cb_destroy(&tcp->tcp_ccv); in tcp_opt_set()
900 VERIFY0(CC_ALGO(tcp)->cb_init(&tcp->tcp_ccv)); in tcp_opt_set()
935 if (val < tcp->tcp_rto_min || val > tcp->tcp_rto_max || in tcp_opt_set()
952 tcp->tcp_rtt_sa = MSEC2NSEC(tcp->tcp_rto_initial) << 2; in tcp_opt_set()
953 tcp->tcp_rtt_sd = MSEC2NSEC(tcp->tcp_rto_initial) >> 1; in tcp_opt_set()
[all …]
H A Dtcp_tpi.c64 tcp_acceptor_hash_insert(tcp->tcp_acceptor_id, tcp); in tcp_use_pure_tpi()
798 tcp->tcp_state, tcp_display(tcp, NULL, in tcp_tpistate()
1090 if (tcp->tcp_issocket || tcp->tcp_send_discon_ind) { in tcp_accept_finish()
1170 tcp, (tcp->tcp_swnd == 0) ? in tcp_accept_finish()
1171 tcp->tcp_suna : tcp->tcp_snxt, in tcp_accept_finish()
1197 if (tcp->tcp_fin_rcvd && !tcp->tcp_ordrel_done) { in tcp_accept_finish()
1207 tcp->tcp_ka_tid = TCP_TIMER(tcp, tcp_keepalive_timer, in tcp_accept_finish()
1234 tcp_t *tcp; in tcp_get_def_conn_ind() local
1251 tcp = tcp->tcp_eager_prev_q0; in tcp_get_def_conn_ind()
1882 tcp_t *tcp; in tcp_send_pending() local
[all …]
H A Dtcp_socket.c358 ASSERT(tcp != NULL); in tcp_getpeername()
491 tcp_t *tcp; in tcp_sendmsg() local
536 tcp_setqfull(tcp); in tcp_sendmsg()
650 (tcp->tcp_swnd == 0) ? tcp->tcp_suna : in tcp_clr_flowctrl()
651 tcp->tcp_snxt, tcp->tcp_rnxt, TH_ACK); in tcp_clr_flowctrl()
1001 tcp_t *tcp; in tcp_fallback() local
1036 if (tcp->tcp_fused) in tcp_fallback()
1037 tcp_unfuse(tcp); in tcp_fallback()
1103 tcp->tcp_eager_next_q0->tcp_eager_prev_q0 = tcp->tcp_eager_prev_q0; in tcp_newconn_notify()
1104 tcp->tcp_eager_prev_q0->tcp_eager_next_q0 = tcp->tcp_eager_next_q0; in tcp_newconn_notify()
[all …]
H A Dtcp_bind.c79 tcp_bind_hash_remove(tcp); in tcp_bind_hash_insert()
146 tcp->tcp_ptpbhn = tcpp; in tcp_bind_hash_insert()
147 tcpp[0] = tcp; in tcp_bind_hash_insert()
163 if (tcp->tcp_ptpbhn == NULL) in tcp_bind_hash_remove()
176 if (tcp->tcp_ptpbhn) { in tcp_bind_hash_remove()
189 tcp->tcp_bind_hash = NULL; in tcp_bind_hash_remove()
191 *tcp->tcp_ptpbhn = tcpnext; in tcp_bind_hash_remove()
192 tcp->tcp_ptpbhn = NULL; in tcp_bind_hash_remove()
348 tcp, B_TRUE); in tcp_bind_select_lport()
410 connp = tcp->tcp_connp; in tcp_bind_select_lport()
[all …]
/illumos-gate/usr/src/stand/lib/tcp/
H A Dtcp.c671 win_size = (tcp->tcp_swnd > tcp->tcp_cwnd) ? tcp->tcp_cwnd : in tcp_send()
1033 tcp->tcp_eager_next_q0 = tcp->tcp_eager_prev_q0 = tcp; in tcp_listen()
2197 if (mss < tcp->tcp_naglim || tcp->tcp_mss == tcp->tcp_naglim) in tcp_mss_set()
2386 tcpoptp->tcp = tcp; in tcp_paws_check()
2549 tcp->tcp_cwnd = tcp->tcp_snxt - tcp->tcp_suna; in tcp_sack_rxmit()
2554 tcp->tcp_cwnd = tcp->tcp_snxt - tcp->tcp_suna + in tcp_sack_rxmit()
2923 mp1 = tcp_xmit_mp(tcp, tcp->tcp_xmit_head, tcp->tcp_mss, in tcp_rput_data()
2961 tcpopt.tcp = tcp; in tcp_rput_data()
5405 tcp->tcp_rto = (tcp->tcp_rtt_sa >> 3) + tcp->tcp_rtt_sd + in tcp_init_values()
6786 (tcp->tcp_rwnd_max - tcp->tcp_rwnd >= tcp->tcp_mss)) { in tcp_rcv_drain()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/etc/
H A Dservices27 tcpmux 1/tcp
28 echo 7/tcp
40 ftp 21/tcp
44 telnet 23/tcp
52 tacacs 49/tcp
55 domain 53/tcp
70 sftp 115/tcp
75 irc 194/tcp
77 smux 199/tcp
100 ipp 631/tcp
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/
H A Dlm_l4sp.c1769 tcp->tx_con->tcp_state = tcp; in lm_tcp_init_tcp_resc()
1777 tcp->rx_con->tcp_state = tcp; in lm_tcp_init_tcp_resc()
1785 tcp->rx_con->u.rx.sws_info.mss = tcp->tx_con->u.tx.mss = in lm_tcp_init_tcp_resc()
2734 …tiscsi_ag->tcp.wnd_right_edge = (xiscsi_ag->tcp.local_adv_wnd << xiscsi_st->common.tcp.window_scal… in _lm_tcp_init_iscsi_tcp_related_context()
2859 tcp->ctx_virt, tcp->ctx_phys.as_u32.high, tcp->ctx_phys.as_u32.low); in lm_tcp_init_tcp_context()
2935 if (tcp) in lm_tcp_comp_cb()
3895 DbgBreakIf(tcp->cid && (tcp != lm_cid_cookie(pdev, TOE_CONNECTION_TYPE, tcp->cid))); in lm_tcp_post_slow_path_request()
3938 tcp->cid, command, tcp->ulp_type, data); in lm_tcp_post_slow_path_request()
4134 if (tcp->tx_con && tcp->rx_con) { in lm_tcp_collect_stats()
5384 …if ( tcp->tcp_delegated.max_send_win < tcp->tcp_delegated.send_win - tcp->tcp_delegated.send_una) { in lm_tcp_get_delegated()
[all …]
H A Dlm_l4rx.c32 lm_tcp_state_t *tcp,
87 DbgBreakIf(!(tcp && tcp->rx_con)); in _lm_tcp_isle_find()
119 DbgBreakIf(!(tcp && tcp->rx_con)); in _lm_tcp_isle_remove()
196 lm_tcp_state_t *tcp in lm_tcp_rx_write_db() argument
231 lm_tcp_state_t * tcp, in lm_tcp_rx_post_sws() argument
1076 … lm_tcp_complete_nbytes(pdev, tcp, tcp->rx_con, tcp->rx_con->u.rx.skp_bytes_copied, /* push=*/ 0); in lm_tcp_rx_complete_tcp_fp()
1757 DbgBreakIf(tcp->cid && (tcp != lm_cid_cookie(pdev, TOE_CONNECTION_TYPE, tcp->cid))); in lm_tcp_rx_post_buf()
2073 head_of_indication->tcp = tcp; in _lm_tcp_rx_get_buffered_data()
2426 DbgBreakIf(tcp != gen_buf->tcp); in lm_tcp_rx_indication_returned()
2427 DbgBreakIf(tcp->cid && (tcp != lm_cid_cookie(pdev, TOE_CONNECTION_TYPE, tcp->cid))); in lm_tcp_rx_indication_returned()
[all …]
H A Dlm_l4tx.c54 lm_tcp_state_t *tcp, in lm_tcp_tx_write_db() argument
90 lm_tcp_state_t *tcp, in lm_tcp_tx_post_buf() argument
104 DbgBreakIf(tcp->cid && (tcp != lm_cid_cookie(pdev, TOE_CONNECTION_TYPE, tcp->cid))); in lm_tcp_tx_post_buf()
106 tx_con = tcp->tx_con; in lm_tcp_tx_post_buf()
244 lm_tcp_state_t *tcp, in lm_tcp_tx_cmp_process() argument
372 lm_tcp_state_t * tcp in lm_tcp_tx_process_cqe() argument
456 lm_tcp_state_t *tcp; in lm_tcp_tx_process_cqes() local
504 DbgBreakIf(!tcp); in lm_tcp_tx_process_cqes()
553 lm_tcp_state_t * tcp; in lm_toe_service_tx_intr() local
568 tcp = con->tcp_state; in lm_toe_service_tx_intr()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_tcp.c88 hdrlen = tcp->th_off * 4; in interpret_tcp()
89 data = (char *)tcp + hdrlen; in interpret_tcp()
101 ntohs(tcp->th_dport), ntohs(tcp->th_sport)); in interpret_tcp()
114 ntohs(tcp->th_urp)); in interpret_tcp()
119 ntohl(tcp->th_ack)); in interpret_tcp()
122 if (ntohl(tcp->th_seq)) { in interpret_tcp()
128 ntohs(tcp->th_win)); in interpret_tcp()
160 ntohl(tcp->th_seq)); in interpret_tcp()
163 ntohl(tcp->th_ack)); in interpret_tcp()
213 ntohs(tcp->th_sport), in interpret_tcp()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/ip/
H A Dtst.localtcpstate.ksh.out5 tcp:::send - yes
6 tcp:::receive - yes
7 tcp:::state-change to syn-sent - yes
8 tcp:::state-change to syn-received - yes
9 tcp:::state-change to established - yes
10 tcp:::state-change to fin-wait-1 - yes
11 tcp:::state-change to close-wait - yes
13 tcp:::state-change to last-ack - yes
15 tcp:::connect-request - yes
16 tcp:::connect-established - yes
[all …]
H A Dtst.remotetcpstate.ksh.out5 tcp:::send - yes
6 tcp:::receive - yes
7 tcp:::state-change to syn-sent - yes
8 tcp:::state-change to established - yes
9 tcp:::state-change to fin-wait-1 - yes
10 tcp:::state-change to close-wait - yes
11 tcp:::state-change to fin-wait-2 - yes
12 tcp:::state-change to time-wait - yes
13 tcp:::connect-request - yes
14 tcp:::connect-established - yes
/illumos-gate/usr/src/uts/common/io/myri10ge/drv/
H A Dmyri10ge_lro.c74 struct tcphdr *tcp; in myri10ge_lro_flush() local
90 tcp->th_ack = lro->ack_seq; in myri10ge_lro_flush()
91 tcp->th_win = lro->window; in myri10ge_lro_flush()
92 tcp->th_flags = lro->flags; in myri10ge_lro_flush()
104 tcp->th_sum = 0; in myri10ge_lro_flush()
110 tcp->th_off << 2); in myri10ge_lro_flush()
136 struct tcphdr *tcp; in myri10ge_lro_rx() local
179 opt_bytes = (tcp->th_off << 2) - sizeof (*tcp); in myri10ge_lro_rx()
218 seq = ntohl(tcp->th_seq); in myri10ge_lro_rx()
324 lro->ack_seq = tcp->th_ack; in myri10ge_lro_rx()
[all …]
/illumos-gate/usr/src/cmd/krb5/krb5kdc/
H A Dnetwork.c187 } tcp; member
819 newconn->u.tcp.addrbuf, sizeof(newconn->u.tcp.addrbuf), in accept_tcp_connection()
841 newconn->u.tcp.buffer = malloc(newconn->u.tcp.bufsiz); in accept_tcp_connection()
861 || oldest_tcp->u.tcp.start_time > c->u.tcp.start_time) in accept_tcp_connection()
880 newconn->u.tcp.faddr.address = &newconn->u.tcp.kaddr; in accept_tcp_connection()
994 conn->u.tcp.buffer + conn->u.tcp.offset, len); in process_tcp_connection()
1008 if (conn->u.tcp.msglen > conn->u.tcp.bufsiz - 4) { in process_tcp_connection()
1030 len = conn->u.tcp.msglen - (conn->u.tcp.offset - 4); in process_tcp_connection()
1032 conn->u.tcp.buffer + conn->u.tcp.offset, len); in process_tcp_connection()
1040 if (conn->u.tcp.offset < conn->u.tcp.msglen + 4) in process_tcp_connection()
[all …]
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-device-fp.c750 ((tcp->doff_res)>>2)); in __hal_tcp_seg_len()
914 tcplro_t **tcp, in __hal_lro_capable() argument
1001 lro_new->tcp_hdr = tcp; in __hal_open_lro_session()
1003 tcp->seq); in __hal_open_lro_session()
1048 tcplro_t *tcp, in __hal_get_lro_session() argument
1068 tcp, ip) in __hal_get_lro_session()
1198 tcplro_t *tcp, in __hal_lro_under_optimal_thresh() argument
1231 tcplro_t *tcp, in __hal_collapse_ip_hdr() argument
1253 tcplro_t *tcp, in __hal_collapse_tcp_hdr() argument
1272 tcplro_t **tcp, in __hal_append_lro() argument
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/l4/include/
H A Dlm_l4if.h43 lm_tcp_state_t *tcp,
58 lm_tcp_state_t *tcp,
67 lm_tcp_state_t *tcp,
76 lm_tcp_state_t *tcp
88 lm_tcp_state_t *tcp);
122 lm_tcp_state_t *tcp);
144 lm_tcp_state_t *tcp);
148 lm_tcp_state_t *tcp,
154 lm_tcp_state_t *tcp,
159 lm_tcp_state_t *tcp,
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintpacket.c19 struct tcphdr *tcp; local
59 printf(",%d", ntohs(tcp->th_sport));
64 printf(",%d", ntohs(tcp->th_dport));
67 if (tcp->th_flags & TH_FIN)
69 if (tcp->th_flags & TH_SYN)
71 if (tcp->th_flags & TH_RST)
73 if (tcp->th_flags & TH_PUSH)
75 if (tcp->th_flags & TH_ACK)
77 if (tcp->th_flags & TH_URG)
79 if (tcp->th_flags & TH_ECN)
[all …]
/illumos-gate/usr/src/uts/common/inet/
H A Dtcp_impl.h101 #define TCP_IS_SOCKET(tcp) ((tcp)->tcp_issocket) argument
106 #define TCP_IS_DETACHED(tcp) ((tcp)->tcp_detached) argument
131 (void) TCP_TIMER_CANCEL((tcp), (tcp)->tcp_timer_tid); \
132 (tcp)->tcp_timer_tid = TCP_TIMER((tcp), tcp_timer, (intvl)); \
280 (tcp)->tcp_cwnd = (tcp)->tcp_init_cwnd * (mss); \
282 tcp->tcp_cwnd_cnt = 0; \
310 tcp_t *tcp; member
348 ((tcp)->tcp_squeue_bytes + (tcp)->tcp_unsent)
611 rto = NSEC2MSEC((tcp->tcp_rtt_sa >> 3) + (tcp->tcp_rtt_sa >> 5) + in tcp_calculate_rto()
615 rto = tcp->tcp_rto_min; in tcp_calculate_rto()
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/
H A Dpass3b.c364 tcp->nuser_objs++; in bufchk()
367 tcp->ngroup_objs++; in bufchk()
370 tcp->nother_objs++; in bufchk()
373 tcp->nclass_objs++; in bufchk()
376 tcp->ndef_user_objs++; in bufchk()
388 tcp->nusers++; in bufchk()
391 tcp->ngroups++; in bufchk()
394 tcp->ndef_users++; in bufchk()
397 tcp->ndef_groups++; in bufchk()
458 tcp->nusers != 0 || in bufchk()
[all …]

12345678