Home | History | Annotate | Download | only in ap

Lines Matching defs:udph

162 	struct udphdr *udph;
254 sizeof(*iph) + sizeof(*udph) + (end - pos) + 2);
264 iph->tot_len = htons(sizeof(*iph) + sizeof(*udph) + (end - pos));
270 udph = wpabuf_put(resp, sizeof(*udph));
271 udph->uh_sport = htons(DHCP_SERVER_PORT);
272 udph->uh_dport = htons(DHCP_CLIENT_PORT);
273 udph->uh_ulen = htons(sizeof(*udph) + (end - pos));
274 udph->uh_sum = htons(0x0000); /* TODO: calculate checksum */
483 const struct udphdr *udph;
486 if (len < sizeof(*iph) + sizeof(*udph))
489 udph = (const struct udphdr *) (iph + 1);
490 sport = ntohs(udph->uh_sport);
491 dport = ntohs(udph->uh_dport);
492 ulen = ntohs(udph->uh_ulen);
495 sport, dport, ulen, ntohs(udph->uh_sum));
497 if (ulen < sizeof(*udph) || ulen > len - sizeof(*iph))
501 return fils_process_hlp_dhcp(hapd, sta, (const u8 *) (udph + 1),
502 ulen - sizeof(*udph));