Purpose: bringing an interface up with DHCP, and serving addresses.
Template. An essay with examples, not a copy of the header: replace each TODO with prose. Every function is in libude-dhcp(3) and
include/ude_dhcp.h.
TODO: Client
ude_dhcp_client_new, events, release on exit.
TODO: Server
ude_dhcpd_cfg: pool, lease time, router, DNS, reservations.
TODO: Lease files
ude_dhcpd_save_leases,ude_dhcpd_load_leases; the format in udedhcpd-leases(5).
C: box "client" fit S: box "server" fit at C + (3, 0) arrow from C.e + (0, 0.15) to S.w + (0, 0.15) "DISCOVER, REQUEST" above arrow from S.w + (0, -0.15) to C.e + (0, -0.15) "OFFER, ACK" below text "TODO: the exchange" at C + (1.5, -0.8)→ /pikchrshow