summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient
AgeCommit message (Expand)AuthorFilesLines
2021-04-01Tweak log_debug() verbiage to reduce repetitive infokrw1-21/+44
2021-04-01Also immediately accept the *first* OFFER if it matches the requested address,krw1-2/+5
2021-03-31Set 'select_timeout' to 'now' when an OFFER is received for the IP addresskrw1-1/+2
2021-03-31Add two missing checks for strdup() returning NULL.krw1-1/+5
2021-03-31Fix some debug output when running in foreground.krw1-4/+8
2021-03-28Now that the real time and monotonic time streams don'tkrw3-22/+22
2021-03-28Convert remaining timers (lease renew, rebind, expiry) tokrw2-54/+60
2021-03-24More timespec conversions. Less 'seconds' arithmetic.krw2-58/+75
2021-03-16Nuke unused time_t variable.krw1-5/+2
2021-03-11Use timespec timers to determine when select-timeout and timeout intervalskrw2-14/+35
2021-03-09Replace time_t startup_time with struct timespec link_timeout.krw3-12/+19
2021-03-04Add sys/queue.h to the include list since imsg.h needs it. Currentlyclaudio1-1/+2
2021-03-04Notice when link-timeout expires even if istty(STDERR) hints that dhclient haskrw1-5/+5
2021-03-02Rename local variable 'cur_time' in set_timeout() to 'now' likekrw1-4/+4
2021-03-02Eliminate redundant checks for expired leases in ifi->leasedb. Simplykrw1-34/+31
2021-02-28Move tick_msg(TICK_WAIT) calls after related log_debug()krw1-5/+4
2021-02-28Reduce non-debug output further by allowing up to the usual 3 secondkrw1-2/+5
2021-02-27Stop checking 'epoch' in get_recorded_lease() and just set it askrw2-5/+4
2021-02-27Disentangle log_debug() output from tick_msg() output.krw2-45/+46
2021-02-24Complete deleting ifi->active before calling write_lease_db().krw1-3/+3
2021-02-24No need to get time() twice. Just use the alreadykrw1-2/+2
2021-02-24No need to check ifi->active for NULL when looking for duplicate/obsoletekrw1-3/+1
2021-02-24Fix annoying typo in a comment.krw1-2/+2
2021-02-24Remove incomplete/incorrect connection with autoconf, clearing groundkrw4-66/+7
2021-02-22remove unused decode_hw_header() functionjsg2-19/+2
2021-02-22Switch reboot timing to timespec, the better to handle thekrw2-6/+13
2021-02-21Rename struct client_config fields 'timeout', 'link_timeout' andkrw3-22/+23
2021-02-21No need for state_preboot() to double check timeout beingkrw1-13/+3
2021-02-20tick_msg("lease", TICK_SUCCESS) in bind_lease() should *not* bekrw1-2/+2
2021-02-19Put duplicated code calculating backoff interval and packet 'secs'krw1-115/+91
2021-02-19Missed poll -> ppoll in log_warn() verbiage.krw1-2/+2
2021-02-15Extraneous blank line.krw1-2/+1
2021-02-15Rework tick_msg() to make messages displayed during startup morekrw1-45/+69
2021-02-02dhclient(8): fork_privchld, take_charge, propose_release: poll(2) -> ppoll(2)cheloha1-30/+33
2021-02-01dhclient(8): default_route_index(): poll(2) -> ppoll(2)cheloha1-10/+15
2021-02-01Switch dispatch loop to ppoll() and protocol timeouts to struct timespec.krw2-24/+20
2020-12-10Simplify '-i' handling, failing immediately during command line parsingkrw4-59/+42
2020-12-06Oops. Missed chunk in previous.krw1-4/+6
2020-12-06fatal() immediately whem parsing command line option '-c' reveals a non-existantkrw3-21/+17
2020-12-01Extract another couple of chunks from main() into helper functions,krw1-33/+51
2020-11-27Shuffle code relating to initializing the physical interface and thekrw1-117/+150
2020-11-25When processing proposed static routes (inc. default route) ignorekrw1-11/+19
2020-11-21No need to update ifi->state just before setting quit to TERMINATE.krw1-4/+2
2020-11-21No need to update resolv.conf when renewing a lease does not result in anykrw4-9/+11
2020-11-21When REBOOT'ing it is necessary to apply_defaults() to the recordedkrw1-3/+7
2020-11-20The default lease rebind time is 7 * (expiry/8), not 8 * (expiry/7).krw1-2/+2
2020-11-19Avoid spurious resolv.conf updates whenkrw2-6/+9
2020-11-18Recognize get_link_ifa() failure (a.k.a. "invalid interface") as a fatal errorkrw1-3/+5
2020-11-18No need to call get_hw_address() from interface_state() since thekrw1-3/+7
2020-11-18Tweak debug messages around resolv.conf updating.krw1-9/+18