dhcpv4: rework lease expire handling logic
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 12 Sep 2017 08:31:13 +0000 (10:31 +0200)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 13 Sep 2017 13:34:22 +0000 (15:34 +0200)
commit47fe122d19c0485ec398b19d223bbaa2f45b32d3
tree0fce40ad465ae07dbc8577e9efafa96e6fd38794
parent028ab85da8ef40af43aeb48129ffa32c98503336
dhcpv4: rework lease expire handling logic

Don't rely on incoming DHCPv4 messages to trigger the lease expire
detection logic but rather use a periodic timer which checks every
second if a lease is expired

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/dhcpv4.c