summaryrefslogtreecommitdiff
path: root/sbin/dhclient/dhclient.c
AgeCommit message (Expand)Author
2020-05-28A few stray 'ifa' overloadings.Kenneth R Westerback
2020-05-28Reduce 'ifa' overloading by renaming proposal field from 'ifa' toKenneth R Westerback
2020-05-26Wrap some overly long lines.Kenneth R Westerback
2020-05-26Nuke a superflous local array in release_lease().Kenneth R Westerback
2020-05-20Rename proposal{} fields rtstatic_len, rtsearch_len and rtdns_len toKenneth R Westerback
2020-05-20Replace fixed 128-byte fields for search domains, static routes andKenneth R Westerback
2020-05-15Shuffle and tweak code in lease_as_proposal() to allocate the proposalKenneth R Westerback
2020-05-15Fix domain-search option processing. Testing one value and then usingKenneth R Westerback
2020-05-15Be more careful in extracting the uint16_t value of interface-mtu, andKenneth R Westerback
2020-05-14Massage merge_option_data() to be more careful when dealing with 'D'Kenneth R Westerback
2020-05-13We don't count a terminating NUL in the length of option data.Kenneth R Westerback
2020-05-08Nuke unneeded 'inits' field in struct proposal. 'mtu' being 0 is enough of a ...Kenneth R Westerback
2020-05-08Nuke 'set but never used' addrs field in struct proposal.Kenneth R Westerback
2020-04-27If the DHCP server disappears between OFFER'ing and ACK'ing a lease,Kenneth R Westerback
2020-04-26Tighten up NAK handling. Inform unwind when the active lease isKenneth R Westerback
2020-04-24Stray whitespace.Kenneth R Westerback
2020-04-21Send broadcast packets to INADDR_BROADCAST, not INADDR_ANY.Kenneth R Westerback
2020-04-09No need to check for NULL before free().Kenneth R Westerback
2020-01-26Don't validate '-c' with S_ISREG(). The install script uses /dev/stdin.Kenneth R Westerback
2020-01-24Allow carp(4) interfaces to be configured via dhcp.Kenneth R Westerback
2020-01-23Separate command line syntax parsing from semantic validation ofKenneth R Westerback
2020-01-20Move warning about DHO_STATIC_ROUTES (option 33) to debug.Kenneth R Westerback
2019-11-27use _PATH_ names for unveil if possibleTheo de Raadt
2019-11-22Polish logic talking to unwind.Kenneth R Westerback
2019-11-19Inform unwind about DNS servers it finds in leases.Kenneth R Westerback
2019-11-06No need to write resolv.conf after deciding to get a new lease,Kenneth R Westerback
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-07-30Use AUTOCONF4 flag. Set the flag on startup. But if the flag isKenneth R Westerback
2019-07-24Return fd of -1 if take_charge() detects 'quit' being set toKenneth 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-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-05-22Don't get & apply a new lease for an RTM_IFINFO that reports a changeKenneth R Westerback
2019-05-10Restart the protocol and get a new/renewed lease for any relevantKenneth R Westerback
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-20Do not accept dhclient.conf(5) "prepend" or "append" statements whenKenneth R Westerback
2019-03-19Nuke a couple of XXX comments.Kenneth R Westerback