Searched defs:hdrlen (Results 1 - 1 of 1) sorted by relevance

/systemd/src/libsystemd-network/
H A Ddhcp-packet.c118 size_t hdrlen; local
135 hdrlen = packet->ip.ihl * 4;
136 if (hdrlen < 20) {
138 "smaller than minimum (20 bytes)", hdrlen);
142 if (len < hdrlen) {
145 hdrlen);
156 if (len < hdrlen + be16toh(packet->udp.len)) {
159 hdrlen + be16toh(packet->udp.len));
174 if (dhcp_packet_checksum((uint8_t*)&packet->ip, hdrlen)) {

Completed in 10 milliseconds