]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/systemd/sd-dhcp-client.h
dhcp: Add timeout and main loop support
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 9 Dec 2013 21:43:25 +0000 (23:43 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 12 Dec 2013 16:43:34 +0000 (11:43 -0500)
commitd3d8ac2f2bac721d99f893c0a0128d21db636d4c
tree3d0ca49e1522f81f6a16a932ff4351d7ab7ad5fb
parent117539f8b76b3517834f4e57e85aeb3a73326a0d
dhcp: Add timeout and main loop support

Require a main loop to be set when creating a DHCP client. Set up
a timer to resend DHCP Discover messages and add a 0-2 second
delay to the timeout value. Move to state Selecting after successful
sending of a Discover message.
src/libsystemd-dhcp/dhcp-client.c
src/libsystemd-dhcp/test-dhcp-client.c
src/systemd/sd-dhcp-client.h