summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-08-28 20:37:03 +0200
committerTom Gundersen <teg@jklm.no>2015-08-31 21:42:11 +0200
commit61986155d273342ffaf5be4d6a4386be96f9b46b (patch)
tree130e246b8241a4890b2926a36840d087b2267bf9
parent99634696183dfabae20104e58157c69029a11594 (diff)
networkd: dhcp-server - default to manage the whole subnet
Don't restrict yourselves to 32 leases, simply manage the whole subnet by default.
-rw-r--r--src/network/networkd-link.c4
1 files changed, 2 insertions, 2 deletions
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;