summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
AgeCommit message (Expand)Author
2014-11-17Further juggle startup code, putting config file reading after forkingKenneth R Westerback
2014-11-16Move some memory allocations/initialization and file reading toKenneth R Westerback
2014-11-15Make -q (quiet) and -d (don't daemonize) options mutually exclusive.Kenneth R Westerback
2014-11-04Of the 14 occurances of free_client_lease() only 2 deal with leasesKenneth R Westerback
2014-11-04Instead of correcting things after the fact, use SOCK_NONBLOCK and SOCK_CLOEXECPhilip Guenther
2014-11-03No need to immediately remove an expired lease from the list ofKenneth R Westerback
2014-11-02Pesky whitespace and spurious parenthesis.Kenneth R Westerback
2014-11-01Try to ensure that the various lease timeouts are sane. i.e., renewKenneth R Westerback
2014-10-29Calling a function to htonl() a constant 32-bit value into a stackKenneth R Westerback
2014-10-27Compare with/use UINT16_MAX rather than 65535. Less magic is more.Kenneth R Westerback
2014-10-26Allow the current lease to expire without causing dhclient to segKenneth R Westerback
2014-10-17Nuke 'increase' which was always set to 1. Replace the if/else that testedKenneth R Westerback
2014-10-02dhclient: add support for RFC 3442 local subnet routesMatthew Dempsky
2014-08-11When parsing 32 bit values, verify that we received 4 bytes.Tobias Stoeckmann
2014-07-13When renewing a lease, update client->active or you end up in aKenneth R Westerback
2014-07-12Log a warning whenever RTM_DESYNC is seen. Thus giving entrailKenneth R Westerback
2014-07-12Bring back resolv.conf write reduction. Race was something else.Kenneth R Westerback
2014-07-11Sigh. Further torture finds a race. Back to drawing board forKenneth R Westerback
2014-07-11Move updating resolv.conf contents and active lease to before addressKenneth R Westerback
2014-07-11Don't write out a new resolv.conf until the new address is addedKenneth R Westerback
2014-07-09Print sizeof() value and size_t variable with %zu rather than %zd.Kenneth R Westerback
2014-05-23Make DEBUG a bit easier to use by calling setlogmask(LOG_UPTO(LOG_DEBUG))Kenneth R Westerback
2014-05-23A #define to rename another #define which is then used only once introducesKenneth R Westerback
2014-05-19Nuke some trailing whitespace that snuck in.Kenneth R Westerback
2014-05-19No point in trying to update the -L file on loss of link if no -L hasKenneth R Westerback
2014-05-18Don't add a lease to the leases TAILQ more than once. It tends toKenneth R Westerback
2014-05-12Don't exit on encountering RTM_NEWADDR or RTM_DELADDR routing messagesKenneth R Westerback
2014-05-11Tweak DHCPREQUEST log message to omit 'port N', since the port is notKenneth R Westerback
2014-05-11Rework/restore recorded lease handling. Actually use 'lease'Kenneth R Westerback
2014-05-05Zap trailing whitespace. Started by pointed comments from andre@.Kenneth R Westerback
2014-05-05A couple of malloc()+memset(0) -> calloc.Kenneth R Westerback
2014-05-04Factor out the code to set the expiry, renewal and rebinding times forKenneth R Westerback
2014-04-30Preserve intended chronological order of leases inKenneth R Westerback
2014-04-21Ooops. Delete discarded offered leases from correct TAILQ. More thanKenneth R Westerback
2014-04-20Make -L even more useful to monitoring processes. Truncate andKenneth R Westerback
2014-04-17Oops. INADDR_ANY != INADDR_BROADCAST. Fixes DHCPDISCOVERY andKenneth R Westerback
2014-04-17Eliminate a couple of always-NULL parameters. Eliminate someKenneth R Westerback
2014-04-16Make dhclient -q even quieter. Make it immediately effective ratherKenneth R Westerback
2014-04-16OpenSSL is not the only place with bloated code! Remove unusedKenneth R Westerback
2014-02-09Don't use imsg_flush(), roll a local flush_unpriv_ibuf() that loopsKenneth R Westerback
2014-02-08Create dhclient lease files and dhcpd lease files with permissions 0640,Kenneth R Westerback
2014-02-07Create -L leases files with the same 0000 permissions as regularKenneth R Westerback
2014-02-07Log failures to fchmod() or fchown() the file written inKenneth R Westerback
2014-02-07Nuke unused #define CLIENT_PATH. A remnant of dhclient-script.Kenneth R Westerback
2014-01-25Correct parsing of dhclient.conf statements 'fixed-address' andKenneth R Westerback
2014-01-21Allow dhclient.conf to specify 'fixed-address', 'next-server',Kenneth R Westerback
2014-01-21Add parsing for options 121 (classless-static-routes) and 249Kenneth R Westerback
2014-01-20more %d type correctness; ok krwTheo de Raadt
2014-01-20%d cleanups, to other formats; ok krwTheo de Raadt
2014-01-17Do not follow symlinks for -l and -L arguments.Tobias Stoeckmann