Lines Matching refs:tcph_t
162 sizeof (tcph_t)))
304 static int tcp_parse_options(tcph_t *, tcp_opt_t *);
305 static boolean_t tcp_paws_check(tcp_t *, tcph_t *, tcp_opt_t *);
306 static void tcp_process_options(tcp_t *, tcph_t *);
324 uint32_t, int, tcph_t *, int sock_id);
433 return (sizeof (tcph_t)); in tcp_header_len()
440 return (TCP_HDR_LENGTH((tcph_t *)(pkt + IPH_HDR_LENGTH(pkt)))); in tcp_header_len()
454 return (*(uint16_t *)(((tcph_t *)tcphp)->th_lport)); in tcp_report_ports()
455 return (*(uint16_t *)(((tcph_t *)tcphp)->th_fport)); in tcp_report_ports()
1264 tcph_t *tcph; in tcp_connect()
1435 tcph_t *tcph; in tcp_accept_comm()
1477 acceptor->tcp_tcph = (tcph_t *)(acceptor->tcp_iphc + in tcp_accept_comm()
1492 tcph = (tcph_t *)&cr_pkt->b_rptr[ip_hdr_len]; in tcp_accept_comm()
2020 tcp_parse_options(tcph_t *tcph, tcp_opt_t *tcpopt) in tcp_parse_options()
2230 tcp_process_options(tcp_t *tcp, tcph_t *tcph) in tcp_process_options()
2363 tcp_paws_check(tcp_t *tcp, tcph_t *tcph, tcp_opt_t *tcpoptp) in tcp_paws_check()
2662 (ip_hdr_len + TCP_HDR_LENGTH(((tcph_t *)tcph))); in tcp_rput_data()
2742 seg_len, (tcph_t *)tcph, sock_id); in tcp_rput_data()
2837 tcp_process_options(tcp, (tcph_t *)tcph); in tcp_rput_data()
2891 new_swnd = BE16_TO_U16(((tcph_t *)tcph)->th_win); in tcp_rput_data()
2944 mp->b_rptr = (uchar_t *)tcph + TCP_HDR_LENGTH((tcph_t *)tcph); in tcp_rput_data()
2950 if (!tcp_paws_check(tcp, (tcph_t *)tcph, &tcpopt)) { in tcp_rput_data()
2966 (void) tcp_parse_options((tcph_t *)tcph, &tcpopt); in tcp_rput_data()
4805 tcph_t *tcph; in tcp_wput_data()
5014 tcph = (tcph_t *)(rptr + tcp->tcp_ip_hdr_len); in tcp_wput_data()
5201 uint32_t seg_seq, uint32_t seg_ack, int seg_len, tcph_t *tcph, in tcp_time_wait_processing()
5465 tcph_t *tcph; in tcp_header_init_ipv4()
5490 tcp->tcp_hdr_len = sizeof (struct ip) + sizeof (tcph_t); in tcp_header_init_ipv4()
5491 tcp->tcp_tcp_hdr_len = sizeof (tcph_t); in tcp_header_init_ipv4()
5500 tcph = (tcph_t *)(tcp->tcp_iphc + sizeof (struct ip)); in tcp_header_init_ipv4()
5517 tcph_t *tcph; in tcp_xmit_ctl()
5528 tcph = (tcph_t *)(rptr + ip_hdr_len); in tcp_xmit_ctl()
5557 tcph = (tcph_t *)&rptr[tcp_ip_hdr_len]; in tcp_xmit_ctl()
5618 tcph_t *tcph; in tcp_ack_mp()
5647 tcph = (tcph_t *)&rptr[tcp->tcp_ip_hdr_len]; in tcp_ack_mp()
5735 tcph_t *tcph; in tcp_xmit_mp()
5810 tcph = (tcph_t *)&rptr[tcp->tcp_ip_hdr_len]; in tcp_xmit_mp()
6075 tcph_t *tcph; in tcp_xmit_listeners_reset()
6082 tcph = (tcph_t *)&rptr[ip_hdr_len]; in tcp_xmit_listeners_reset()
6125 tcph_t *tcph; in tcp_xmit_early_reset()
6157 tcph = (tcph_t *)&mp->b_rptr[ip_hdr_len]; in tcp_xmit_early_reset()
6168 len = ip_hdr_len + sizeof (tcph_t); in tcp_xmit_early_reset()
6179 tcph = (tcph_t *)&mp->b_rptr[ip_hdr_len]; in tcp_xmit_early_reset()