From 71b435a8d90753de38bb401c7d2446373064a9cb Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 17 Jun 2017 16:58:56 +0000 Subject: We accept either the first offer received, or an offer for the current address if one arrives inside select_timeout. So there is no need to keep a list of received offers. Just keep the best one and DECLINE the rest. Nuke now unused 'offered_leases' TAILQ. Also fixes the oddity that the *last* offer for the current address is taken rather than the *first*. --- sbin/dhclient/dhcpd.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sbin/dhclient/dhcpd.h') diff --git a/sbin/dhclient/dhcpd.h b/sbin/dhclient/dhcpd.h index 8f64d353b2e..dc46e33b436 100644 --- a/sbin/dhclient/dhcpd.h +++ b/sbin/dhclient/dhcpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dhcpd.h,v 1.184 2017/06/17 15:53:03 krw Exp $ */ +/* $OpenBSD: dhcpd.h,v 1.185 2017/06/17 16:58:55 krw Exp $ */ /* * Copyright (c) 2004 Henning Brauer @@ -154,7 +154,6 @@ struct interface_info { struct in_addr requested_address; struct client_lease *active; struct client_lease *new; - TAILQ_HEAD(, client_lease) offered_leases; TAILQ_HEAD(_leases, client_lease) leases; }; -- cgit v1.2.3