Lines Matching refs:phu
118 union phu { in tcp_cksum() union
127 } phu; in tcp_cksum() local
131 phu.ph.len = htons((u_int16_t)len); in tcp_cksum()
132 phu.ph.mbz = 0; in tcp_cksum()
133 phu.ph.proto = IPPROTO_TCP; in tcp_cksum()
134 memcpy(&phu.ph.src, &ip->ip_src.s_addr, sizeof(u_int32_t)); in tcp_cksum()
136 memcpy(&phu.ph.dst, &ip->ip_dst.s_addr, sizeof(u_int32_t)); in tcp_cksum()
138 phu.ph.dst = ip_finddst(ip); in tcp_cksum()
140 sp = &phu.pa[0]; in tcp_cksum()
161 } phu; in tcp6_cksum() local
164 memset(&phu, 0, sizeof(phu)); in tcp6_cksum()
165 phu.ph.ph_src = ip6->ip6_src; in tcp6_cksum()
166 phu.ph.ph_dst = ip6->ip6_dst; in tcp6_cksum()
167 phu.ph.ph_len = htonl(len); in tcp6_cksum()
168 phu.ph.ph_nxt = IPPROTO_TCP; in tcp6_cksum()
171 for (i = 0; i < sizeof(phu.pa) / sizeof(phu.pa[0]); i++) in tcp6_cksum()
172 sum += phu.pa[i]; in tcp6_cksum()