From: Tom Gundersen Date: Fri, 28 Aug 2015 18:37:03 +0000 (+0200) Subject: networkd: dhcp-server - default to manage the whole subnet X-Git-Tag: v226~63^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61986155d273342ffaf5be4d6a4386be96f9b46b;p=thirdparty%2Fsystemd.git networkd: dhcp-server - default to manage the whole subnet Don't restrict yourselves to 32 leases, simply manage the whole subnet by default. --- diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 74dccfccaf6..c5434147edd 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -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;