From 61986155d273342ffaf5be4d6a4386be96f9b46b Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 28 Aug 2015 20:37:03 +0200 Subject: networkd: dhcp-server - default to manage the whole subnet Don't restrict yourselves to 32 leases, simply manage the whole subnet by default. --- src/network/networkd-link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 74dccfccaf..c5434147ed 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; -- cgit v1.2.3-54-g00ecf