Searched refs:dhcp_size (Results 1 – 1 of 1) sorted by relevance
162 int dhcp_size; in receive_packet() local217 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp); in receive_packet()224 if ((dhcp_size <= 0) || in receive_packet()225 ((int)(nread - sizeof(struct iphdr) - sizeof(struct udphdr)) < dhcp_size) || in receive_packet()226 ((int)sizeof(struct dhcp_msg) < dhcp_size)) { in receive_packet()250 memcpy(msg, &packet.dhcp, dhcp_size); in receive_packet()251 return dhcp_size; in receive_packet()