Lines Matching refs:uh
135 struct udphdr uh;
176 sf_hdr.caplen += sizeof(af) + sizeof(uh) + msg->l;
177 sf_hdr.len += sizeof(af) + sizeof(uh) + msg->l;
194 ip.ip_len = htons(sizeof(ip) + sizeof(uh) + msg->l);
205 ip6.ip6_plen = htons(sizeof(uh) + msg->l);
212 memset(&uh, 0, sizeof(uh));
213 uh.uh_sport = htons(500);
214 uh.uh_dport = htons(500);
215 uh.uh_ulen = htons(msg->l & 0xffff);
216 uh.uh_sum = htons(0x0000); /*no checksum - invalid for IPv6*/
217 if (write(fd, &uh, sizeof(uh)) < sizeof(uh))