Don't restrict yourselves to 32 leases, simply manage the whole subnet by default.
return 0;
}
- /* offer 32 addresses starting from the address following the server address */
- r = sd_dhcp_server_configure_pool(link->dhcp_server, &address->in_addr.in, address->prefixlen, 0, 32);
+ /* use the server address' subnet as the pool */
+ r = sd_dhcp_server_configure_pool(link->dhcp_server, &address->in_addr.in, address->prefixlen, 0, 0);
if (r < 0)
return r;