summaryrefslogtreecommitdiff
path: root/sbin/dhclient
AgeCommit message (Expand)Author
2019-08-06Use pw->pw_dir when chroot'ing, not _PATH_VAREMPTY.Kenneth R Westerback
2019-08-05dhclient.leases(5) is not required for dhclient(8) to work, so justKenneth R Westerback
2019-08-05If the leases file cannot be opened for writing, just issue a warningKenneth R Westerback
2019-08-01Don't leak resolv.conf contents.Kenneth R Westerback
2019-07-31space between macro arg and punctuation;Jason McIntyre
2019-07-30Use AUTOCONF4 flag. Set the flag on startup. But if the flag isKenneth R Westerback
2019-07-26Whitespace tweak, fold long line.Kenneth R Westerback
2019-07-24Return fd of -1 if take_charge() detects 'quit' being set toKenneth R Westerback
2019-07-23Compilers may not be as magical as I hope, so revert to using memcpy()Kenneth R Westerback
2019-07-22Cleanup/simplify parse_number():Kenneth R Westerback
2019-07-22Eliminate pointless "... else {}" branch to improve readability.Kenneth R Westerback
2019-07-21Restructure parse_semi() so it resembles the other parse_*Kenneth R Westerback
2019-07-21Replace malloc()/memcpy() with strdup() in parse_string(). Nuke 'len' parameterKenneth R Westerback
2019-07-20Use same 'switch (token) ...' idiom in parse_lease_decl() andKenneth R Westerback
2019-07-20Sort TOK_USELEASE case into proper alphabetic location inKenneth R Westerback
2019-07-19Nuke a bunch of 'name' parameters that haven't been used sinceKenneth R Westerback
2019-07-19Keep dhclient.leases.<if> O_EXLOCK file descriptor open for theKenneth R Westerback
2019-07-16Shuffle code a bit to make take_charge() return theKenneth R Westerback
2019-07-15Nuke '-l' command line option (alternate location forKenneth R Westerback
2019-07-11The privileged process of dhclient(8) runs several ioctl(2)s that are forbiddenRicardo Mestre
2019-07-03snprintf/vsnprintf return < 0 on error, rather than -1.Theo de Raadt
2019-07-01Nuke unused variable 'retries'.Kenneth R Westerback
2019-07-01Simplify and clarify logic in take_charge().Kenneth R Westerback
2019-06-30getifaddrs() returns -1.Kenneth R Westerback
2019-06-30No need to check if leaseFile is NULL in write_lease_db() as it isKenneth R Westerback
2019-06-29write_lease_db() only needs ifi->name and ifi->lease_db.Kenneth R Westerback
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-06-22Swap (opcount >= opleft || opcount == -1) to (opcount == -1 || opcount >= opl...Kenneth R Westerback
2019-05-22Don't get & apply a new lease for an RTM_IFINFO that reports a changeKenneth R Westerback
2019-05-17Don't put dhclient into a loop when interface-mtu is presentKenneth R Westerback
2019-05-10Restart the protocol and get a new/renewed lease for any relevantKenneth R Westerback
2019-05-10Make it possible to switch between wireless and physical interfacsSebastian Benoit
2019-05-10Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>Philip Guenther
2019-04-06Don't mangle command line arguments with strsep(). MangleKenneth R Westerback
2019-04-03Take the length of an initialized string, not aKenneth R Westerback
2019-04-02Add human readable parsing/display of RFC1035 data in domain-searchKenneth R Westerback
2019-03-22Revert parts of recent changes to pretty_print_domain_search(). PartsKenneth R Westerback
2019-03-21punctuation needs to be preceeded by a space, in Scots;Jason McIntyre
2019-03-21Clarify verbiage. If we could just write it in Scots thenKenneth R Westerback
2019-03-21Simplify merge_option_data() with strpbrk().Kenneth R Westerback
2019-03-20Do not accept dhclient.conf(5) "prepend" or "append" statements whenKenneth R Westerback
2019-03-19Parsing error messages display only the first 80 characters of theKenneth R Westerback
2019-03-19Nuke a couple of XXX comments.Kenneth R Westerback
2019-03-18Use same idiom for pretty_print_domain_search() andKenneth R Westerback
2019-03-18Add a couple of checks to ensure option data fits into the proposalKenneth R Westerback
2019-03-18explicitly use BPF_FILDROP_CAPTURE when configuring BIOCSFILDROPDavid Gwynne
2019-02-26add domain-search to the list of options capable of adding to resolv.conf;Jason McIntyre
2019-02-23Correct comment on delete_addresses() return value.Kenneth R Westerback
2019-02-23Restore pre-a2k19 behaviour of clearing out all existing addressesKenneth R Westerback
2019-02-16SSID/LLADDR/LINK_STATE_IS_UP changes must discard the previousKenneth R Westerback