Lines Matching refs:phu
291 union phu {
300 } phu;
304 phu.ph.len = htons((u_int16_t)len);
305 phu.ph.mbz = 0;
306 phu.ph.proto = IPPROTO_UDP;
307 memcpy(&phu.ph.src, &ip->ip_src.s_addr, sizeof(u_int32_t));
309 memcpy(&phu.ph.dst, &ip->ip_dst.s_addr, sizeof(u_int32_t));
311 phu.ph.dst = ip_finddst(ip);
313 sp = &phu.pa[0];
334 } phu;
337 memset(&phu, 0, sizeof(phu));
338 phu.ph.ph_src = ip6->ip6_src;
339 phu.ph.ph_dst = ip6->ip6_dst;
340 phu.ph.ph_len = htonl(len);
341 phu.ph.ph_nxt = IPPROTO_UDP;
344 for (i = 0; i < sizeof(phu.pa) / sizeof(phu.pa[0]); i++)
345 sum += phu.pa[i];