diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-06-17 16:58:56 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2017-06-17 16:58:56 +0000 |
commit | 71b435a8d90753de38bb401c7d2446373064a9cb (patch) | |
tree | 6ec413e87a6b04682bcd2f20d03f773f4977a379 /sbin/dhclient/dhcpd.h | |
parent | bcc7aae8dc6902082508659d68e6553432cab6c7 (diff) |
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*.
Diffstat (limited to 'sbin/dhclient/dhcpd.h')
-rw-r--r-- | sbin/dhclient/dhcpd.h | 3 |
1 files changed, 1 insertions, 2 deletions
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 <henning@openbsd.org> @@ -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; }; |