From 83cedf7ae28925e37931e7e92d22be9c936a1def Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 27 Aug 2015 08:54:41 +0200 Subject: sd-dhcp-server: improve predictability of leases Rather than having all clients attempt to get the same leases (starting at the beginning of the pool), make each client star at a random offset into the pool determined by their client id. This greatly increases the chances of a given client receiving the same IP address even though both the client and server have lost any lease information (and distinct server instances handing out the same leases). --- src/libsystemd-network/dhcp-server-internal.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/libsystemd-network/dhcp-server-internal.h') diff --git a/src/libsystemd-network/dhcp-server-internal.h b/src/libsystemd-network/dhcp-server-internal.h index 6cc794c937..268210fc50 100644 --- a/src/libsystemd-network/dhcp-server-internal.h +++ b/src/libsystemd-network/dhcp-server-internal.h @@ -59,7 +59,6 @@ struct sd_dhcp_server { be32_t netmask; be32_t pool_start; size_t pool_size; - size_t next_offer; char *timezone; -- cgit v1.2.3-54-g00ecf