Home
last modified time | relevance | path

Searched refs:hdrlen (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/libsystemd-network/
Ddhcp-packet.c129 size_t hdrlen; in dhcp_packet_verify_headers() local
145 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()