We accept either the first offer received, or an offer for the
authorkrw <krw@openbsd.org>
Sat, 17 Jun 2017 16:58:55 +0000 (16:58 +0000)
committerkrw <krw@openbsd.org>
Sat, 17 Jun 2017 16:58:55 +0000 (16:58 +0000)
commitd30fab89e40c0c75fd7073f6c981aae8c7f5dd7b
treeaee437aed8b40f8c27239fc5d3bb39c4771ca646
parent318aa4c1419c357a217caeb555137a18fdf03b64
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/dhclient.c
sbin/dhclient/dhcpd.h