dhcp: fix unicast pkts, clean up state machine 87/26487/2
authorDave Barach <dave@barachs.net>
Mon, 13 Apr 2020 19:04:05 +0000 (15:04 -0400)
committerDave Barach <dave@barachs.net>
Mon, 13 Apr 2020 19:04:37 +0000 (15:04 -0400)
commit844ec17f93dae320620ef8d51daea502dfb70df1
tree3c6f3e325bc4bc119119503a24b40e278250b711
parent943fb1559396016ea452cb07f169e0d4c28760bf
dhcp: fix unicast pkts, clean up state machine

Send dhcp unicast packets to ip4-lookup. Otherwise, these packets
won't reach a dhcp server on a different subnet.

Do an immediate client scan after processing wakeup events.

Calculate the next process wakeup time by scanning all
clients.

Increase maximum (idle, no-clients-configured) timeout to 1000
seconds.

Reduce log spew.

Type: fix

Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I3d10cd4c353298ed0b19e7e30887dc1d8d07b19e
(cherry picked from commit c54162981cdd41d65ed283df36955007552ddffe)
src/plugins/dhcp/client.c
src/plugins/dhcp/client.h