Make dhcpleased(8) always configure provided routes, regardless of
authorstsp <stsp@openbsd.org>
Thu, 22 Jul 2021 18:01:29 +0000 (18:01 +0000)
committerstsp <stsp@openbsd.org>
Thu, 22 Jul 2021 18:01:29 +0000 (18:01 +0000)
commit665300f1de7a790196e841021eeefbcdbb8f6d4b
treef53fae05ecf13530a7e8810a52b7fce9d88e56d2
parentb2a7570730904b40ee020dc25f80d7f63a55e10b
Make dhcpleased(8) always configure provided routes, regardless of
whether the address we received in our lease is already configured.

In the case I observed, no default route was added to the routing table
even though the server provided both an address and a route option.
As it happened the leased address was already configured on the interface.
This should not prevent routing table updates, but it did.

ok florian
sbin/dhcpleased/dhcpleased.c