networkd: dhcp-server - default to manage the whole subnet

Don't restrict yourselves to 32 leases, simply manage the whole subnet by default.
This commit is contained in:
Tom Gundersen
2015-08-31 21:42:11 +02:00
parent 9963469618
commit 61986155d2
+2 -2
View File
@@ -741,8 +741,8 @@ static int link_enter_set_addresses(Link *link) {
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;