summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/dhclient
AgeCommit message (Collapse)Author
2003-06-10Rework script using advanced coding techniques like a case statement,Kenneth R Westerback
factoring out common code to functions, consistant indenting, etc. Should be no semantic changes, just much easier to read, except for ensuring that certain cable companies no longer confuse the issue by supplying name server addresses without a domain name. Either will now result in the creation of an appropriate resolv.conf Inspired by PRs #2969 from Alexander Taler and #3135 from Jan Johansson. Fixes #3135 completely according to Jan. #2969 may have another item to fix. Tested by various, including tech@'ers Jan Johansson, Uwe A. P. Wuerdinger and Jim Rees. Let the flood of enhancements begin now that it can actually be read and understood ... ok deraadt@.
2003-05-29Don't reject non-DHCPNAK packets with a yiaddr of 0.0.0.0. ThereTodd C. Miller
are commonly used dhcp servers (like Comcast in the US) that do this. Turns out later versions of ISC dhcp dropped this check as well. It is better to be liberal in what you accept... deraadt@ OK
2003-05-08AUTHOR -> AUTHORS in .Sh, as per mdoc template.Jason McIntyre
2003-04-08refer to dhclient.leases~ as the client backup file, not dhcpd.leases~David Krause
from Michael Tannenbaum <miketa@attbi.com> in PR 3184 also add missing part of the sentence ok tedu@
2003-03-313com, 3COM -> 3ComJason McIntyre
2003-03-18- expand DBDIR, ETCDIR, RUNDIR to the actual directories to makeAnil Madhavapeddy
the man pages easier to read - add dhcp(8) to SEE ALSO in dhcpd(8) - rearrange SEE ALSO in section order as well as alphabetical in dhcpd(8) ok millert@, todd@
2003-03-18ip address -> IP address;Jason McIntyre
rtadvd.conf(5): positve -> positive; ok miod@
2003-01-23typos;Jason McIntyre
ok millert@
2003-01-17seperate[d][ly] -> separate[d][ly]; alan@alanday.comTheo de Raadt
2002-09-06socklen_t use; pvalchev okTheo de Raadt
2002-06-18format string audit. From: Gregory Steuck <greg@nest.cx>Jun-ichiro itojun Hagino
2002-06-11Remove \n from warn(3). ok deraadt@Thomas Nordin
2002-06-10more sockaddr initializations.Jun-ichiro itojun Hagino
2002-06-09optimize build time. based on PR 2715Jun-ichiro itojun Hagino
2002-05-30typo; moritz@jodeit.orgTheo de Raadt
2002-03-25make docs match reality - we don't support hooks in dhclient-scriptBob Beck
2002-02-28no, that error message was bad.Bob Beck
2002-02-28Some new servers return the hostname as type XBob Beck
this ensures we check against the right thing and don't reject leases when we shouldn't.
2001-08-28fix a segfault occuring in dhclient when the server specifies his name.Matthieu Herrb
ok beck@
2001-08-26Fix typo: 'On after defining ...' -> 'After defining ...'Kenneth R Westerback
2001-08-18be careful with snprintf/strlcpy - account for cases where theyBob Beck
can return values bigger than the length specified.
2001-06-24Old M of mine, uncovered by the recent dhcpd update: Bypass IPsec in allNiklas Hallqvist
DHCP traffic.
2001-06-24dhcp 2.0pl5 merge/cleanup/deadcode slashing. still needs more eyes on thisBob Beck
but appears to work better than what's been in-tree before for dealing with stupid dhcp servers.
2001-06-04Chop off remainder of string, so we don't get mangled options.Angelos D. Keromytis
2001-02-23cleanup after vacationing hippies and make dhclient create theBob Beck
dhclient.leases file if it doesn't exist, so that install floppies work again, thanks Brian Kifiak <bk@rt.fm>
2001-01-06Commit 1.6 was just plain wrong on two counts; as a result, it causedAngelos D. Keromytis
dhclient to complain about options.
2001-01-06Also protect write_client_lease() in bind_lease()Angelos D. Keromytis
2001-01-06Lock the leases file, to protect against multiple instances ofAngelos D. Keromytis
dhclient running.
2001-01-03-Wall cleanup.Eric Jackson
roll a function for writing out pidfile's instead of rolling it for each program. be careful with a few more buffers
2000-12-29If no LEASE_TIME was received from the server, use theAngelos D. Keromytis
default_lease_time (12 hours); I'm not entirely certain the fallback is correct, but the RFC does not say what the client should do if no LEASE_TIME is given by the server. Closes PR 1077
2000-10-30accept unknown options in leases by default; beckTheo de Raadt
2000-10-26Close pr1295 - Only a DHCPNAK bootreply should have a yiaddr of 0.0.0.0,Bob Beck
this makes sure we ignore bootreplies that aren't NAK's which have a 0 yiaddr.
2000-10-20Fix various typos; spotted by gluk@ptci.ru.Aaron Campbell
2000-10-18this was overlooked in the last commit. ok beck@.Todd T. Fries
2000-10-18due to over agressive quoting, various space separated variables were failing.Todd T. Fries
o remove un-necessary quotes, the source of several reported problems. o remove un-necessary variable assignments (paranoia) o remove un-necessary cases (when var="", $var evaluates to nothing) Ok beck@, testing by beck@.
2000-09-05undo security hole peter just commitedTheo de Raadt
2000-09-05Remove quotes from arguement lists to for loops.Peter Galbavy
This applied to two type of dhcp option, "domain_name_servers" and "routers". This fixes the problem of seeing mutliple nameservers on one nameserver line in resolv.conf. If anyone used multiple routers, then it would fix this too.
2000-08-18Fix obviously bad XrefNiklas Hallqvist
2000-07-21Deal with a bunch of dhcp issues, ok fries@:Bob Beck
- some minor cleanup (syscall return codes, dead code, use strlcpy, etc) - sanity check dhcp option values recieved by dhclient so that things that should look like a hostname look like a hostname, and things that should look like an ip address look like an ip address, if they don't ignore the lease offer because it's bogus. - Make the dhcp server attempt to ping an address when it recieves a RELEASE from it. If the address answers a ping, ignore the release offer. This helps make spoofing releases to liberate addresses more difficult.
2000-07-03arp(8) invocations fixedNiklas Hallqvist
2000-06-25safe shell quotingDug Song
2000-06-25pass variables to dhclient-script via a constructed environment, instead of ↵Dug Song
a temporary shell script
2000-04-29fix spec. PR1217Eric Jackson
2000-04-20Document /etc/resolv.conf.tailAngelos D. Keromytis
2000-04-20If /etc/resolv.conf.tail exists, append to newly-constructedAngelos D. Keromytis
/etc/resolv.conf
2000-04-12Trailing whitespace begone!Aaron Campbell
2000-03-19Remove hard sentence breaks. Add $OpenBSD$ tags where appropriate. Some otherAaron Campbell
cleanup along the way.
2000-02-11Fix from jonathon.fletcher@pobox.comChris Cappuccio
Check $new_domain_name_servers not $nameserver
2000-01-31Don't update /etc/resolv.conf if no data is returned for DNS serversChris Cappuccio
or if user removes request domain-name-servers from /etc/dhclient.conf
1999-12-19Fix the TIMEOUT case not to dump the shell environment.Angelos D. Keromytis