uint32_t count = end - start + 1;
uint32_t seed = 0;
bool assigned;
- char buf[INET_ADDRSTRLEN];
+ char ipv4_str[INET_ADDRSTRLEN];
/* Preconfigured IP address by static lease */
if (a->addr) {
if (assigned)
syslog(LOG_DEBUG, "Assigning static IP: %s",
- inet_ntop(AF_INET, &a->addr, buf, sizeof(buf)));
+ inet_ntop(AF_INET, &a->addr, ipv4_str, sizeof(ipv4_str)));
return assigned;
}
if (assigned) {
syslog(LOG_DEBUG, "Assigning the IP the client asked for: %s",
- inet_ntop(AF_INET, &a->addr, buf, sizeof(buf)));
+ inet_ntop(AF_INET, &a->addr, ipv4_str, sizeof(ipv4_str)));
return true;
}
}
if (assigned) {
syslog(LOG_DEBUG, "Assigning mapped IP: %s (try %u of %u)",
- inet_ntop(AF_INET, &a->addr, buf, sizeof(buf)),
+ inet_ntop(AF_INET, &a->addr, ipv4_str, sizeof(ipv4_str)),
i + 1, count);
return true;