dhcp: fix unicast pkts, clean up state machine 78/26478/2
authorDave Barach <dave@barachs.net>
Thu, 9 Apr 2020 22:34:29 +0000 (18:34 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 13 Apr 2020 14:51:18 +0000 (14:51 +0000)
commitc54162981cdd41d65ed283df36955007552ddffe
treeb7ef54370b5ec3334175fe56f65d3e961ecb1bec
parent111666766d9db5a2546a6cdb0f296977472c5993
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
src/plugins/dhcp/client.c
src/plugins/dhcp/client.h