Return correct timer in __ni_timer_disarm

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Release DHCP4 lease only if DHCLIENT_RELEASE_BEFORE_QUIT is set

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Use ni_log_facility instead of referencing ni_debug

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Add ni_debug_timer to trace internal timer

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Use ni_debug_timer instead of ni_debug_socket

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Add ni_debug_timer calls

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Convert DHCP4 fsm state to enum to catch all states

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Replace if lists with switch to catch all DHCP4 states

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Remove fsm state change from ni_dhcp4_device_drop_lease

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Clear DHCP4 fsm.timer in timeout callback

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Handle defer-timeout (DHCLIENT_WAIT_AT_BOOT)

Signed-off-by: Olaf Hering <olaf@aepfle.de>