summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
AgeCommit message (Expand)Author
2018-08-13The iterator i is not the option code, but simply the index for thePatrick Wildt
2018-06-20dhclient.c r1.569 started writing some files before calling daemon(),Stuart Henderson
2018-06-03Fix previous by restoring inadvertantly deleted check forKenneth R Westerback
2018-05-23Some interfaces (e.g. cdce(4)) can't tell if they are connected. TheyKenneth R Westerback
2018-05-19Add '-r', which causes running dhclient to releaseKenneth R Westerback
2018-05-17Any IPv4 address change could alter which interface has the activeKenneth R Westerback
2018-05-16Always record the client identifier used to obtain a lease. ServersKenneth R Westerback
2018-05-11Write out updated dhclient.leases.<if>, /etc/resolv.conf and any -LKenneth R Westerback
2018-03-31The rarely used '-L' option does not need a PATH_MAX staticKenneth R Westerback
2018-03-31Fix '-i' to discard previously defined values for the options to beKenneth R Westerback
2018-03-20pretty_print_option() returns a pointer to a 0 length string, notKenneth R Westerback
2018-02-28Now that log_debug() has been decyphered, replace DPRINTF() instancesKenneth R Westerback
2018-02-11Ooops. After getting a NAK in response to a renewal REQUEST, we deleteKenneth R Westerback
2018-02-11Make "invalid host name" messages log_debug() since the invalid hostKenneth R Westerback
2018-02-09If there is no link after link_timeout seconds don't forgetKenneth R Westerback
2018-02-08Don't update first_sending in state_selecting() and thusKenneth R Westerback
2018-02-07Keep track of the last proposal used to configure the interface andKenneth R Westerback
2018-02-06Abstract "no link ..." and "no lease ..." message generationKenneth R Westerback
2018-02-06Nuke unused state S_REBINDING. We just use the timeKenneth R Westerback
2018-02-06When binding a lease from the dhclient.leasees.<if> file andKenneth R Westerback
2018-02-06Fix fprintf() to include "\n" where needed. Prefix "no lease"Kenneth R Westerback
2018-02-06Flip -q (be quiet) into -v (be noisy), making terseness the defaultKenneth R Westerback
2018-02-05Ensure that the "bound to ..." message appears in the log unlessKenneth R Westerback
2018-02-05Always run through state_preboot() when starting up or theKenneth R Westerback
2018-02-05Nuke unused parameter to go_daemon().Kenneth R Westerback
2018-01-30Expand "bound to ..." message to include the source of the lease,Kenneth R Westerback
2018-01-29Repair botched retry loop when generating RTM_PROPOSALKenneth R Westerback
2018-01-29Missed a couple of log_info()'s in previous commit. Use #ifdef DEBUGKenneth R Westerback
2018-01-29Use log_init(), log_setverbose() and log_debug() moreKenneth R Westerback
2018-01-28Refactor and simplify the logic to select and invoke theKenneth R Westerback
2018-01-28A few fatal() -> fatalx() where errno is notKenneth R Westerback
2018-01-25Add DPRINTF() and use it to replace log_debug() statements insideKenneth R Westerback
2018-01-24Don't display the seconds until renewal. i.e. "em0: bound to 1.2.3.4Kenneth R Westerback
2017-12-20Always 'send' host-name, rather than relying on dhclient.conf to askKenneth R Westerback
2017-12-18Stop inserting and paying attention to 'interface <if>;'Kenneth R Westerback
2017-12-16With leases no longer in dhclient.conf, rename a bunch ofKenneth R Westerback
2017-12-09Add ACTION_IGNORE and nuke ignored_options, ignored_option_count fieldsKenneth R Westerback
2017-12-08When accepting a BOOTP lease, do not leak offered values of leaseKenneth R Westerback
2017-12-07Set ifi->offer to NULL after free'ing it.Kenneth R Westerback
2017-12-07Nuke support for defining last-gasp leases in dhclient.conf.Kenneth R Westerback
2017-12-06Disentangle dhclient.conf static lease handling from dynamicKenneth R Westerback
2017-12-05When removing duplicate dynamic leases from the cache, compare theKenneth R Westerback
2017-12-04change "if (lp &&" to "if lp != NULL &&".Theo Buehler
2017-12-04Avoid a NULL-deref in get_recorded_lease() leading to a segfault seenTheo Buehler
2017-12-03Move timer fields 'expiry" and "rebind" out of struct client_leaseKenneth R Westerback
2017-12-03Abandon nagging about "_" violating RFC 952. This removes the needKenneth R Westerback
2017-11-27Simplify lease_as_string() logic to use a single time_t variableKenneth R Westerback
2017-11-27Fix pasto so lease_rebind() returns rebind value and notKenneth R Westerback
2017-11-26Move rebind time calculation to a function lease_rebind(), just likeKenneth R Westerback
2017-11-24Remove 'renewal' field from struct client_lease. Add lease_renewal() toKenneth R Westerback