/titanic_41/usr/src/uts/common/inet/tcp/ |
H A D | tcp_output.c | 1087 tcpha_t *tcpha; in tcp_output() local 1260 tcpha = tcp->tcp_tcpha; in tcp_output() 1261 tcpha->tha_flags = (TH_ACK|TH_PUSH); in tcp_output() 1265 tcpha->tha_sum = htons(sum); in tcp_output() 1267 tcpha->tha_seq = htonl(snxt); in tcp_output() 1274 tcpha->tha_win = htons(tcp->tcp_rwnd >> tcp->tcp_rcv_ws); in tcp_output() 1314 (char *)tcpha + TCP_MIN_HEADER_LENGTH+4); in tcp_output() 1316 (char *)tcpha + TCP_MIN_HEADER_LENGTH+8); in tcp_output() 1350 tcpha = (tcpha_t *)(rptr + ixa->ixa_ip_hdr_length); in tcp_output() 1352 tcpha->tha_flags |= TH_ECE; in tcp_output() [all …]
|
H A D | tcp_input.c | 241 tcp_parse_options(tcpha_t *tcpha, tcp_opt_t *tcpopt) in tcp_parse_options() argument 246 uchar_t *up = (uchar_t *)tcpha; in tcp_parse_options() 252 endp = up + TCP_HDR_LENGTH(tcpha); in tcp_parse_options() 401 tcp_process_options(tcp_t *tcp, tcpha_t *tcpha) in tcp_process_options() argument 411 options = tcp_parse_options(tcpha, &tcpopt); in tcp_process_options() 693 tcp_paws_check(tcp_t *tcp, tcpha_t *tcpha, tcp_opt_t *tcpoptp) in tcp_paws_check() argument 700 flags = (unsigned int)tcpha->tha_flags & 0xFF; in tcp_paws_check() 706 if (TCP_HDR_LENGTH(tcpha) == (uint32_t)TCP_MIN_HEADER_LENGTH + in tcp_paws_check() 708 OK_32PTR((up = ((uint8_t *)tcpha) + in tcp_paws_check() 721 options = tcp_parse_options(tcpha, tcpoptp); in tcp_paws_check() [all …]
|
H A D | tcp_fusion.c | 82 tcp_fuse(tcp_t *tcp, uchar_t *iphdr, tcpha_t *tcpha) in tcp_fuse() argument 113 (ipha_t *)iphdr, tcpha, ipst); in tcp_fuse() 116 (ip6_t *)iphdr, tcpha, ipst); in tcp_fuse() 534 tcpha_t *tcpha; in tcp_fuse_output() local 540 tcpha = (tcpha_t *)&mp1->b_rptr[ip_hdr_len]; in tcp_fuse_output() 541 ASSERT((uchar_t *)tcpha + sizeof (tcpha_t) <= in tcp_fuse_output() 543 recv_size += htonl(tcpha->tha_seq) - tcp->tcp_snxt; in tcp_fuse_output()
|
H A D | tcp_time_wait.c | 502 uint32_t seg_ack, int seg_len, tcpha_t *tcpha, ip_recv_attr_t *ira) in tcp_time_wait_processing() argument 517 flags = (unsigned int)tcpha->tha_flags & 0xFF; in tcp_time_wait_processing() 518 new_swnd = ntohs(tcpha->tha_win) << in tcp_time_wait_processing() 519 ((tcpha->tha_flags & TH_SYN) ? 0 : tcp->tcp_snd_ws); in tcp_time_wait_processing() 521 if (!tcp_paws_check(tcp, tcpha, &tcpopt)) { in tcp_time_wait_processing()
|
H A D | tcp.c | 2864 tcpha_t *tcpha; in tcp_build_hdrs() local 2892 tcpha = (tcpha_t *)connp->conn_ht_ulp; in tcp_build_hdrs() 2893 tcp->tcp_tcpha = tcpha; in tcp_build_hdrs() 2899 tcpha->tha_sum = 0; in tcp_build_hdrs() 2900 tcpha->tha_urp = 0; in tcp_build_hdrs() 2901 tcpha->tha_ack = 0; in tcp_build_hdrs() 2902 tcpha->tha_offset_and_reserved = (5 << 4); in tcp_build_hdrs() 2903 tcpha->tha_lport = connp->conn_lport; in tcp_build_hdrs() 2904 tcpha->tha_fport = connp->conn_fport; in tcp_build_hdrs() 2916 tcpha->tha_sum = htons(cksum); in tcp_build_hdrs()
|
/titanic_41/usr/src/uts/common/inet/ip/ |
H A D | ipclassifier.c | 1675 tcpha_t *tcpha; in ipcl_classify_v6() local 1685 tcpha = (tcpha_t *)&mp->b_rptr[hdr_len]; in ipcl_classify_v6() 1686 up = &tcpha->tha_lport; in ipcl_classify_v6() 2378 ipcl_conn_tcp_lookup_reversed_ipv4(conn_t *connp, ipha_t *ipha, tcpha_t *tcpha, in ipcl_conn_tcp_lookup_reversed_ipv4() argument 2396 pports[0] = tcpha->tha_fport; in ipcl_conn_tcp_lookup_reversed_ipv4() 2397 pports[1] = tcpha->tha_lport; in ipcl_conn_tcp_lookup_reversed_ipv4() 2428 ipcl_conn_tcp_lookup_reversed_ipv6(conn_t *connp, ip6_t *ip6h, tcpha_t *tcpha, in ipcl_conn_tcp_lookup_reversed_ipv6() argument 2449 pports[0] = tcpha->tha_fport; in ipcl_conn_tcp_lookup_reversed_ipv6() 2450 pports[1] = tcpha->tha_lport; in ipcl_conn_tcp_lookup_reversed_ipv6() 2481 ipcl_tcp_lookup_reversed_ipv4(ipha_t *ipha, tcpha_t *tcpha, int min_state, in ipcl_tcp_lookup_reversed_ipv4() argument [all …]
|
H A D | ip6.c | 588 tcpha_t *tcpha; in icmp_inbound_verify_v6() local 598 tcpha = (tcpha_t *)((uchar_t *)ip6h + hdr_length); in icmp_inbound_verify_v6() 603 connp = ipcl_tcp_lookup_reversed_ipv6(ip6h, tcpha, TCPS_LISTEN, in icmp_inbound_verify_v6() 609 !connp->conn_verifyicmp(connp, tcpha, NULL, icmp6, ira)) { in icmp_inbound_verify_v6() 774 tcpha_t *tcpha; in icmp_inbound_error_fanout_v6() local 817 tcpha = (tcpha_t *)((uchar_t *)ip6h + hdr_length); in icmp_inbound_error_fanout_v6() 822 connp = ipcl_tcp_lookup_reversed_ipv6(ip6h, tcpha, in icmp_inbound_error_fanout_v6()
|
H A D | ipsecesp.c | 744 tcpha_t *tcpha; in esp_fix_natt_checksums() local 751 tcpha = (tcpha_t *)(data_mp->b_rptr + in esp_fix_natt_checksums() 755 sum += ~ntohs(tcpha->tha_sum) & 0xFFFF; in esp_fix_natt_checksums() 758 tcpha->tha_sum = ~htons(sum); in esp_fix_natt_checksums()
|
H A D | ip.c | 1793 tcpha_t *tcpha; in icmp_inbound_verify_v4() local 1803 tcpha = (tcpha_t *)((uchar_t *)ipha + hdr_length); in icmp_inbound_verify_v4() 1804 connp = ipcl_tcp_lookup_reversed_ipv4(ipha, tcpha, TCPS_LISTEN, in icmp_inbound_verify_v4() 1810 !connp->conn_verifyicmp(connp, tcpha, icmph, NULL, ira)) { in icmp_inbound_verify_v4() 2078 tcpha_t *tcpha; in icmp_inbound_error_fanout_v4() local 2128 tcpha = (tcpha_t *)((uchar_t *)ipha + hdr_length); in icmp_inbound_error_fanout_v4() 2129 connp = ipcl_tcp_lookup_reversed_ipv4(ipha, tcpha, TCPS_LISTEN, in icmp_inbound_error_fanout_v4()
|
/titanic_41/usr/src/uts/common/inet/ilb/ |
H A D | ilb_conn.c | 695 update_conn_tcp(ilb_conn_t *connp, void *iph, tcpha_t *tcpha, int32_t pkt_len, in update_conn_tcp() argument 701 if (tcpha->tha_flags & TH_RST) in update_conn_tcp() 704 seg_len = pkt_len - ((uint8_t *)tcpha - (uint8_t *)iph) - in update_conn_tcp() 705 TCP_HDR_LENGTH((tcph_t *)tcpha); in update_conn_tcp() 707 if (tcpha->tha_flags & TH_ACK) in update_conn_tcp() 708 ack = ntohl(tcpha->tha_ack); in update_conn_tcp() 709 seq = ntohl(tcpha->tha_seq); in update_conn_tcp() 712 if (tcpha->tha_flags & TH_FIN) { in update_conn_tcp() 726 if (tcpha->tha_flags & TH_FIN) { in update_conn_tcp()
|