]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp6: ensure canceling lease timers and refactor setting lease 1332/head
authorThomas Haller <thaller@redhat.com>
Tue, 22 Sep 2015 12:17:32 +0000 (14:17 +0200)
committerThomas Haller <thaller@redhat.com>
Tue, 22 Sep 2015 12:41:47 +0000 (14:41 +0200)
commitf89087272b5561c9a3fc9d6a4e2a09f75f688fa7
tree49266b703841c8a2f5d2d031f9546f66ccb6dd99
parentc97e586d8a18db5dc505d76059ed1d9add234925
sd-dhcp6: ensure canceling lease timers and refactor setting lease

Factor our common code to set/clear the client lease.
Resetting the lease involves canceling old timers.

Also, most importantly, when resetting the lease
in client_receive_advertise(), ensure to cancel
the timers too. It is not immediately clear, why
at that point no timers would be pending.

The lease-unref from sd_dhcp6_client_unref() can
be omited, because of the preceeding client_reset()
call.
src/libsystemd-network/sd-dhcp6-client.c