Lines Matching refs:tcp_ipha
1202 tcp->tcp_ipha->ip_src.s_addr = tcp->tcp_bound_source; in tcp_bind()
1316 tcp->tcp_ipha->ip_src.s_addr = tcp->tcp_bound_source; in tcp_connect()
1322 if (dstaddr == tcp->tcp_ipha->ip_src.s_addr && in tcp_connect()
1328 tcp->tcp_ipha->ip_dst.s_addr = dstaddr; in tcp_connect()
1477 acceptor->tcp_ipha = (struct ip *)acceptor->tcp_iphc; in tcp_accept_comm()
1489 acceptor->tcp_ipha->ip_dst = ipha->ip_src; in tcp_accept_comm()
1491 acceptor->tcp_ipha->ip_src = ipha->ip_dst; in tcp_accept_comm()
4921 tcp->tcp_ipha->ip_len = htons(len); in tcp_wput_data()
4941 tcp->tcp_ipha->ip_len = htons(len); in tcp_wput_data()
5485 tcp->tcp_ipha = (struct ip *)tcp->tcp_iphc; in tcp_header_init_ipv4()
5495 tcp->tcp_ipha->ip_v = IP_VERSION; in tcp_header_init_ipv4()
5497 tcp->tcp_ipha->ip_hl = IP_SIMPLE_HDR_LENGTH_IN_WORDS; in tcp_header_init_ipv4()
5498 tcp->tcp_ipha->ip_p = IPPROTO_TCP; in tcp_header_init_ipv4()
5500 tcp->tcp_ipha->ip_sum = 0; in tcp_header_init_ipv4()