1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

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-28 20:37:03 +02:00
parent 9963469618
commit 61986155d2

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;