+ // try to assign the IP the client asked for
+ if (start <= raddr && raddr <= end && dhcpv4_test(iface, raddr)) {
+ assign->addr = raddr;
+ list_add(&assign->head, &iface->dhcpv4_assignments);
+ syslog(LOG_DEBUG, "assigning the IP the client asked for: %u.%u.%u.%u",
+ (assign->addr & 0xff000000) >> 24,
+ (assign->addr & 0x00ff0000) >> 16,
+ (assign->addr & 0x0000ff00) >> 8,
+ (assign->addr & 0x000000ff));
+ return true;
+ }
+
+ // Seed RNG with checksum of hwaddress