Searched refs:hdrlen (Results 1 – 1 of 1) sorted by relevance
129 size_t hdrlen; in dhcp_packet_verify_headers() local145 hdrlen = packet->ip.ihl * 4; in dhcp_packet_verify_headers()146 if (hdrlen < 20) in dhcp_packet_verify_headers()149 hdrlen); in dhcp_packet_verify_headers()151 if (len < hdrlen) in dhcp_packet_verify_headers()154 len, hdrlen); in dhcp_packet_verify_headers()162 if (len < hdrlen + be16toh(packet->udp.len)) in dhcp_packet_verify_headers()165 len, hdrlen + be16toh(packet->udp.len)); in dhcp_packet_verify_headers()176 if (dhcp_packet_checksum((uint8_t*)&packet->ip, hdrlen)) in dhcp_packet_verify_headers()