]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: dhcp-server - default to manage the whole subnet
authorTom Gundersen <teg@jklm.no>
Fri, 28 Aug 2015 18:37:03 +0000 (20:37 +0200)
committerTom Gundersen <teg@jklm.no>
Mon, 31 Aug 2015 19:42:11 +0000 (21:42 +0200)
Don't restrict yourselves to 32 leases, simply manage the whole subnet by default.

src/network/networkd-link.c

index 74dccfccaf68ea9ef81c49c7864e5409b7125165..c5434147edd08382002fa8d6cfcd2601719bc2f8 100644 (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;