summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-server-internal.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-08-27 08:54:41 +0200
committerTom Gundersen <teg@jklm.no>2015-08-28 11:05:32 +0200
commit83cedf7ae28925e37931e7e92d22be9c936a1def (patch)
tree89c615165cb234dc42da2ffe8554ab62e6f3ad92 /src/libsystemd-network/dhcp-server-internal.h
parent9c92a077b667fe3947cc8a9caa197dea8b80b8e0 (diff)
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).
Diffstat (limited to 'src/libsystemd-network/dhcp-server-internal.h')
-rw-r--r--src/libsystemd-network/dhcp-server-internal.h1
1 files changed, 0 insertions, 1 deletions
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;